Skip to content

Latest commit

 

History

History
254 lines (156 loc) · 8.16 KB

CHANGELOG.md

File metadata and controls

254 lines (156 loc) · 8.16 KB

@shopify/remix-oxygen

2.0.9

Patch Changes

2.0.8

Patch Changes

2.0.7

Patch Changes

  • Prevent infinite redirects when a double slash exists in the URL (#2449) by @blittle

2.0.6

Patch Changes

  • Return a 400 BadRequest for HEAD and GET requests that include a body (#2360) by @blittle

2.0.5

Patch Changes

  • Update @shopify/oxygen-workers-types to fix issues on Windows. (#2252) by @michenly

2.0.4

Patch Changes

  • Fix compatibility of /subrequest-profiler with Vite. (#1935) by @frandiox

2.0.3

Patch Changes

2.0.2

Patch Changes

  • 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

2.0.1

Patch Changes

  • Change @remix-run/server-runtime to properly be a peer dependency (#1484) by @blittle

2.0.0

Major Changes

  • Remove the function export getBuyerIp, which was deprecated in 2023-07. (#1455) by @frandiox

1.1.8

Patch Changes

  • Integrate the debug-network tooling with the new --worker-unstable runtime CLI flag. (#1387) by @frandiox

1.1.7

Patch Changes

1.1.6

Patch Changes

  • Update the Oxygen Remix adapter to make sure that stack traces are logged in production (#1393) by @blittle

1.1.5

Patch Changes

  • Fix debug-network logger utility. Avoid logging debug-network errors multiple times. (#1400) by @frandiox

1.1.4

Patch Changes

  • (Unstable) server-side network request debug virtual route (#1284) by @wizardlyhel

    1. Update your server.ts so that it also passes in the waitUntil and env.

        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'];
          }
        }
    2. 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

    3. 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

1.1.3

Patch Changes

1.1.2

Patch Changes

1.1.1

Patch Changes

  • Update Remix to the latest version (1.17.1). (#852) by @frandiox

    When updating your app, remember to also update your Remix dependencies to 1.17.1 in your package.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",

1.1.0

Minor Changes

1.0.7

Patch Changes

1.0.6

Patch Changes

  • Add a default Powered-By: Shopify-Hydrogen header. It can be disabled by passing poweredByHeader: false in the configuration object of createRequestHandler: (#872) by @blittle

    import {createRequestHandler} from '@shopify/remix-oxygen';
    
    export default {
      async fetch(request) {
        // ...
        const handleRequest = createRequestHandler({
          // ... other properties included
          poweredByHeader: false,
        });
        // ...
      },
    };

1.0.5

Patch Changes

  • 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.

1.0.4

Patch Changes

  • 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 and requestGroupId props from createStorefrontClient 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),
        });

1.0.3

Patch Changes

1.0.2

Patch Changes

  • Add license files and readmes for all packages (#463) by @blittle

1.0.1

Patch Changes

  • Initial release