Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/node-22-support.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@seamless-auth/core': patch
'@seamless-auth/express': patch
'@seamless-auth/fastify': patch
'@seamless-auth/nextjs': patch
---

Support Node 22 and newer. The `engines` field now requires `>=22` instead of `>=24 <25`, and CI runs on Node 22, 24, and the latest release (fells-code/seamless-auth-api#339).
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,16 @@ on:

jobs:
test:
name: Run Tests
name: Run Tests (Node ${{ matrix.node-version }})
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
# The supported range is engines >=22: the oldest supported LTS, the
# development default from .nvmrc, and the newest release.
node-version: [22, 24, latest]

steps:
- uses: actions/checkout@v4

Expand All @@ -20,7 +27,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
node-version: ${{ matrix.node-version }}
cache: pnpm

- name: Install dependencies
Expand Down
5 changes: 3 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ packages/
| Build | `pnpm build` |
| Test | `pnpm test` |

- Node version is pinned by `.nvmrc` (Node 24); CI reads it via
`node-version-file`. Run `nvm use` and `corepack enable` locally to match.
- Supported Node is `>=22`. CI tests 22, 24, and the latest release;
`.nvmrc` pins Node 24 for development and releases. Run `nvm use` and
`corepack enable` locally.
- Releases use Changesets; a user-facing change needs a changeset. Do not
hand-edit versions or `CHANGELOG.md`.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"packageManager": "pnpm@10.33.0",
"engines": {
"node": ">=24 <25"
"node": ">=22"
},
"scripts": {
"build": "pnpm -r --sort build",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"README.md"
],
"engines": {
"node": ">=24 <25"
"node": ">=22"
},
"scripts": {
"build": "tsc -p tsconfig.json",
Expand Down
2 changes: 1 addition & 1 deletion packages/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
}
},
"engines": {
"node": ">=24 <25"
"node": ">=22"
},
"scripts": {
"build": "pnpm run build:js && pnpm run build:types",
Expand Down
2 changes: 1 addition & 1 deletion packages/fastify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
}
},
"engines": {
"node": ">=24 <25"
"node": ">=22"
},
"scripts": {
"build": "pnpm run build:js && pnpm run build:types",
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
}
},
"engines": {
"node": ">=24 <25"
"node": ">=22"
},
"scripts": {
"build": "pnpm run build:js && pnpm run build:types",
Expand Down
Loading