Skip to content

Commit 8323a3c

Browse files
committed
fix: scope Node version constraint to ai-isolate-node (Node >= 22 for isolated-vm)
The previous "Node 24+" claim was overreaching: - Only `@tanstack/ai-isolate-node` (via `isolated-vm`) has a Node version floor. Everything else in the workspace runs fine on older Node. - `isolated-vm`'s actual `engines.node` is `>=22.0.0` (see https://github.com/laverdet/isolated-vm/blob/main/package.json), not 24. Changes: - Root package.json: drop the `node: ">=24"` entry from engines (keep the pnpm constraint). No global Node floor for development. - packages/typescript/ai-isolate-node/package.json: bump `engines.node` from `>=18` to `>=22` to match upstream. - packages/typescript/ai-isolate-node/README.md: same — say `>=22`, and add the `--no-node-snapshot` flag note for Node 20+ runtime usage.
1 parent 30e3317 commit 8323a3c

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"packageManager": "pnpm@11.1.1",
99
"type": "module",
1010
"engines": {
11-
"node": ">=24",
1211
"pnpm": ">=11.0.0"
1312
},
1413
"scripts": {

packages/typescript/ai-isolate-node/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ Node.js V8 isolate driver for TanStack AI Code Mode. Uses [`isolated-vm`](https:
44

55
## Requirements
66

7-
- Node.js >= 18
7+
- Node.js >= 22 (matches [`isolated-vm`'s engine constraint](https://github.com/laverdet/isolated-vm/blob/main/package.json))
88
- Native compilation toolchain (the `isolated-vm` package compiles a native addon)
9+
- On Node.js 20.x and later, pass `--no-node-snapshot` when running `node`
910

1011
## Installation
1112

packages/typescript/ai-isolate-node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"sideEffects": false,
2222
"engines": {
23-
"node": ">=18"
23+
"node": ">=22"
2424
},
2525
"files": [
2626
"dist",

0 commit comments

Comments
 (0)