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
18 changes: 18 additions & 0 deletions .changeset/node-24-minimum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
"@cipherstash/stack": minor
"@cipherstash/stack-drizzle": minor
"@cipherstash/stack-supabase": minor
"@cipherstash/wizard": minor
"@cipherstash/migrate": minor
"stash": minor
---

Node.js 24 is now the minimum supported version. `engines.node` is `>=24` in
every package that declares one. `stash doctor` fails on an earlier Node, and
the wizard refuses to start on one. CI now tests Node 24 and 26.

Node 22 reaches end of life on 30 April 2027, and Node 24 is supported until
April 2028.

If your application runs on Node 22, move it to Node 24 before you take this
release. AWS Lambda (`nodejs24.x`) and Vercel both offer Node 24.
4 changes: 2 additions & 2 deletions .cursor/commands/create-example-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ CODE STYLE
- Prisma/Drizzle/Raw SQL: choose CJS or ESM for least friction; document choice in one sentence.

REQUIRED DX & SCRIPTS (per example)
- Node ≥ 22. Use local binaries (no global installs).
- Node ≥ 24. Use local binaries (no global installs).
- Docker Compose for Postgres (shared at root or per example).
- Scripts:
- `dev:db` → `docker compose up -d db`
Expand Down Expand Up @@ -97,7 +97,7 @@ ACCEPTANCE TESTS (per example)
→ creates rows with encrypted fields; readback shows decrypted values; a query returns expected rows.
2) Re-running `demo` is idempotent (or intentionally reseeds) without unhandled errors.
3) `npm run typecheck` passes.
4) No ESM/CJS mismatch under Node 22.
4) No ESM/CJS mismatch under Node 24.
5) Minimality: respects Simplicity Budget; ≤ 1 non-essential dependency.
6) Directness: demo code calls the ORM/client directly.
7) README: no banned words/emojis; Quickstart works verbatim on a clean machine.
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/integration-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ inputs:
node-version:
description: Node major to run the suites on.
required: false
# The newest major `tests.yml` exercises, and what the repo develops on.
# `engines` is `>=22`; the unit job still covers 22 in its matrix.
# `engines`' floor (`>=24`), and what the repo develops on. The unit job
# in `tests.yml` also covers 26 in its matrix.
default: '24'

runs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_build-auth-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:

- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
with:
node-version: 22
node-version: 24
package-manager-cache: false

- name: Install node-gyp
Expand Down Expand Up @@ -249,7 +249,7 @@ jobs:

- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
with:
node-version: 22
node-version: 24
package-manager-cache: false

- name: Install node-gyp
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/_build-ffi-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:

- uses: actions/[email protected]
with:
node-version: 22
node-version: 24
package-manager-cache: false

# No pnpm and no install: the script reads `neon.rust` out of the six
Expand Down Expand Up @@ -162,7 +162,7 @@ jobs:

- uses: actions/[email protected]
with:
node-version: 22
node-version: 24
package-manager-cache: false

- name: Install node-gyp
Expand Down Expand Up @@ -416,7 +416,7 @@ jobs:

- uses: actions/[email protected]
with:
node-version: 22
node-version: 24
package-manager-cache: false

- name: Install node-gyp
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auth-preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:

- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
with:
node-version: 22
node-version: 24
package-manager-cache: false

# npm refuses to install a platform package whose os/cpu does not match
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ffi-preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:

- uses: actions/[email protected]
with:
node-version: 22
node-version: 24
package-manager-cache: false

# The five non-host platform tarballs cannot be installed here — npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fta-v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Install Node.js
uses: actions/[email protected]
with:
node-version: 22
node-version: 24
cache: 'pnpm'

# node-pty's install hook falls back to `node-gyp rebuild` when no
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/integration-protect-ffi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,17 +232,13 @@ jobs:
with:
run_install: false

