@actuate-media/cms-admin 0.76.5 → 0.76.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/package.json +10 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @actuate-media/cms-admin
2
2
 
3
+ ## 0.76.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 0cc76fb: Declare `react`/`react-dom` as peerDependencies to prevent a dual-React crash.
8
+
9
+ `@actuate-media/cms-admin` shipped `react` and `react-dom` under
10
+ `dependencies`, so any consumer whose React version didn't dedupe with `^19.2.0`
11
+ — a React 18 app (a configuration `cms-core` advertises via `react >=18.0.0`),
12
+ or React 19.0/19.1 — got a second, nested React copy installed. Two React copies
13
+ trigger "Invalid hook call" and hard-crash the entire admin UI.
14
+
15
+ They're now `peerDependencies` (`^18.0.0 || ^19.0.0`) so the consumer's single
16
+ React instance is always used (with a devDependency for local build/test). A new
17
+ `pnpm check:react-peers` CI gate fails if any publishable package declares
18
+ `react`/`react-dom` under `dependencies` again.
19
+
3
20
  ## 0.76.5
4
21
 
5
22
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@actuate-media/cms-admin",
3
- "version": "0.76.5",
3
+ "version": "0.76.6",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -67,8 +67,6 @@
67
67
  "lowlight": "^3.0.0",
68
68
  "lucide-react": "^1.7.0",
69
69
  "qrcode.react": "^4.2.0",
70
- "react": "^19.2.0",
71
- "react-dom": "^19.2.0",
72
70
  "recharts": "^3.8.1",
73
71
  "sonner": "^2.0.7",
74
72
  "tailwind-merge": "^3.5.0",
@@ -79,7 +77,9 @@
79
77
  },
80
78
  "peerDependencies": {
81
79
  "@actuate-media/cms-core": ">=0.1.0",
82
- "@actuate-media/component-blocks": ">=0.1.0"
80
+ "@actuate-media/component-blocks": ">=0.1.0",
81
+ "react": "^18.0.0 || ^19.0.0",
82
+ "react-dom": "^18.0.0 || ^19.0.0"
83
83
  },
84
84
  "peerDependenciesMeta": {
85
85
  "@actuate-media/component-blocks": {
@@ -93,18 +93,20 @@
93
93
  "@types/react-dom": "^19.0.0",
94
94
  "concurrently": "^9.2.1",
95
95
  "happy-dom": "^20.9.0",
96
+ "react": "^19.2.0",
97
+ "react-dom": "^19.2.0",
96
98
  "tailwindcss": "^4.0.0",
97
99
  "typescript": "^5.7.0",
98
100
  "vitest": "^4.1.0",
99
- "@actuate-media/cms-core": "0.93.3",
100
101
  "@actuate-media/component-blocks": "0.2.2",
102
+ "@actuate-media/cms-core": "0.93.4",
101
103
  "@actuate-media/plugin-ai": "0.5.4",
102
104
  "@actuate-media/plugin-blocks": "0.0.15",
103
105
  "@actuate-media/plugin-commerce": "0.1.1",
104
- "@actuate-media/plugin-forms": "0.0.15",
105
106
  "@actuate-media/plugin-media": "0.0.14",
106
- "@actuate-media/plugin-navigation": "0.0.14",
107
- "@actuate-media/plugin-seo": "0.0.17"
107
+ "@actuate-media/plugin-forms": "0.0.15",
108
+ "@actuate-media/plugin-seo": "0.0.17",
109
+ "@actuate-media/plugin-navigation": "0.0.14"
108
110
  },
109
111
  "scripts": {
110
112
  "build": "tsc --project tsconfig.json && npx @tailwindcss/cli -i src/styles/build-input.css -o dist/actuate-admin.css --minify",