diff --git a/.github/workflows/ci.js.yml b/.github/workflows/ci.js.yml index 4d10d41a..7ec8647c 100644 --- a/.github/workflows/ci.js.yml +++ b/.github/workflows/ci.js.yml @@ -26,7 +26,7 @@ jobs: strategy: matrix: - node-version: [22.x, 24.x, 26.x] + node-version: [22.23.4, 24.22.1, 26.12.1] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: @@ -35,6 +35,7 @@ jobs: uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: node-version: ${{ matrix.node-version }} + check-latest: true cache: "npm" cache-dependency-path: "typescript/package-lock.json" - run: npm ci diff --git a/.github/workflows/ci.python.yml b/.github/workflows/ci.python.yml index 973bbd58..081f3e77 100644 --- a/.github/workflows/ci.python.yml +++ b/.github/workflows/ci.python.yml @@ -33,6 +33,8 @@ jobs: steps: - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 + with: + node-version-file: .nvmrc - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 with: @@ -68,4 +70,3 @@ jobs: - name: Test with Pytest run: | pytest -vv - diff --git a/.github/workflows/fix-dependabot-alerts.yml b/.github/workflows/fix-dependabot-alerts.yml index 3964d0a0..94707799 100644 --- a/.github/workflows/fix-dependabot-alerts.yml +++ b/.github/workflows/fix-dependabot-alerts.yml @@ -53,7 +53,7 @@ jobs: - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: - node-version: 22 + node-version-file: .nvmrc cache: "npm" cache-dependency-path: typescript/package-lock.json diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index c6abe037..9fa39673 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -19,7 +19,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: - node-version: 24.x + node-version-file: .nvmrc cache: 'npm' cache-dependency-path: "site/package-lock.json" - name: Build site diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..01816bf3 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +24.22.1 diff --git a/README.md b/README.md index 4513aa59..29f4c867 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,10 @@ Types are all you need! # Getting Started +The TypeScript/JavaScript package requires [Node.js 24.22.1 or newer](https://nodejs.org/en/download). +Development uses Node.js 24.22.1, pinned in [.nvmrc](./.nvmrc), which includes the +[October 21, 2026 security fixes](https://nodejs.org/en/blog/vulnerability/october-2026-security-releases). + Install TypeChat for TypeScript/JavaScript: ``` diff --git a/python/README.md b/python/README.md index 592e0ffd..97224185 100644 --- a/python/README.md +++ b/python/README.md @@ -37,7 +37,7 @@ To use TypeChat in an existing backend without an interactive chat loop, follow It includes a [standalone sentiment example](./examples/sentiment/non_interactive.py) and an async function you can call from application code. You can also develop TypeChat from source, which needs [Python >=3.11](https://www.python.org/downloads/), -[hatch](https://hatch.pypa.io/1.6/install/), and [Node.js >=20](https://nodejs.org/en/download): +[hatch](https://hatch.pypa.io/1.6/install/), and [Node.js >=24.22.1](https://nodejs.org/en/download): ```sh git clone https://github.com/microsoft/TypeChat diff --git a/python/package-lock.json b/python/package-lock.json index 07cfde21..08a69a9e 100644 --- a/python/package-lock.json +++ b/python/package-lock.json @@ -1,15 +1,18 @@ { "name": "typechat-py", - "version": "0.0.4", + "version": "0.0.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "typechat-py", - "version": "0.0.4", + "version": "0.0.5", "license": "MIT", "devDependencies": { "pyright": "1.1.358" + }, + "engines": { + "node": ">=24.22.1" } }, "node_modules/fsevents": { diff --git a/python/package.json b/python/package.json index 82902602..3ef641c1 100644 --- a/python/package.json +++ b/python/package.json @@ -8,6 +8,9 @@ }, "author": "Microsoft", "license": "MIT", + "engines": { + "node": ">=24.22.1" + }, "devDependencies": { "pyright": "1.1.358" } diff --git a/site/package-lock.json b/site/package-lock.json index cf485c1b..3e217432 100644 --- a/site/package-lock.json +++ b/site/package-lock.json @@ -11,6 +11,9 @@ "devDependencies": { "@11ty/eleventy": "^3.1.2", "shiki": "^0.14.3" + }, + "engines": { + "node": ">=24.22.1" } }, "node_modules/@11ty/dependency-tree": { diff --git a/site/package.json b/site/package.json index 779bfe66..b8baff46 100644 --- a/site/package.json +++ b/site/package.json @@ -14,6 +14,9 @@ }, "author": "", "license": "MIT", + "engines": { + "node": ">=24.22.1" + }, "bugs": { "url": "https://github.com/microsoft/TypeChat/issues" }, diff --git a/site/src/docs/examples.md b/site/src/docs/examples.md index 1eb22a0f..cbd3a949 100644 --- a/site/src/docs/examples.md +++ b/site/src/docs/examples.md @@ -28,7 +28,7 @@ We recommend reading each example in the following order. You can experiment with these TypeChat examples on your local machine with just Node.js. -Ensure [Node.js (18.16.0 LTS or newer)](https://nodejs.org/en) or newer is installed. +Ensure [Node.js 24.22.1 or newer](https://nodejs.org/en/download) is installed. ``` git clone https://github.com/microsoft/TypeChat diff --git a/typescript/README.md b/typescript/README.md index cc4df6b9..ef06f95e 100644 --- a/typescript/README.md +++ b/typescript/README.md @@ -18,6 +18,9 @@ Types are all you need! # Getting Started +Requires [Node.js 24.22.1 or newer](https://nodejs.org/en/download). +The development version is pinned in [.nvmrc](../.nvmrc). + Install TypeChat: ```sh diff --git a/typescript/examples/README.md b/typescript/examples/README.md index 9ae1922f..2d45735f 100644 --- a/typescript/examples/README.md +++ b/typescript/examples/README.md @@ -24,7 +24,7 @@ We recommend reading each example in the following order. You can experiment with these TypeChat examples on your local machine with just Node.js. -Ensure [Node.js (18.16.0 LTS or newer)](https://nodejs.org/en) or newer is installed. +Ensure [Node.js 24.22.1 or newer](https://nodejs.org/en/download) is installed. ``` git clone https://github.com/microsoft/TypeChat diff --git a/typescript/package-lock.json b/typescript/package-lock.json index f7305ec2..454ec81f 100644 --- a/typescript/package-lock.json +++ b/typescript/package-lock.json @@ -18,7 +18,7 @@ "undici": "^8.10.0" }, "engines": { - "node": ">=22.19.0" + "node": ">=24.22.1" }, "peerDependencies": { "typescript": "^7.0.2", diff --git a/typescript/package.json b/typescript/package.json index 0c58996a..9dba3ae4 100644 --- a/typescript/package.json +++ b/typescript/package.json @@ -38,7 +38,7 @@ "./interactive": "./dist/interactive/index.js" }, "engines": { - "node": ">=22.19.0" + "node": ">=24.22.1" }, "files": [ "dist",