- Bump package versions by @wizardlyhel
- Remove unstable re-exports from remix-oxygen package (#2551) by @wizardlyhel
- Bump dev dependency (#1688) by @wizardlyhel
-
Change peer dependency of
@shopify/oxygen-workers-types
to allow for^4.0.0
versions. (#1494) by @frandiox -
Fix how peer dependencies are resolved. (#1489) by @frandiox
- Integrate the debug-network tooling with the new
--worker-unstable
runtime CLI flag. (#1387) by @frandiox
- Update the Oxygen Remix adapter to make sure that stack traces are logged in production (#1393) by @blittle
- Fix debug-network logger utility. Avoid logging debug-network errors multiple times. (#1400) by @frandiox
-
(Unstable) server-side network request debug virtual route (#1284) by @wizardlyhel
-
Update your
server.ts
so that it also passes in thewaitUntil
andenv
.const handleRequest = createRequestHandler({ build: remixBuild, mode: process.env.NODE_ENV, + getLoadContext: () => ({session, storefront, env, waitUntil}), });
If you are using typescript, make sure to update
remix.env.d.ts
declare module '@shopify/remix-oxygen' { export interface AppLoadContext { + env: Env; cart: HydrogenCart; storefront: Storefront; session: HydrogenSession; + waitUntil: ExecutionContext['waitUntil']; } }
-
Run
npm run dev
and you should see terminal log information about a new virtual route that you can view server-side network requests at http://localhost:3000/debug-network -
Open http://localhost:3000/debug-network in a tab and your app another tab. When you navigate around your app, you should see server network requests being logged in the debug-network tab
-
- Update @shopify/oxygen-workers-types dependencies (#1208) by @juanpprieto
-
Update Remix to the latest version (
1.17.1
). (#852) by @frandioxWhen updating your app, remember to also update your Remix dependencies to
1.17.1
in yourpackage.json
file:-"@remix-run/react": "1.15.0", +"@remix-run/react": "1.17.1", -"@remix-run/dev": "1.15.0", -"@remix-run/eslint-config": "1.15.0", +"@remix-run/dev": "1.17.1", +"@remix-run/eslint-config": "1.17.1",
- Updates default
powered-by
header toShopify, Hydrogen
(#961) by @benjaminsehl
-
Add a default
Powered-By: Shopify-Hydrogen
header. It can be disabled by passingpoweredByHeader: false
in the configuration object ofcreateRequestHandler
: (#872) by @blittleimport {createRequestHandler} from '@shopify/remix-oxygen'; export default { async fetch(request) { // ... const handleRequest = createRequestHandler({ // ... other properties included poweredByHeader: false, }); // ... }, };
-
Bump internal Remix dependencies to 1.15.0. (#728) by @wizardlyhel
Recommendations to follow:
- Upgrade all the Remix packages in your app to 1.15.0.
- Enable Remix v2 future flags at your earliest convenience following the official guide.
-
Fix active cart session event in Live View (#614) by @wizardlyhel
Introducing
getStorefrontHeaders
that collects the required Shopify headers for making a Storefront API call.- Make cart constants available as exports from
@shopify/hydrogen-react
- Deprecating
buyerIp
andrequestGroupId
props fromcreateStorefrontClient
from@shopify/hydrogen
- Deprecating
getBuyerIp
function from@shopify/remix-oxygen
+ import {getStorefrontHeaders} from '@shopify/remix-oxygen'; import {createStorefrontClient, storefrontRedirect} from '@shopify/hydrogen'; export default { async fetch( request: Request, env: Env, executionContext: ExecutionContext, ): Promise<Response> { const {storefront} = createStorefrontClient({ cache, waitUntil, - buyerIp: getBuyerIp(request), i18n: {language: 'EN', country: 'US'}, publicStorefrontToken: env.PUBLIC_STOREFRONT_API_TOKEN, privateStorefrontToken: env.PRIVATE_STOREFRONT_API_TOKEN, storeDomain: `https://${env.PUBLIC_STORE_DOMAIN}`, storefrontApiVersion: env.PUBLIC_STOREFRONT_API_VERSION || '2023-01', storefrontId: env.PUBLIC_STOREFRONT_ID, - requestGroupId: request.headers.get('request-id'), + storefrontHeaders: getStorefrontHeaders(request), });
- Make cart constants available as exports from
- export V2_MetaFunction type (#511) by @juanpprieto
- Initial release