Skip to content

Take a round of npm updates, and hold the Workers runtime off SQLite 3.54.1 - #482

Merged
cdeutsch merged 5 commits into
mainfrom
claude/npm-upgrades-6eb2c3
Nov 11, 2026
Merged

cdeutsch merged 5 commits into
mainfrom
claude/npm-upgrades-6eb2c3

Conversation

@cdeutsch

Copy link
Copy Markdown
Contributor

A dependency round, done against DEPENDENCIES.md. It also picks up the two security fixes in #454 (fast-uri 3.1.9, serialize-javascript 7.1.4), which the re-resolved lockfile carries.

Taken

  • Minors and patches (one commit): hono 4.13.18 (three security releases; no route uses the patterns 4.13.16 now refuses), @modelcontextprotocol/server 2.4, pdfjs-dist 6.5, lucide-react 1.72, posthog-js, TanStack Query and Router (with router-plugin, one router-core), Vite 8.3.8 and its React plugin, CodeMirror, downshift, linkedom, the unified utilities, @cloudflare/workers-types, @types/node.
    • pdf.js 6.5 adds a renderer worker, but only when GlobalWorkerOptions.rendererSrc is set. We don't set it, so pages still draw on the main thread.
  • Better Auth 1.7.21, all four packages together. Several security fixes reach this instance (wildcard trusted origins, passkey user verification, OTP attempt limits, a Workers hang). 1.7.12 now takes an ID token's algorithm from the provider instead of the token header, so Apple accepts RS256 only. Our native Sign in with Apple test forged its token with ES256 and only passed because the header was trusted. It now signs with RS256, which is what Apple actually uses.
  • jsdom 31 (web tests only). Its new CSS engine serializes translate as a browser does (0 40px reads back as 0px 40px), so two Sheet assertions changed. The sheet itself didn't.
  • @posthog/cli 0.19. sourcemap process --directory is unchanged. It needs credentials even to inject, so the deploy's release step is its first real run.

