@thomas.f/prnext 0.1.15-alpha → 0.1.16-alpha

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.
package/README.md CHANGED
@@ -18,7 +18,7 @@ A Rust-powered web runtime with React rendering on Node.js and a static adapter
18
18
 
19
19
  ## Install & upgrade
20
20
 
21
- Node.js **22+** · Windows, macOS and Linux glibc · x64 and ARM64
21
+ Node.js **22.23.4+, 24.22.1+ or 26.12.1+** · Windows, macOS and Linux glibc · x64 and ARM64
22
22
 
23
23
  <details>
24
24
  <summary><strong>Install · migrate an existing Next.js app</strong></summary>
@@ -26,7 +26,7 @@ Node.js **22+** · Windows, macOS and Linux glibc · x64 and ARM64
26
26
  Run these commands from your application directory. The current alpha requires matching React, React DOM and React Server Components versions:
27
27
 
28
28
  ```sh
29
- npm install @thomas.f/prnext@alpha react@19.3.0 react-dom@19.3.0 react-server-dom-webpack@19.3.0
29
+ npm install @thomas.f/prnext@alpha react@19.3.1 react-dom@19.3.1 react-server-dom-webpack@19.3.1
30
30
  npx --no-install prnext migrate --dry-run
31
31
  npx --no-install prnext migrate
32
32
  npx --no-install prnext check
@@ -87,7 +87,7 @@ Set `typescript: {}` to check an existing `tsconfig.json` during production buil
87
87
  Stop your development or production process before changing dependencies. If you use `pstart`, follow the [persistent app upgrade guide](#upgrade-persistent-apps) first.
88
88
 
89
89
  ```sh
90
- npm install @thomas.f/prnext@alpha react@19.3.0 react-dom@19.3.0 react-server-dom-webpack@19.3.0
90
+ npm install @thomas.f/prnext@alpha react@19.3.1 react-dom@19.3.1 react-server-dom-webpack@19.3.1
91
91
  npx --no-install prnext --version
92
92
  npx --no-install prnext check
93
93
  npx --no-install prnext build
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thomas.f/prnext",
3
- "version": "0.1.15-alpha",
3
+ "version": "0.1.16-alpha",
4
4
  "license": "MIT",
5
5
  "description": "Experimental Rust-powered runtime for Next.js apps, React and npm",
6
6
  "homepage": "https://prnext.dev",
@@ -127,17 +127,17 @@
127
127
  "webpack": "5.111.1"
128
128
  },
129
129
  "peerDependencies": {
130
- "react": "19.3.0",
131
- "react-dom": "19.3.0",
132
- "react-server-dom-webpack": "19.3.0"
130
+ "react": "19.3.1",
131
+ "react-dom": "19.3.1",
132
+ "react-server-dom-webpack": "19.3.1"
133
133
  },
134
134
  "optionalDependencies": {
135
- "prnext-darwin-arm64": "0.1.15-alpha",
136
- "prnext-darwin-x64": "0.1.15-alpha",
137
- "prnext-linux-arm64-gnu": "0.1.15-alpha",
138
- "prnext-linux-x64-gnu": "0.1.15-alpha",
139
- "@thomas.f/prnext-win32-x64-msvc": "0.1.15-alpha",
140
- "@thomas.f/prnext-win32-arm64-msvc": "0.1.15-alpha"
135
+ "prnext-darwin-arm64": "0.1.16-alpha",
136
+ "prnext-darwin-x64": "0.1.16-alpha",
137
+ "prnext-linux-arm64-gnu": "0.1.16-alpha",
138
+ "prnext-linux-x64-gnu": "0.1.16-alpha",
139
+ "@thomas.f/prnext-win32-x64-msvc": "0.1.16-alpha",
140
+ "@thomas.f/prnext-win32-arm64-msvc": "0.1.16-alpha"
141
141
  },
142
142
  "engines": {
143
143
  "node": "^22.23.4 || ^24.22.1 || >=26.12.1"
@@ -16,6 +16,10 @@ export async function verifyPackage() {
16
16
  }
17
17
  const rsc = pkg.peerDependencies['react-server-dom-webpack'];
18
18
  if (pkg.peerDependencies.react !== rsc || pkg.peerDependencies['react-dom'] !== rsc) throw new Error('React, React DOM and the RSC runtime must have the same exact version.');
19
+ // Repository advisories may precede npm audit's database. Do not publish the
20
+ // known-vulnerable RSC line even if all three peers have matching versions.
21
+ const reactVersion = /^(\d+)\.(\d+)\.(\d+)$/.exec(rsc)?.slice(1).map(Number);
22
+ if (!reactVersion || reactVersion[0] < 19 || (reactVersion[0] === 19 && (reactVersion[1] < 3 || (reactVersion[1] === 3 && reactVersion[2] < 1)))) throw new Error('React Server Components must include the October 14, 2026 fixes (19.3.1 or later).');
19
23
  async function exported(value) {
20
24
  if (typeof value === 'string') { await access(path.join(packageRoot, value)); return; }
21
25
  for (const target of Object.values(value)) await exported(target);