Skip to content

armgit / spree

Public Imported from GitHub
0

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.

Fix: pin Base UI so a scaffolded dashboard boots (#14742)

Damian Legawiecdd32521a901e
diff --git a/package.json b/package.json
index df5a45cf79..ac708808b1 100644
--- a/package.json
+++ b/package.json
@@ -52,7 +52,7 @@
"node": ">=22"
},
"dependencies": {
- "@base-ui/react": "^1.4.1",
+ "@base-ui/react": "1.8.0",
"@spree/cli": "workspace:*"
}
}
diff --git a/packages/dashboard-core/CHANGELOG.md b/packages/dashboard-core/CHANGELOG.md
index e72fe3a4e7..25cce11c49 100644
--- a/packages/dashboard-core/CHANGELOG.md
+++ b/packages/dashboard-core/CHANGELOG.md
@@ -1,5 +1,7 @@
# @spree/dashboard-core
+## 1.0.0-beta.5
+
## 1.0.0-beta.4
### Minor Changes
diff --git a/packages/dashboard-core/package.json b/packages/dashboard-core/package.json
index 3c913273e6..d79356c5bf 100644
--- a/packages/dashboard-core/package.json
+++ b/packages/dashboard-core/package.json
@@ -1,7 +1,7 @@
{
"name": "@spree/dashboard-core",
"license": "MIT",
- "version": "1.0.0-beta.4",
+ "version": "1.0.0-beta.5",
"description": "Spree Dashboard framework — registries (table, nav, slot, settings-nav), providers (auth, permission, store), admin SDK client, generic infra hooks, and the defineDashboardPlugin extension API. Developer Preview.",
"author": "Vendo Connect Inc.",
"homepage": "https://spreecommerce.org",
diff --git a/packages/dashboard-ui/CHANGELOG.md b/packages/dashboard-ui/CHANGELOG.md
index f2ee425549..a8e1652fe6 100644
--- a/packages/dashboard-ui/CHANGELOG.md
+++ b/packages/dashboard-ui/CHANGELOG.md
@@ -1,5 +1,15 @@
# @spree/dashboard-ui
+## 1.0.0-beta.5
+
+### Patch Changes
+
+- [`35fb9e8`](https://github.com/spree/spree/commit/35fb9e8868718420bab03142b2d9990fefa18dc7) Thanks [@damianlegawiec](https://github.com/damianlegawiec)! - Pinned Base UI to an exact version so a scaffolded dashboard boots.
+
+ `@base-ui/react` was caret-ranged, so every new project installed whatever Base UI had published most recently rather than the version Spree tested against. `@base-ui/utils` 0.3.0 added a `useStore` helper that imports `useSyncExternalStore` by name from the CommonJS `use-sync-external-store` shim. Vite converts that during prebundling for an ordinary dependency, but `@spree/dashboard-ui` ships source, so an installed copy reached the browser with the named CommonJS import intact and the dashboard failed to start with a `SyntaxError`.
+
+ The monorepo's committed lockfile hid this — only fresh installs floated onto the newer Base UI. It is now pinned exactly, in the packages and as a workspace override, and the monorepo runs the same version a scaffold installs.
+
## 1.0.0-beta.4
### Patch Changes
diff --git a/packages/dashboard-ui/package.json b/packages/dashboard-ui/package.json
index 59604d7635..d2ad0f97fb 100644
--- a/packages/dashboard-ui/package.json
+++ b/packages/dashboard-ui/package.json
@@ -1,7 +1,7 @@
{
"name": "@spree/dashboard-ui",
"license": "MIT",
- "version": "1.0.0-beta.4",
+ "version": "1.0.0-beta.5",
"description": "Spree Dashboard design system — shadcn primitives, headless composed components, and design tokens. Source-only package; consumers compile via their own Vite/Tailwind setup. Developer Preview.",
"author": "Vendo Connect Inc.",
"homepage": "https://spreecommerce.org",
@@ -53,7 +53,7 @@
"tailwindcss": "^4.2.4"
},
"dependencies": {
- "@base-ui/react": "^1.4.1",
+ "@base-ui/react": "1.8.0",
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
diff --git a/packages/dashboard/CHANGELOG.md b/packages/dashboard/CHANGELOG.md
index fa47d12295..584357936f 100644
--- a/packages/dashboard/CHANGELOG.md
+++ b/packages/dashboard/CHANGELOG.md
@@ -1,5 +1,19 @@
# @spree/dashboard
+## 1.0.0-beta.5
+
+### Patch Changes
+
+- [`35fb9e8`](https://github.com/spree/spree/commit/35fb9e8868718420bab03142b2d9990fefa18dc7) Thanks [@damianlegawiec](https://github.com/damianlegawiec)! - Pinned Base UI to an exact version so a scaffolded dashboard boots.
+
+ `@base-ui/react` was caret-ranged, so every new project installed whatever Base UI had published most recently rather than the version Spree tested against. `@base-ui/utils` 0.3.0 added a `useStore` helper that imports `useSyncExternalStore` by name from the CommonJS `use-sync-external-store` shim. Vite converts that during prebundling for an ordinary dependency, but `@spree/dashboard-ui` ships source, so an installed copy reached the browser with the named CommonJS import intact and the dashboard failed to start with a `SyntaxError`.
+
+ The monorepo's committed lockfile hid this — only fresh installs floated onto the newer Base UI. It is now pinned exactly, in the packages and as a workspace override, and the monorepo runs the same version a scaffold installs.
+
+- Updated dependencies [[`35fb9e8`](https://github.com/spree/spree/commit/35fb9e8868718420bab03142b2d9990fefa18dc7)]:
+
## 1.0.0-beta.4
### Minor Changes
diff --git a/packages/dashboard/package.json b/packages/dashboard/package.json
index d68a8d6da1..f19b0a67e6 100644
--- a/packages/dashboard/package.json
+++ b/packages/dashboard/package.json
@@ -1,7 +1,7 @@
{
"name": "@spree/dashboard",
"license": "MIT",
- "version": "1.0.0-beta.4",
+ "version": "1.0.0-beta.5",
"description": "Spree Dashboard app shell — the next-gen React admin for Spree Commerce. Routes, resource hooks, schemas, locales, and the <Dashboard /> component. Source-only package; hosts compile it via @spree/dashboard/vite. Developer Preview.",
"author": "Vendo Connect Inc.",
"homepage": "https://spreecommerce.org",
@@ -57,7 +57,7 @@
"prepublishOnly": "tsup"
},
"dependencies": {
- "@base-ui/react": "^1.4.1",
+ "@base-ui/react": "1.8.0",
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
diff --git a/packages/seller-dashboard/CHANGELOG.md b/packages/seller-dashboard/CHANGELOG.md
index 11ebb15536..5906e3a1de 100644
--- a/packages/seller-dashboard/CHANGELOG.md
+++ b/packages/seller-dashboard/CHANGELOG.md
@@ -1,5 +1,19 @@
# @spree/seller-dashboard
+## 1.0.0-beta.5
+
+### Patch Changes
+
+- [`35fb9e8`](https://github.com/spree/spree/commit/35fb9e8868718420bab03142b2d9990fefa18dc7) Thanks [@damianlegawiec](https://github.com/damianlegawiec)! - Pinned Base UI to an exact version so a scaffolded dashboard boots.
+
+ `@base-ui/react` was caret-ranged, so every new project installed whatever Base UI had published most recently rather than the version Spree tested against. `@base-ui/utils` 0.3.0 added a `useStore` helper that imports `useSyncExternalStore` by name from the CommonJS `use-sync-external-store` shim. Vite converts that during prebundling for an ordinary dependency, but `@spree/dashboard-ui` ships source, so an installed copy reached the browser with the named CommonJS import intact and the dashboard failed to start with a `SyntaxError`.
+
+ The monorepo's committed lockfile hid this — only fresh installs floated onto the newer Base UI. It is now pinned exactly, in the packages and as a workspace override, and the monorepo runs the same version a scaffold installs.
+
+- Updated dependencies [[`35fb9e8`](https://github.com/spree/spree/commit/35fb9e8868718420bab03142b2d9990fefa18dc7)]:
+
## 1.0.0-beta.4
### Patch Changes
diff --git a/packages/seller-dashboard/package.json b/packages/seller-dashboard/package.json
index e9d19b88da..dd7dc0fa21 100644
--- a/packages/seller-dashboard/package.json
+++ b/packages/seller-dashboard/package.json
@@ -1,6 +1,6 @@
{
"name": "@spree/seller-dashboard",
- "version": "1.0.0-beta.4",
+ "version": "1.0.0-beta.5",
"license": "MIT",
"type": "module",
"description": "Spree marketplace seller panel — the seller-facing counterpart to the admin dashboard.",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 5a784c5019..a490d3f23c 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -5,6 +5,8 @@ settings:
excludeLinksFromLockfile: false
overrides:
+ '@base-ui/react': 1.8.0
+ '@base-ui/utils': 0.4.0
esbuild: ^0.28.1
vite: ^8.0.16
js-yaml: ^4.3.2
@@ -40,8 +42,8 @@ importers:
.:
dependencies:
'@base-ui/react':
- specifier: ^1.4.1
+ specifier: 1.8.0
'@spree/cli':
specifier: workspace:*
version: link:packages/cli
@@ -166,8 +168,8 @@ importers:
packages/dashboard:
dependencies:
'@base-ui/react':
- specifier: ^1.4.1
+ specifier: 1.8.0
'@dnd-kit/core':
specifier: ^6.3.1
@@ -221,13 +223,13 @@ importers:
version: 3.31.3(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))
'@tiptap/react':
specifier: 3.31.3
'@tiptap/starter-kit':
specifier: 3.31.3
version: 3.31.3
'@uiw/react-json-view':
specifier: ^1.12
class-variance-authority:
specifier: ^0.7.1
version: 0.7.1
@@ -521,8 +523,8 @@ importers:
packages/dashboard-ui:
dependencies:
'@base-ui/react':
- specifier: ^1.4.1
+ specifier: 1.8.0
'@dnd-kit/core':
specifier: ^6.3.1
@@ -558,13 +560,13 @@ importers:
version: 3.31.3(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))
'@tiptap/react':
specifier: 3.31.3
'@tiptap/starter-kit':
specifier: 3.31.3
version: 3.31.3
'@uiw/react-json-view':
specifier: ^1.12
class-variance-authority:
specifier: ^0.7.1
version: 0.7.1
@@ -968,6 +970,10 @@ packages:
resolution: {integrity: sha512-JiDShH45zKHWyGe4ZNVRrCjBz8Nh9TMmZG1kh4QTK8hCBTWBi8Da+i7s1fJw7/lYpM4ccepSNfqzZ/QvABBi5g==}
engines: {node: '>=6.9.0'}
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw==}
+ engines: {node: '>=6.9.0'}
+
resolution: {integrity: sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==}
engines: {node: '>=6.9.0'}
@@ -980,8 +986,8 @@ packages:
resolution: {integrity: sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==}
engines: {node: '>=6.9.0'}
- '@base-ui/[email protected]':
- resolution: {integrity: sha512-Ab5/LIhcmL8BQcsBUYiOfkSDRdLpvgUBzMK30cu684JPcLclYlztharvCZyNNgzJtbAiREzI9q0pI5erHCMgCw==}
+ '@base-ui/[email protected]':
+ resolution: {integrity: sha512-P0/1sxo6SBVZOklKMIedvTWqw2s2IQzi9x5bIVsXu980cuSOD4NeuRSs+/L7LZQfDkZP/uRZyGPyfFl/B1oH+Q==}
engines: {node: '>=14.0.0'}
peerDependencies:
'@date-fns/tz': ^1.2.0
@@ -997,8 +1003,8 @@ packages:
date-fns:
optional: true
- '@base-ui/[email protected]':
- resolution: {integrity: sha512-jvOi+c+ftGlGotNcKnzPVg2IhCaDTB6/6R3JeqdjdXktuAJi3wKH9T7+svuaKh1mmfVU11UWzUZVH74JDfi/wQ==}
+ '@base-ui/[email protected]':
+ resolution: {integrity: sha512-bO9fz25kKtPf+aZVyfQrC0PDmJdmVni31W2hCS5/Owb+inwdIL3XU26pCPRPlt4LSxZrBgLwubXQXQlKaFEZzw==}
peerDependencies:
'@types/react': ^17 || ^18 || ^19
react: ^17 || ^18 || ^19
@@ -1397,11 +1403,17 @@ packages:
'@floating-ui/[email protected]':
resolution: {integrity: sha512-1Ih4WTWyw0+lKyFMcBHGbb5U5FtuHJuujoyyr5zTaWS5EYMeT6Jb2AuDeftsCsEuchO+mM2ij5+q9crhydzLhQ==}
+ '@floating-ui/[email protected]':
+ resolution: {integrity: sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ==}
+
'@floating-ui/[email protected]':
resolution: {integrity: sha512-9gZSAI5XM36880PPMm//9dfiEngYoC6Am2izES1FF406YFsjvyBMmeJ2g4SAju3xWwtuynNRFL2s9hgxpLI5SQ==}
- '@floating-ui/[email protected]':
- resolution: {integrity: sha512-cC52bHwM/n/CxS87FH0yWdngEZrjdtLW/qVruo68qg+prK7ZQ4YGdut2GyDVpoGeAYe/h899rVeOVm6Oi40k2A==}
+ '@floating-ui/[email protected]':
+ resolution: {integrity: sha512-yXSrzeHZBTZadLOlfyhCkJHNeLJnHRnRInwdZ40L7ZiaAtrBwoYlsDrX3v5zB1Utk7CLfzcOVnVVWoXEky7Ceg==}
+
+ '@floating-ui/[email protected]':
+ resolution: {integrity: sha512-JDjEFGCpImxDCA7JJKviA0M9+RtmJdj0m/NVU5IMgBK+AmZouAQQ7/+2GLH0GXXY0YMw9oXPB8hKdbPYg5QLYg==}
peerDependencies:
react: '>=16.8.0'
react-dom: '>=16.8.0'
@@ -1409,6 +1421,9 @@ packages:
'@floating-ui/[email protected]':
resolution: {integrity: sha512-RiB/yIh78pcIxl6lLMG0CgBXAZ2Y0eVHqMPYugu+9U0AeT6YBeiJpf7lbdJNIugFP5SIjwNRgo4DhR1Qxi26Gg==}
+ '@floating-ui/[email protected]':
+ resolution: {integrity: sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==}
+
'@fontsource-variable/[email protected]':
resolution: {integrity: sha512-ZKlZ5sjtalb2TwXKs400mAGDlt/+2ENLNySPx0wTz3bP3mWARCsUW+rpxzZc7e05d2qGch70pItt3K4qttbIYA==}
@@ -4081,6 +4096,9 @@ packages:
resolution: {integrity: sha512-K/BG6eIky/SBpzfHZv/dd+9JBFiS4SWV7FIujVyJRux6e45+73RaUHXLmIR1f7WOMaQ0U1km6qwklRQxpJJY0w==}
+ resolution: {integrity: sha512-XGoLeRAVzUTcJ1qkxPQhDJyIZ5d6zzZD9nT7AEZOaaU9UbWclhycElmhO+VD5bFeLuzhPBaOV2oXC8uG35ZSpg==}
+
resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==}
engines: {node: '>=4'}
@@ -4850,6 +4868,8 @@ snapshots:
'@babel/[email protected]': {}
+ '@babel/[email protected]': {}
+
dependencies:
'@babel/code-frame': 7.29.0
@@ -4873,12 +4893,12 @@ snapshots:
'@babel/helper-string-parser': 7.27.1
'@babel/helper-validator-identifier': 7.28.5
dependencies:
- '@babel/runtime': 7.29.2
- '@floating-ui/react-dom': 2.1.8([email protected]([email protected]))([email protected])
- '@floating-ui/utils': 0.2.11
+ '@babel/runtime': 7.29.7
+ '@floating-ui/react-dom': 2.1.9([email protected]([email protected]))([email protected])
+ '@floating-ui/utils': 0.2.12
react: 19.2.6
react-dom: 19.2.6([email protected])
use-sync-external-store: 1.6.0([email protected])
@@ -4887,13 +4907,13 @@ snapshots:
'@types/react': 19.2.14
date-fns: 4.1.0
dependencies:
- '@babel/runtime': 7.29.2
- '@floating-ui/utils': 0.2.11
+ '@babel/runtime': 7.29.7
+ '@floating-ui/utils': 0.2.12
react: 19.2.6
react-dom: 19.2.6([email protected])
- reselect: 5.1.1
+ reselect: 5.3.0
use-sync-external-store: 1.6.0([email protected])
optionalDependencies:
'@types/react': 19.2.14
@@ -5281,19 +5301,33 @@ snapshots:
'@floating-ui/[email protected]':
dependencies:
'@floating-ui/utils': 0.2.11
+ optional: true
+
+ '@floating-ui/[email protected]':
+ dependencies:
+ '@floating-ui/utils': 0.2.12
'@floating-ui/[email protected]':
dependencies:
'@floating-ui/core': 1.7.5
'@floating-ui/utils': 0.2.11
+ optional: true
+ '@floating-ui/[email protected]':
dependencies:
- '@floating-ui/dom': 1.7.6
+ '@floating-ui/core': 1.8.0
+ '@floating-ui/utils': 0.2.12
+
+ dependencies:
+ '@floating-ui/dom': 1.8.0
react: 19.2.6
react-dom: 19.2.6([email protected])
- '@floating-ui/[email protected]': {}
+ '@floating-ui/[email protected]':
+ optional: true
+
+ '@floating-ui/[email protected]': {}
'@fontsource-variable/[email protected]': {}
@@ -5984,9 +6018,9 @@ snapshots:
dependencies:
'@tiptap/extensions': 3.31.3(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])
dependencies:
- '@floating-ui/dom': 1.7.6
+ '@floating-ui/dom': 1.8.0
'@tiptap/core': 3.31.3(@tiptap/[email protected])
'@tiptap/pm': 3.31.3
optional: true
@@ -6080,7 +6114,7 @@ snapshots:
prosemirror-transform: 1.12.0
prosemirror-view: 1.42.3
dependencies:
'@tiptap/core': 3.31.3(@tiptap/[email protected])
'@tiptap/pm': 3.31.3
@@ -6093,7 +6127,7 @@ snapshots:
use-sync-external-store: 1.6.0([email protected])
optionalDependencies:
'@tiptap/extension-bubble-menu': 3.31.3(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])
- '@tiptap/extension-floating-menu': 3.31.3(@floating-ui/[email protected])(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])
+ '@tiptap/extension-floating-menu': 3.31.3(@floating-ui/[email protected])(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])
transitivePeerDependencies:
- '@floating-ui/dom'
@@ -6214,9 +6248,9 @@ snapshots:
'@types/[email protected]': {}
dependencies:
- '@babel/runtime': 7.29.2
+ '@babel/runtime': 7.29.7
react: 19.2.6
react-dom: 19.2.6([email protected])
@@ -7700,6 +7734,8 @@ snapshots:
+
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index af77ec3ff1..21e235fa85 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -44,6 +44,17 @@ allowBuilds:
# fixes here. Revisit when the upstream dependents pull the fixes in on
# their own and these become no-ops.
overrides:
+ # Base UI is pinned exactly, not caret-ranged. `@base-ui/react` carries an
+ # exact `@base-ui/utils` dependency, and 0.3.0 of that package introduced a
+ # `useStore` helper importing `useSyncExternalStore` by name from the
+ # CommonJS `use-sync-external-store` shim. Vite converts that during
+ # prebundling for an ordinary dependency, but dashboard-ui ships source, so
+ # an installed copy reaches the browser with the named CJS import intact and
+ # every scaffolded app fails to boot. The monorepo lockfile hid this; only
+ # fresh installs floated onto the newer Base UI. Bump deliberately, with a
+ # scaffold boot test.
+ '@base-ui/react': 1.8.0
+ '@base-ui/utils': 0.4.0
esbuild: ^0.28.1
vite: ^8.0.16
js-yaml: ^4.3.2