Skip to content

The Open Standard for Generative UI

The release failed at publish because react-ui/react-headless shipped at (#1186)

abhithesys0227ad77ed79
diff --git a/.changeset/widen-ui-peer-windows.md b/.changeset/widen-ui-peer-windows.md
new file mode 100644
index 000000000..609069ca7
--- /dev/null
+++ b/.changeset/widen-ui-peer-windows.md
@@ -0,0 +1,9 @@
+---
+"@openuidev/react-ui": patch
+"@openuidev/assistant-ui": patch
+---
+
+Widen the internal `react-headless`/`react-ui` peer windows to include the
+0.16.x line, fixing an install-time peer mismatch where these packages
+required a `react-headless`/`react-ui` version older than the one they ship
+against.
diff --git a/package.json b/package.json
index 40fbdcdc5..8fc503b0e 100644
--- a/package.json
+++ b/package.json
@@ -12,7 +12,7 @@
"templates:update": "node scripts/manage-starters.mjs templates update",
"test": "pnpm -r run test",
"build:packages": "pnpm --filter \"./packages/**\" --workspace-concurrency=1 run build",
- "version:ci": "changeset version && pnpm install --lockfile-only",
+ "version:ci": "changeset version && node scripts/verify-peer-windows.mjs && pnpm install --lockfile-only",
"release:publish": "node scripts/verify-peer-windows.mjs && pnpm run build:packages && pnpm changeset publish"
},
"engines": {
diff --git a/packages/assistant-ui/package.json b/packages/assistant-ui/package.json
index e74ffa830..473631ecf 100644
--- a/packages/assistant-ui/package.json
+++ b/packages/assistant-ui/package.json
@@ -79,9 +79,9 @@
"author": "[email protected]",
"peerDependencies": {
"@assistant-ui/react": "^0.15.0",
- "@openuidev/react-headless": ">=0.14.0 <0.16.0",
+ "@openuidev/react-headless": ">=0.14.0 <0.17.0",
"@openuidev/react-lang": ">=0.3.0 <0.4.0",
- "@openuidev/react-ui": ">=0.14.0 <0.16.0",
+ "@openuidev/react-ui": ">=0.14.0 <0.17.0",
"ai": "^6.0.0 || ^7.0.0",
"react": "catalog:",
"react-dom": "catalog:",
diff --git a/packages/react-ui/package.json b/packages/react-ui/package.json
index dd1189937..5d708ef56 100644
--- a/packages/react-ui/package.json
+++ b/packages/react-ui/package.json
@@ -109,7 +109,7 @@
"ci": "pnpm run lint:check && pnpm run format:check && pnpm run test"
},
"peerDependencies": {
- "@openuidev/react-headless": ">=0.14.0 <0.16.0",
+ "@openuidev/react-headless": ">=0.14.0 <0.17.0",
"@openuidev/react-lang": ">=0.3.0 <0.4.0",
"react": "catalog:",
"react-dom": "catalog:",