Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Switch to node 22 and pnpm v11 (#14026)
Damian Legawiec117cc0970ae4
diff --git a/.github/workflows/docs-package.yml b/.github/workflows/docs-package.ymlindex 52aab7f6f3..0285b2e645 100644--- a/.github/workflows/docs-package.yml+++ b/.github/workflows/docs-package.yml@@ -29,11 +29,11 @@ jobs:steps:- uses: actions/checkout@v4- - uses: pnpm/action-setup@v4+ - uses: pnpm/action-setup@v6- uses: actions/setup-node@v4with:- node-version: 20+ node-version: 22cache: pnpm- run: pnpm install --frozen-lockfile@@ -63,11 +63,11 @@ jobs:steps:- uses: actions/checkout@v4- - uses: pnpm/action-setup@v4+ - uses: pnpm/action-setup@v6- uses: actions/setup-node@v4with:- node-version: 20+ node-version: 22cache: pnpmregistry-url: https://registry.npmjs.orgdiff --git a/.github/workflows/packages.yml b/.github/workflows/packages.ymlindex be24776909..b34a3992a1 100644--- a/.github/workflows/packages.yml+++ b/.github/workflows/packages.yml@@ -39,11 +39,11 @@ jobs:steps:- uses: actions/checkout@v4- - uses: pnpm/action-setup@v4+ - uses: pnpm/action-setup@v6- uses: actions/setup-node@v4with:- node-version: 20+ node-version: 22cache: pnpm- run: pnpm install --frozen-lockfile@@ -65,11 +65,11 @@ jobs:bundler-cache: trueworking-directory: spree/api- - uses: pnpm/action-setup@v4+ - uses: pnpm/action-setup@v6- uses: actions/setup-node@v4with:- node-version: 20+ node-version: 22cache: pnpm- run: pnpm install --frozen-lockfile@@ -100,11 +100,11 @@ jobs:bundler-cache: trueworking-directory: spree/api- - uses: pnpm/action-setup@v4+ - uses: pnpm/action-setup@v6- uses: actions/setup-node@v4with:- node-version: 20+ node-version: 22cache: pnpm- run: pnpm install --frozen-lockfile@@ -174,11 +174,11 @@ jobs:steps:- uses: actions/checkout@v4- - uses: pnpm/action-setup@v4+ - uses: pnpm/action-setup@v6- uses: actions/setup-node@v4with:- node-version: 20+ node-version: 22cache: pnpmregistry-url: https://registry.npmjs.org@@ -218,11 +218,11 @@ jobs:steps:- uses: actions/checkout@v4- - uses: pnpm/action-setup@v4+ - uses: pnpm/action-setup@v6- uses: actions/setup-node@v4with:- node-version: 20+ node-version: 22cache: pnpmregistry-url: https://registry.npmjs.org@@ -276,11 +276,11 @@ jobs:steps:- uses: actions/checkout@v4- - uses: pnpm/action-setup@v4+ - uses: pnpm/action-setup@v6- uses: actions/setup-node@v4with:- node-version: 20+ node-version: 22cache: pnpmregistry-url: https://registry.npmjs.org@@ -330,11 +330,11 @@ jobs:steps:- uses: actions/checkout@v4- - uses: pnpm/action-setup@v4+ - uses: pnpm/action-setup@v6- uses: actions/setup-node@v4with:- node-version: 20+ node-version: 22cache: pnpmregistry-url: https://registry.npmjs.orgdiff --git a/.node-version b/.node-versionindex 209e3ef4b6..2bd5a0a98a 100644--- a/.node-version+++ b/.node-version@@ -1 +1 @@-20+22diff --git a/package.json b/package.jsonindex 75f7982e55..25363baa29 100644--- a/package.json+++ b/package.json@@ -24,9 +24,9 @@"@biomejs/biome": "^2.4.14","turbo": "^2.9.9"},- "packageManager": "[email protected]",+ "packageManager": "[email protected]","engines": {- "node": ">=20"+ "node": ">=22"},"dependencies": {"@base-ui/react": "^1.4.1"diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex 2aac750c4c..3ad89f65fd 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -4,23 +4,34 @@ packages:# Supply-chain hardening — see https://pnpm.io/supply-chain-security## minimumReleaseAge: delay installing newly-published versions of any-# dependency by 7 days (10080 minutes). Catches malicious releases that-# get yanked from the registry within hours of publish.+# dependency by 7 days (10080 minutes). pnpm 11 ships a 1-day default;+# we tighten it. Catches malicious releases that get yanked from the+# registry within hours of publish.#-# blockExoticSubdeps: refuse transitive dependencies pulled from git-# URLs, raw tarballs, or other non-registry sources. Direct deps can-# still opt into exotic sources; subdeps cannot smuggle one in. Default-# becomes true in pnpm 11.+# blockExoticSubdeps: refuse transitive deps pulled from git URLs, raw+# tarballs, or other non-registry sources. Direct deps can still opt in+# explicitly; subdeps cannot smuggle one in. Default in pnpm 11 — pinned+# here to lock the behavior in case of future default changes.## trustPolicy: fail the install if a package's trust level has dropped# (e.g. previously signed releases now arriving without provenance).# Defends against publisher takeover via leaked credentials.#-# dangerouslyAllowAllBuilds: explicitly pinned to false (already the-# default). install scripts only run for packages approved via-# `pnpm approve-builds` — silently flipping this on would auto-run-# every dependency's postinstall.+# dangerouslyAllowAllBuilds: explicitly pinned to false. install scripts+# only run for packages approved via `pnpm approve-builds` — silently+# flipping this on would auto-run every dependency's postinstall.minimumReleaseAge: 10080blockExoticSubdeps: truetrustPolicy: no-downgradedangerouslyAllowAllBuilds: false++# allowBuilds: per-package decision on whether install scripts run.+# dangerouslyAllowAllBuilds is off, so anything not explicitly listed+# here is silently skipped — and pnpm 11 fails the install if a needed+# build is skipped. Audit each package's install script before adding.+#+# esbuild — downloads the platform-native binary on install+# msw — copies the service-worker shim into the workspace+allowBuilds:+ esbuild: true+ msw: true