# Node 22, not the 24 `.github/actions/integration-setup` defaults to.
# This used to be an npm-version argument — the suite installed with
# `npm ci` against a lockfile npm 11 reads more strictly than npm 10 — and
# that argument died with the lockfile. What is left is the plainer one:
# 22 is `engines`' floor and what every other workflow in this repo pins,
# so it is the version this job's Rust binding and WASM artifacts are
# built and cached against everywhere else. 24 is covered for the JS
# Node 24: `engines`' floor and what every other workflow in this repo
# pins, so it is the version this job's Rust binding and WASM artifacts
# are built and cached against everywhere else. 26 is covered for the JS
# surface by `tests.yml`'s matrix.
- uses: actions/[email protected]
with:
node-version: 22
node-version: 24
cache: 'pnpm'

# node-pty's install hook falls back to `node-gyp rebuild` when no
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/migration-harness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
run_install: false
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
with:
node-version: 22
node-version: 24
cache: pnpm
- run: npm install -g node-gyp
- run: pnpm install --frozen-lockfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prisma-example-readme-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
- name: Install Node.js
uses: actions/[email protected]
with:
node-version: 22
node-version: 24
cache: 'pnpm'

# node-pty's install hook falls back to `node-gyp rebuild` when no
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prisma-next-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
- name: Install Node.js
uses: actions/[email protected]
with:
node-version: 22
node-version: 24
cache: 'pnpm'

# node-pty's install hook falls back to `node-gyp rebuild` when no
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:

- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
with:
node-version: 22
node-version: 24
package-manager-cache: false

# No pnpm install: the script imports node builtins only.
Expand Down Expand Up @@ -218,7 +218,7 @@ jobs:

- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
with:
node-version: 22
node-version: 24
package-manager-cache: false

- name: Read the publisher switch
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-postgres-eql-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:

- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
with:
node-version: 22
node-version: 24
package-manager-cache: false

- name: Read the publisher switch
Expand Down
23 changes: 12 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ jobs:

- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
with:
node-version: 22
node-version: 24
package-manager-cache: false

# No pnpm install: the script imports node builtins only, as `gate` does.
Expand Down Expand Up @@ -185,7 +185,7 @@ jobs:

- uses: actions/[email protected]
with:
node-version: 22
node-version: 24
package-manager-cache: false

# No pnpm, no install. scripts/release-gate.mjs imports node builtins
Expand Down Expand Up @@ -240,7 +240,7 @@ jobs:
# and fails every publish with E404.
- uses: actions/[email protected]
with:
node-version: 22
node-version: 24
package-manager-cache: false

- name: Upgrade npm for OIDC trusted publishing
Expand Down Expand Up @@ -393,7 +393,7 @@ jobs:
# No `registry-url:`: it writes an `_authToken` line that shadows OIDC.
- uses: actions/[email protected]
with:
node-version: 22
node-version: 24
package-manager-cache: false

- name: Upgrade npm for OIDC trusted publishing
Expand Down Expand Up @@ -528,7 +528,7 @@ jobs:
- name: Install Node.js
uses: actions/[email protected]
with:
node-version: 22
node-version: 24
# No `cache:`, and package-manager-cache disabled. release.yml
# publishes to npm (OIDC trusted publishing) and must not restore the
# GitHub Actions cache — a cache-poisoning / supply-chain vector.
Expand All @@ -541,8 +541,9 @@ jobs:
- name: Install node-gyp
run: npm install -g node-gyp

# npm OIDC trusted publishing requires npm >= 11.5.1; Node 22 ships
# npm 10.x. `changeset publish` shells out to this npm to publish.
# npm OIDC trusted publishing requires npm >= 11.5.1, and the npm bundled
# with early Node 24 releases is older. `changeset publish` shells out to
# this npm to publish.
- name: Upgrade npm for OIDC trusted publishing
run: npm install -g npm@^11.5.1

Expand Down Expand Up @@ -584,10 +585,10 @@ jobs:
#
# `add_shims_to_path: false` IS LOAD-BEARING, and it is the input a
# copy-paste from test-eql.yml would not carry. `packages/eql/mise.toml`
# pins `node = "22"` under `[tools]`, and mise's shim directory is
# pins `node = "24"` under `[tools]`, and mise's shim directory is
# PREPENDED to PATH for every later step — so with the default `true`,
# mise's own Node would shadow the one `actions/setup-node` installed, and
# `changeset publish` would shell out to that Node's bundled npm 10.x
# `changeset publish` would shell out to that Node's bundled npm
# instead of the `npm@^11.5.1` installed above. OIDC trusted publishing
# requires >= 11.5.1 and fails with E404 below it, which is the exact
# failure the two comments above this step exist to prevent. `mise run`
Expand Down Expand Up @@ -696,7 +697,7 @@ jobs:

- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
with:
node-version: 22
node-version: 24
package-manager-cache: false

# No pnpm install: the script imports node builtins only, as `gate` does.
Expand Down Expand Up @@ -845,7 +846,7 @@ jobs:

- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
with:
node-version: 22
node-version: 24
package-manager-cache: false

# `add_shims_to_path: false` and `env: false` are load-bearing — see the
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/require-auth-npm-changeset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
- name: Install Node.js
uses: actions/[email protected]
with:
node-version: 22
node-version: 24
package-manager-cache: false

# The root alone declares `@changesets/parse`, and nothing here builds.
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/tests-bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ jobs:
# incidental here: the bench `globalSetup` installs EQL v3 by shelling out
# to the real `stash eql install --eql-version 3`.
- uses: ./.github/actions/integration-setup
with:
# This job's existing Node; the composite defaults to 24 for the
# integration suites.
node-version: 22

# The bench unit checks import @cipherstash/stack, and the `stash eql
# install` in the bench `globalSetup` runs the CLI; both load
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests-crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ jobs:

- uses: actions/[email protected]
with:
node-version: 22
node-version: 24
cache: 'pnpm'

# node-pty falls back to `node-gyp rebuild` on Linux during any
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:

- uses: actions/[email protected]
with:
node-version: 22
node-version: 24
cache: 'pnpm'

# node-pty's install hook falls back to `node-gyp rebuild` when no
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests-supply-chain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
- name: Install Node.js
uses: actions/[email protected]
with:
node-version: 22
node-version: 24
# Do not use caching in this cache-testing workflow
package-manager-cache: false

Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ jobs:
- name: Install Node.js
uses: actions/[email protected]
with:
# Node 22 is the supply-chain hardening baseline every pnpm-using job
# Node 24 is the supply-chain hardening baseline every pnpm-using job
# must pin (enforced by e2e/tests/supply-chain.e2e.test.ts). Lint is
# runtime-agnostic, so a single pinned version is fine.
node-version: 22
node-version: 24
cache: 'pnpm'

# node-pty's install hook falls back to `node-gyp rebuild` when no
Expand All @@ -58,12 +58,12 @@ jobs:
timeout-minutes: 25
strategy:
matrix:
node-version: [22, 24]
node-version: [24, 26]
postgres-version: [16, 17]
exclude:
- node-version: 22
postgres-version: 17
- node-version: 24
postgres-version: 17
- node-version: 26
postgres-version: 16

# Postgres + EQL for the integration tests. Official EQL image —
Expand Down Expand Up @@ -428,7 +428,7 @@ jobs:
- name: Install Node.js
uses: actions/[email protected]
with:
node-version: 22
node-version: 24
cache: 'pnpm'

# node-pty's install hook falls back to `node-gyp rebuild` when no
Expand Down Expand Up @@ -618,7 +618,7 @@ jobs:
- name: Install Node.js
uses: actions/[email protected]
with:
node-version: 22
node-version: 24
cache: 'pnpm'

# node-pty (a dev-dep of @cipherstash/cli used by its E2E PTY
Expand Down Expand Up @@ -766,7 +766,7 @@ jobs:
- name: Install Node.js
uses: actions/[email protected]
with:
node-version: 22
node-version: 24
cache: 'pnpm'

- name: Install node-gyp
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ This is the CipherStash Stack repository (`cipherstash/stack`) - End-to-end, per

## Prerequisites

- **Node.js**: >= 22 (enforced in `package.json` engines)
- **Node.js**: >= 24 (enforced in `package.json` engines)
- **pnpm**: 10.33.2 (this repo uses pnpm workspaces and catalogs)
- Internet access to install the prebuilt native module `@cipherstash/protect-ffi`

Expand Down
Loading
Loading