unstale

npm / @shopify/mini-oxygen

@shopify/mini-oxygen

What changed in @shopify/mini-oxygen 2 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-15.

10 breaking5 new APIs and options8 behavior and defaults2 tooling10 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.3.1 on npm

@shopify/mini-oxygen 427 changes

Breaking changes 5

  • Local development now runs the requested compatibility date, or the newest date supported by the bundled runtime and prints a warning if the requested date is unsupported.

    4.3.0release notes

  • MiniOxygen re-exports Response from Miniflare; it is now an undici 7 class instead of an undici 5 class.

    4.3.0release notes

  • The file is emitted only during SSR builds.

    4.2.0release notes

  • The skeleton template no longer needs the vite-tsconfig-paths plugin because Vite 8 supports resolve.tsconfigPaths natively.

    4.1.0release notes

  • The Customer Account API development flag is stable and ready for production use; it enables tunneling for local OAuth development.

    4.0.0release notes

New APIs and options 3

  • An optional override lets developers specify custom worker output paths for preview.

    4.2.0release notes

  • MiniOxygen adds support for the Oxygen compatibility date parameter.

    4.0.0release notes

  • MiniOxygen adds support for Oxygen compatibility flags.

    4.0.0release notes

Behavior and default changes 7

  • MiniOxygen re-exports fetch from Miniflare, now using undici 7 instead of undici 5.

    4.3.0release notes

  • MiniOxygen re-exports Request from Miniflare; it is now an undici 7 class instead of an undici 5 class.

    4.3.0release notes

  • The Oxygen Vite plugin infers a compatibility date from the resolved Hydrogen package when one is not provided.

    4.2.0release notes

  • The Oxygen Vite plugin loads Vite environment variables as Mini Oxygen bindings when plugin options or the Hydrogen CLI provide no env bindings.

    4.2.0release notes

  • Worker-specific resolve conditions apply only to the SSR worker environment, leaving browser/client modules on Vite's normal client conditions.

    4.2.0release notes

  • New Hydrogen projects created with npm create @shopify/hydrogen will default to Vite 8.

    4.1.0release notes

  • This environment variable enables the stable Customer Account API development flag.

    4.0.0release notes

Tooling 2

  • The command can run the built Oxygen worker in Mini Oxygen.

    4.2.0release notes

  • Mini Oxygen supports Vite 7 and Vite 8 while remaining backwards-compatible with Vite 5+.

    4.1.0release notes

Fixes and other changes 10

  • The oxygen() Vite plugin now writes oxygen.json in builds using the Vite Environment API, preventing Oxygen from using its fallback compatibility date.

    4.3.0release notes

  • Local requests now include the traceparent header, matching the trace context Oxygen sets in production.

    4.3.0release notes

  • A failed runtime start fails the current request instead of stopping the dev server, and the next request retries.

    4.3.0release notes

  • When the Vite dev server runs over HTTPS, the worker receives a request URL with the https: scheme, so origin-dependent code sees the correct origin during local HTTPS development.

    4.2.3release notes

  • MiniOxygen's Vite request conversion now supports HTTP/2 requests.

    4.2.2release notes

  • Improves the reliability of local debugger connections.

    4.2.1release notes

  • The plugin forwards the top-level Vite setting to the custom SSR environment so tsconfig path aliases resolve at runtime.

    4.2.0release notes

  • Fixed defer and streaming in development and preview.

    4.0.0release notes

  • External redirects are returned instead of followed internally, allowing the browser to handle OAuth/PKCE flows.

    4.0.0release notes

  • Fixed the method for proper multi-cookie support.

    4.0.0release notes

@shopify/mini-oxygen 33 changes

Breaking changes 1

  • The default runtime exported from the package is now based on workerd.

    3.0.0release notes

New APIs and options 2

  • The previous Node.js sandbox runtime is available from this export.

    3.0.0release notes

  • A Vite plugin integrates Vite with MiniOxygen by running application code within a worker.

    3.0.0release notes

@shopify/mini-oxygen 25 changes

Breaking changes 4

  • Support for the JSON based configuration file is dropped.

    2.0.0release notes

  • The oxygen-gen-config command no longer exists.

    2.0.0release notes

  • Mini Oxygen can no longer be used in a standalone fashion.

    2.0.0release notes

  • The preview function is renamed to startServer, which is now a named export.

    2.0.0release notes

Behavior and default changes 1