Held

  • wrangler 4.151.1 and @cloudflare/vitest-plugin 1.4.4, now exact. Every workerd from 1.20261106 ships SQLite 3.54.1 (Upgrade SQLite to version 3.54.1 cloudflare/workerd#8239), and on it NotesStore.search's four-tier statement fails with "VIEWs and/or subqueries nested too deep". Plugin 1.8.0 fails eleven store tests, all searches. With its miniflare forced back to 5.20261104.0-beta, they pass. Wrangler 4.160 would break search on every local pnpm dev the same way. Production runs the same workerd, so unbent.app gets this SQLite when Cloudflare deploys that release, whatever we pin. The pin only covers local runs; the real fix is reshaping the statement.
  • vitest 5.0.3. Rechecked against 5.1.0: plugins 1.6.0 and 1.8.0 both lose eight of seventeen store-test files to "Worker exited unexpectedly".
  • TanStack DB 0.11.3 family. 1.0.0-rc.1.5 is npm's latest now and still has no begin({ immediate }).
  • @journeyapps/wa-sqlite 1. The persistence adapter still peers on ^1.4.1.

Checked

  • pnpm typecheck, and the API unit, seed, clip, ENEX, web and store suites, plus pnpm build, all pass on the tip. The store suite's 76 "unhandled errors" are on main's CI too (the tests' expected refusals, reported twice).
  • Local instance: the demo seed signs up and signs in through Better Auth, the note list loads, a server search answers, and a receipt with two PDFs renders both pages (painted canvases), with the editor mounted, lucide icons drawn and no console errors.
  • pnpm gate:offline fails, and it fails on main too, so it's not from this round. The service worker's install precaches pricing.html and support.html. The asset layer redirects them to /pricing and /support, which since Show the pricing and support pages' own titles to search and link previews #480 draw the shell for a signed-in reader, so the worker rejects them as "answered with the page, not the file" and never installs. That needs its own fix.

🤖 Generated with Claude Code

cdeutsch and others added 5 commits November 11, 2026 15:52
Everything outdated that is not held and needs no family or major of its own. Hono 4.13.16 to 4.13.18 are security releases (validator, bodyLimit, mount and the RegExpRouter's wildcard middleware); the routes were checked for the patterns 4.13.16 now refuses (`/prefix*` beside `/prefix/*`, a custom pattern that can match nothing) and use none.

pdf.js 6.5 adds a renderer worker for canvas drawing, which is used only when `GlobalWorkerOptions.rendererSrc` is set. Neither the viewer nor the ENEX parser sets it, so pages still draw on the main thread as before, and the worker and the wasm directory the build copies are where they were.

Moved: `hono`, `@modelcontextprotocol/server`, `@cloudflare/workers-types`, `pdfjs-dist`, `lucide-react`, `posthog-js`, `@tanstack/react-query`, `@tanstack/react-router` with `@tanstack/router-plugin` (one `router-core` between them), `vite`, `@vitejs/plugin-react`, `@codemirror/view`, `@lezer/markdown`, `downshift`, `linkedom`, the unified utilities and `@types/node`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Eleven patch releases, several of them security fixes that reach this instance: wildcard trusted origins no longer match outside their scheme, host or path (the local `allowedHosts` are port wildcards and still match), passkey `userVerification` is enforced and the expected origin comes from configuration (ours sets `origin` beside `rpID`), email OTP holds its attempt limit under concurrent requests, and requests no longer hang on Workers when the schema check outlives the request that started it.

1.7.12 also takes an ID token's algorithm from the provider's configuration instead of the token's header, so Apple accepts RS256 only. The native Sign in with Apple test forged its token with ES256 and passed only because the header was trusted; it signs with RS256 now, which is what Apple uses. Nothing else changes for a real token.

`better-auth`, `@better-auth/mcp`, `@better-auth/oauth-provider` and `@better-auth/passkey` move in lockstep, as DEPENDENCIES.md asks, and the graph keeps one `@better-auth/utils` (0.5.1).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jsdom is the web suite's environment and nothing else. 31 replaces its CSS parsing and computed styles with a new implementation, moves the optional canvas backend to `@napi-rs/canvas` (nothing here draws to a canvas under test) and pauses parsing at blocking scripts (nothing here builds a `JSDOM` by hand).

The new CSS code serializes an inline `translate` as a browser does, so the `0 40px` the sheet writes while it is dragged reads back as `0px 40px`, and `0 0px` as `0px`. The two `Sheet` assertions that read it expected jsdom 30's string as written; the sheet itself is unchanged. jsdom 31 needs Node 22.22.2 or later, which CI's latest 22 and the local 22.23 both are.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0.19.0's one feature is Flutter symbols; the patches since keep presigned credentials out of error logs, stop the package shipping its own `prettier`, and let an upload go without a release when git cannot name one. `sourcemap process --directory`, the one command `scripts/sourcemaps.sh` runs, is unchanged. It needs PostHog's credentials even to inject, so the deploy's release step is the first place it runs for real.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…arch.

Every workerd from 1.20261106 carries SQLite 3.54.1, and under it the store's search statement fails with "VIEWs and/or subqueries nested too deep". Wrangler 4.160 and plugin 1.8.0 both bring that workerd: the first would break search on every local instance through `pnpm dev`, the second fails eleven store tests, all of them searches. Both are pinned exactly to the versions this round tested, which their carets would otherwise let drift onto it.

DEPENDENCIES.md records the bisection, why the pin only covers local runs (production's runtime is the same workerd and will get the same SQLite), and what lifts it. It also notes what this round rechecked: vitest 5.1 still loses workers under every plugin release, TanStack DB's 1.0 release candidate is npm's `latest` without `begin({ immediate })`, the persistence adapter still peers on wa-sqlite 1, and Better Auth is at 1.7.21.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Preview: https://unbent-pr-482.of2668.workers.dev

Sign in with Continue on the dev instance: a preview cannot register
its own OAuth callback (its host changes every PR), so it borrows a Google
session from https://dev.unbent.app and comes back signed in. A password with an
allowlisted address still works too.

Runs against the shared unbent-dev database, bucket and note stores (the same
notes as the dev instance), so what you change here changes there too. Production
is untouched. The Worker is deleted when this PR closes.

Worker unbent-pr-482 · deployed aac5e5a

@cdeutsch
cdeutsch merged commit 1ae0349 into main Nov 11, 2026
12 checks passed
@cdeutsch
cdeutsch deleted the claude/npm-upgrades-6eb2c3 branch November 11, 2026 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant