Skip to content

v0.65.1

Choose a tag to compare

@Teloz1870 Teloz1870 released this 29 Oct 10:51
· 1 commit to main since this release

A security patch: upgrade. pnpm audit --prod on v0.65.0 lists one critical, nine high, ten
moderate and two low findings, all in dependencies (CW-2026-012), and v0.65.1 lists none. The audit
counts one finding per advisory and vulnerable version range, so an advisory that hits both
undici 6.x and 7.x counts twice; below, each advisory is named once. The
critical one, a middleware bypass in @sentry/nextjs's tunnel route, needs a webpack build, and
the engine builds with Turbopack. None of the others is known to be reachable from a request in a
shipped shop. Also in this release: Node 26, the new LTS, is supported, and an order cancelled
before it was paid gives its discount-code use back. No schema change: no pnpm db:push is needed.

🔒 Security

  • Dependency advisories closed (CW-2026-012). @sentry/nextjs moves to ^10.76.2, and the
    overrides in pnpm-workspace.yaml raise the floors of packages below our direct dependencies.
    Every version was public for at least three days.

    • @sentry/nextjs below 10.75.2 (GHSA-mchm-gjx6-7h55, critical): with tunnelRoute set, the SDK
      skipped middleware for every path under the tunnel path, not only the requests it forwards to
      Sentry. The engine sets tunnelRoute: "/monitoring", and app/[locale] matches any first path
      segment, but the advisory only affects webpack builds, and pnpm build uses Turbopack. A shop
      that builds with next build --webpack is affected for routes whose only authorization check
      is in proxy.ts (Next 16's name for middleware).
    • undici 6.x below 6.29.1 and 7.x below 7.30.1 (under @vercel/blob, jsdom and the AI SDK):
      four high advisories (TLS certificate validation bypass GHSA-2m5v-pch6-74hx, cache poisoning
      GHSA-4w7w-5xrc-9h26, and the denial-of-service advisories GHSA-qrxm-fqhp-jwvm and
      GHSA-xjj6-f33q-929c) and four moderate ones.
    • body-parser below 2.4.0 (GHSA-27r3-jxmh-p828, high) and qs up to 6.16.0
      (GHSA-6pq8-jhm2-2vcw, moderate), both under the MCP SDK's express, which the engine never
      imports.
    • zod below 4.6.6 (GHSA-mrhx-c7xc-m3w5, high): only the older copy inside
      @vercel/cli-config; the engine's own zod was already 4.6.7.
    • fast-uri below 3.1.9 under ajv (two moderate, two low) and ip-address up to 10.7.3 under
      the MCP SDK's express-rate-limit (GHSA-rxp7-6hxx-x8q5, moderate).

    To fix it in your own shop without upgrading, see CW-2026-012 in the advisory index.

Upgrading

Pull and run pnpm install: the dependency changes arrive through package.json,
pnpm-lock.yaml and pnpm-workspace.yaml. No schema change and no required new environment
variable. Node 22, 24 and 26 are supported (22 and 24 for the container image). On Vercel, the next deployment of this release runs on
Node 26; set engines.node to 24.x in package.json to stay on 24 (the project's Node setting
does not hold it back; see Node 26 under Changed). tsconfig.json now excludes **/agent-replays, and
eslint.config.mjs ignores **/agent-replays/**. If your own project has a directory of that name
that you want typechecked or linted, remove the entries.

Changed

  • Node 26 is supported (NODE26-READY). Node 26 became the active LTS on 2026-10-28, and
    engines now reads >=22 <27 instead of turning it away. The unit suite was red on Node 26:
    Node ≥ 25 puts its own localStorage/sessionStorage on the global object (on 26.13, without
    --localstorage-file, localStorage reads as undefined and sessionStorage is an empty
    store), and that shadowed jsdom's storage in jsdom tests
    (client-admin-prefix-welcome, 9 of 9). tests/setup/env.ts now points both at jsdom's in a
    jsdom file, and the PR gate runs the unit suite on Node 26 next to the Node 22 floor. .nvmrc
    and the Dockerfile default stay on 22. One exception: in this release the container image fails
    on Node 26 (corepack: not found), so use 22 or 24 there; the next release fixes it. On Vercel, this release moves production to Node 26:
    Vercel made 26 generally available on 2026-10-29, and a range that allows it builds and runs on
    26 from the next deployment, whatever the project's Node setting says (measured: Vercel's
    record for a deployment of a project set to 24.x reads nodeVersion: 26.x). A prebuilt
    deployment needs Vercel CLI 65.8.0 or later. To stay on 24, set "engines": { "node": "24.x" }
    in package.json. Node 26's built-in fetch uses HTTP/2 by default; set the Vercel environment
    variable VERCEL_FETCH_DISABLE_H2=1 and redeploy to keep HTTP/1.1 in Functions. A build on Node
    26 prints Prisma's notice that it supports Node 20.19+, 22.12+ and 24.0+; the build still
    succeeds. There is no data or schema to migrate.
  • A local copy of replayed projects no longer breaks typecheck, lint or the ownership tests. A
    locally ignored agent-replays directory holding whole replayed scaffolds was picked up by
    tsconfig.json's **/*.ts (tsc ran out of memory at 4 GB), by pnpm lint (37 errors from
    those projects) and by the ownership walk in tests/helpers/claims.ts. All three now skip it. A
    fresh clone has no such directory, so CI was never affected.

Fixed

  • An order cancelled before it was paid gives its discount-code use back (DRØM103-a).
    Checkout counts one use of a discount code when it creates the order, but cancelling an unpaid
    order only returned its stock, so every order cancelled before payment used up one use of a
    limited code for good. The cancel that wins the order's status write now also takes one off
    usageCount (never below 0) in the same transaction: an operator cancel, the
    payment_intent.canceled webhook, the reconcile cron and checkout's own rollback all count it
    once between them. Paid and already-cancelled orders are untouched, and past counts are not
    recalculated.