Skip to content

chore(deps): bump @clerk/backend from 3.27.0 to 3.31.4 - #1398

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/clerk/backend-3.27.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/clerk/backend-3.27.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Bumps @clerk/backend from 3.27.0 to 3.31.4.

Release notes

Sourced from @​clerk/backend's releases.

@​clerk/backend@​3.31.4

Patch Changes

  • Fix debug() returning empty values on the auth object you get back when a request's token type doesn't match acceptsToken. It now returns the same redacted debug data as the original auth object. (#10855) by @​wobsoriano

  • authenticateRequest() now logs a warning when acceptsToken is set to an invalid value. A future major version will throw an error instead. (#10856) by @​wobsoriano

  • Fix auth().debug() in route handlers not redacting its data for requests authenticated with an M2M token, OAuth token or API key. Debug data is now redacted the same way as for session tokens. (#10872) by @​wobsoriano

  • Updated dependencies [2619870, d3f7ab5, e9ed081]:

    • @​clerk/shared@​4.48.3

@​clerk/backend@​3.31.3

Patch Changes

@​clerk/backend@​3.31.2

Patch Changes

  • Updated dependencies [0a49e7e]:
    • @​clerk/shared@​4.48.1
Changelog

Sourced from @​clerk/backend's changelog.

3.31.4

Patch Changes

  • Fix debug() returning empty values on the auth object you get back when a request's token type doesn't match acceptsToken. It now returns the same redacted debug data as the original auth object. (#10855) by @​wobsoriano

  • authenticateRequest() now logs a warning when acceptsToken is set to an invalid value. A future major version will throw an error instead. (#10856) by @​wobsoriano

  • Fix auth().debug() in route handlers not redacting its data for requests authenticated with an M2M token, OAuth token or API key. Debug data is now redacted the same way as for session tokens. (#10872) by @​wobsoriano

  • Updated dependencies [2619870, d3f7ab5, e9ed081]:

    • @​clerk/shared@​4.48.3

3.31.3

Patch Changes

3.31.2

Patch Changes

  • Updated dependencies [0a49e7e]:
    • @​clerk/shared@​4.48.1

3.31.1

Patch Changes

  • Updated dependencies [9f40d5c]:
    • @​clerk/shared@​4.48.0

3.31.0

Minor Changes

  • Add transactional_email_blocked to the ClerkPolicy reasons of the email.suppressed webhook event type. Clerk sends this reason when a queued transactional email is suppressed because sending was blocked for the instance. (#10849) by @​jescalan

  • Add an optional secondFactorVerification parameter ('fresh' | 'stale') to createSignInToken(), which lets a user with a second factor enabled complete the sign-in without being prompted for it. expiresInSeconds is now optional. (#10265) by @​dmoerner

Patch Changes

  • users.getUserList() no longer waits for the user count when the page it lists already shows the total: a page with fewer users than its limit, or no users at all. The count can be slow for a search over many users, and before this change getUserList() failed whenever the count did. Both requests are still sent together, so a page that fills its limit takes as long as before. (#10803) by @​dmoerner

  • Updated dependencies [c71b7d3, 2ab3bb8]:

    • @​clerk/shared@​4.47.0

3.30.0

... (truncated)

Commits
  • 358ceff ci(repo): Version packages (#10936)
  • 6b8c3a7 fix(backend): warn on an invalid acceptsToken in authenticateRequest (#10856)
  • fe4840d fix(backend): keep debug data when the token type doesn't match acceptsToken ...
  • 88bddcc fix(nextjs): redact debug data for machine auth objects in route handlers (#1...
  • 2a7fb5e ci(repo): Version packages (#10929)
  • 50defde ci(repo): Version packages (#10916)
  • e5f9c1a ci(repo): Version packages (#10904)
  • b7927e6 docs(shared): fix useReverification options table (#10865)
  • 106e4ff ci(repo): Version packages (#10864)
  • 2855616 feat(backend): add secondFactorVerification to createSignInToken (#10265)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 11, 2026
@github-actions github-actions Bot added area:server Touches the server area size:s Under 100 changed lines labels Nov 11, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/clerk/backend-3.27.0 branch 4 times, most recently from 7edb2ce to e421e6f Compare November 12, 2026 18:11
@dependabot dependabot Bot changed the title chore(deps): Bump @clerk/backend from 3.23.0 to 3.27.0 build(deps): Bump @clerk/backend from 3.23.0 to 3.27.0 Nov 12, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/clerk/backend-3.27.0 branch 2 times, most recently from 97aab36 to 806b106 Compare November 13, 2026 00:24
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/clerk/backend-3.27.0 branch 2 times, most recently from 4145c82 to 95f2e8a Compare November 15, 2026 18:11
@dependabot dependabot Bot changed the title build(deps): Bump @clerk/backend from 3.23.0 to 3.27.0 build(deps): Bump @clerk/backend from 3.23.0 to 3.29.0 Nov 18, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/clerk/backend-3.27.0 branch from 95f2e8a to 9b3986e Compare November 18, 2026 11:54
@dependabot dependabot Bot changed the title build(deps): Bump @clerk/backend from 3.23.0 to 3.29.0 chore(deps): Bump @clerk/backend from 3.23.0 to 3.29.0 Nov 18, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/clerk/backend-3.27.0 branch from 9b3986e to af870a8 Compare November 18, 2026 20:49
allisonmahmood added a commit that referenced this pull request Nov 18, 2026
## What changed

Brings every outdated dependency outside the Effect, TypeScript,
TanStack Hotkeys and workerd lanes up to the newest release pnpm's
one-day `minimumReleaseAge` installs, and clears the repo's open
Dependabot alerts (undici, minimatch). People using Patchy notice
nothing. Their next CLI release ships Preact 11.2.0, parse5 8.1.1 and
undici 8.12.4.

Supersedes the Dependabot PRs in the table, which stay open for Allison
to close. One commit per package or group.

| Package | From | To | Supersedes |
| --- | --- | --- | --- |
| `@aws-sdk/client-s3`, `@aws-sdk/client-ecs` | 3.1146.0 | 3.1167.0 |
#1399, #1390 |
| `@clerk/backend` | 3.23.0 | 3.27.0 | #1398 |
| `tough-cookie` | 6.0.2 | 6.1.0 | #1397 |
| `rolldown` | 1.2.15 | 1.3.2 | #1396 |
| `rolldown-plugin-dts` | 0.28.8 | 0.30.2 | #1388 |
| `posthog-node` | 5.55.0 | 5.69.0 | #1395 |
| `@babel/parser`, `@babel/types` | 8.0.8 | 8.1.2 | #1394, #1393 |
| `preact` (bundled in the CLI) | 11.1.0 | 11.2.0 | #1392 |
| `vitest` | 5.0.5 | 5.1.0 | #1389 |
| `@playwright/test` | 1.63.0 | 1.65.0 | #1387 |
| `parse5` (catalog) | 8.0.1 | 8.1.1 | #1386 |
| `imapflow` | 2.10.2 | 2.11.0 | #1385 |
| `aws-cdk` / `aws-cdk-lib` | 2.1144.0 / 2.272.0 | 2.1148.1 / 2.276.0 |
#1383 |
| `oxlint`, `@oxlint/plugins` / `oxlint-tsgolint` | 1.90.0 / 7.0.2005 |
1.93.0 / 7.0.2006 | #1382 |
| `npm`, `turbo`, `@electric-sql/pglite`, `semver`, `vite` | 12.2.1,
2.11.9, 0.5.10, 7.8.5, 8.3.4 | 12.2.2, 2.11.11, 0.5.16, 7.8.6, 8.3.8 |
#1401 |
| `papaparse` | 5.7.0 | 5.7.1 | none |
| `minimatch` | 10.2.6 | 11.0.8 | none (alerts 21, 22) |
| `undici` (transitive, lockfile only) | 8.11.2 | 8.12.4 | none (alerts
13 to 18) |

Newer releases exist for `@aws-sdk/*` (3.1168.0), `@clerk/backend`
(3.28.0), `posthog-node` (5.71.0) and `oxlint-tsgolint` (7.0.2007), but
they were still under a day old.

## Look at

**Why the three red Dependabot PRs failed, and the fixes.**

1. **parse5 (#1386, every test job).** `html-policy.test.ts` expected
`<b><div>` + 6,000 `<br>` + `</b>` to cross the HTML repair bound.
parse5 8.1 now moves the children of an element closed out of order last
child first
([inikulin/parse5@e2901d06](inikulin/parse5@e2901d06)).
That cost used to grow with the square of the child count, and the
repair bound charges for exactly that cost. The old test described the
old parser, not a product rule. The same page now parses in milliseconds
and reads its title, as a browser does. The test now asserts that a
15,000-child block reads its title, and the comment on `locate` says
why. Timed through `documentTitle` with 64 KB inputs, the bound that
fires on each version:

   | Input (64 KB) | parse5 8.0.1 | parse5 8.1.1 |
   | --- | --- | --- |
| `<b><div>` + `<br>`… + `</b>` | repair bound, null | 19 ms, title read
|
| `<a><div>` + `<br>`… + `<a>` | repair bound, null | 11 ms, title read
|
| `<table><b><div>` + `<br>`… | repair bound, null | 9 ms, title read |
| 500 distinct `<b a=n>` + `x<p>`… | created bound, null | created
bound, null (234 ms) |
   | deep `<span><div>` pairs | depth bound, null | depth bound, null |

   Every other shape I tried parses in under 20 ms on 8.1.1.

**The sibling-repair bound keeps a test of its own.** On 8.1.1 no known
input reaches `MAX_REPAIR_WORK`. A fuzz of about 22,000 generated
documents and fragments, repeated motifs over tables, formatting
elements, foster parenting and adoption, never had a single move pass
more than one sibling. With the check removed, every parse test still
passed, because their refusals come from the created-node and attribute
bounds. The bound stays as the guard against a parser release that moves
front first again, as parse5 did before 8.1, and the comment on `locate`
now says so. Its test drives the bounded tree adapter directly
(`boundedTreeAdapter`, now exported from the module for it; core's
package exports are unchanged). Detaching 6,000 children last first
passes, and detaching them front first is refused with the repair
message. With line 91's check deleted, the test fails:

   ```
× bounds error recovery that moves nodes from the front of a long
sibling list 112ms
FAIL packages/core/src/html-policy.test.ts > boundedTreeAdapter > bounds
error recovery that moves nodes from the front of a long sibling list
   AssertionError: expected [Function] to throw an error
         Tests  1 failed | 31 passed (32)
   ```

With the check in place, 32 of 32 pass. parse5 8.1 also brings a series
of security fixes: mutation-XSS cases where parse5's tree differed from
a browser's, and quadratic parse times. bundleCheck and the HTML policy
now see the tree a browser builds in those cases. The rest of
`packages/core`, `serving/src/shell`, `bundleCheck`, `repoBuild.test.ts`
and `pageImports` pass unchanged.

2. **Babel (#1394, lint).** `@babel/parser` takes its AST types from
`@babel/types`. With only the parser on 8.1.0, the CLI had two copies of
the types, and `editUses.ts`, `packagePin.ts` and `pageImports.ts`
failed to typecheck (`Type 'ArrayExpression' is not assignable to type
'Node'`, plus an excessive-stack-depth error). Both now move to 8.1.2
together, and `pnpm typecheck:tests` is clean.

3. **Patch group (#1401, test on Node).** `cliRepo.test.ts` and
`cliRepoBuild.test.ts` expect the loaded vite to match
`packages/patchy/src/toolchain.json`'s `testedAgainst` (`expected
'Loaded vite 8.3.7 is unsupported' to contain 'Loaded vite 8.3.4 is
unsupported'`). Those files are Node-only, which is why Bun passed.
`testedAgainst` and the patchy-loop skill's toolchain table now say
8.3.8, as #899 did for the last vite bump. The accepted range stays
`^8.3.0`.

**CDK synth.** I synthesized the production example (`synth:example`'s
context) before and after the aws-cdk bump. Both templates differ only
in the `CDKMetadata` analytics blob, which encodes the library version.
No resource changed. The new feature flags are left unset and keep their
old behaviour.

**rolldown-plugin-dts 0.30** folds `dtsInput` into `dtsOnly`, so the
release build now names the new option. The published `.d.ts` files are
byte-identical except that `preact.d.ts` and the two JSX runtime entries
keep their bare `import "./preact/runtime.js"`. rolldown emits that as
one `_types/runtime-*.d.ts` holding `export {}`. The plugin forces
internal modules to keep side effects in `dtsOnly` mode, so there's no
option to drop it. TypeScript reads it as an empty module.

**Behaviour changes in changelogs, and why none needed a change here:**
- `@clerk/backend` 3.26.1 refuses the legacy `cl_I7d4PD111III` JWT
category, which Clerk no longer issues. 3.28.0, not taken here, will
refuse session JWTs without a `cat` header. We only call
`authenticateRequest` on Clerk-issued tokens.
- `tough-cookie` 6.1 refuses `Secure` cookies set from plain-http
origins other than loopback, and wants an explicit `Path=/` on `__Host-`
cookies. It is used only in auth's tests, which pass.
- `posthog-node` 5.57 to 5.69 change local flag evaluation, exception
autocapture and email. We use only `capture` and `shutdown`, with GeoIP
off.
- `@electric-sql/pglite` 0.5.12 runs initdb with `TZ=UTC`, so new local
`.patchy/` databases default to UTC, as production does. 0.5.15 rejects
committing an aborted transaction instead of resolving.
- Preact 11.1.1 and 11.2.0 reach every page the CLI bundles. An `on*`
prop with a non-function value no longer registers an event handler. A
thrown `null` or `undefined` now reaches error boundaries as itself
instead of a `TypeError`. A node that unmounts keeps its handlers, so an
event already bubbling through it finishes. `<template>` in SVG and
MathML now renders and hydrates. These are fixes to what a page
observes. No change to `patchy/preact` was needed, and the packed Preact
suite (one runtime, hooks, compat, signals, `useQuery`, dev debugging)
passes.
- `imapflow` 2.11 only adds an opt-in `sessionExpires` option.
- The `@aws-sdk` clients gain features and fixes. S3 and ECS keep their
protocols. `@aws-sdk/client-ecs` now sets a default socket timeout of
900,000 ms. That's moot here: every ECS call runs under our own
`Effect.timeout`, which aborts the request through its `abortSignal` at
10 s for management calls, 40 s for `list` and 50 s for starts.
- `aws-cdk` 2.1148 rejects a single-value option given twice. The deploy
workflow repeats only `-c`, which takes many.
- Playwright 1.64 forwards a device descriptor's `screen`, and 1.65
loads `.css` imports in test files as empty modules. The CI browser
cache keys on `playwright --version`, so it follows the bump without a
change.

## How it was verified

- Each red Dependabot failure was reproduced locally first, then the
targeted suites ran green: `html-policy.test.ts`, `typecheck:tests`,
`cliRepo`, `cliRepoBuild`, `initProject`, the Babel-using CLI suites,
the auth suites that use tough-cookie, the IMAP suites,
`company-database`, CSV, the labeler test, the lint plugin's tests and
`apps/infra`.
- `pnpm audit` went from 9 advisories (8 undici, 1 minimatch) to none.
Under minimatch 10 and 11, every one of the 54 label globs matches the
same 1,457 tracked files.
- papaparse 5.7.1 parses the CSV test's 500,000-row input in about 300
ms, against about 470 ms on 5.7.0.
- `pnpm check`: format, lint, typecheck and synth pass. The offline
tests passed 3,603 of 3,613. The 10 failures were this shared machine,
not the change: two timeouts under a load average near 40, and
`install.test.ts`, which needs npm beside the Node that runs it while
this shell's first `node` was a system build without one. Rerun alone on
Node 24.20.0 (CI's and `mise.toml`'s), those three files pass, 90 of 90.
- `pnpm verify` on Node 24.20.0: format, lint, typecheck, synth,
postgres-concurrency, cli-smoke, install, tier2-smoke and browser
(Chromium and Firefox) pass. `test` and `test (bun)` failed on timeouts
while the shared machine ran near load 45: 25 Node cases in 18 files and
9 Bun cases in 8 files, nearly all `Test timed out`. Rerun alone, the 8
Bun files pass (149 of 149), and 17 of the 18 Node files pass. The last
one, `PgliteCompanyDatabases.test.ts`, timed out its 5 s case once more
among the 18 and passes alone twice in about 1.6 s. PGlite 0.5.16 boots
a fresh database as fast as 0.5.10 (1.1–2.4 s against 1.4–2.4 s over
three cold boots each). CI's `test (24)` and `test (bun)` passed on this
branch.
- Not run locally: the live Clerk, Pidgeon, Attio and IMAP suites, which
create real accounts and send mail, the server image and the rollback
rehearsal. CI runs them.

**Left out:** `embedded-postgres` 18.6.0-beta.19. It swaps
`async-exit-hook`, which `patches/[email protected]` fixes,
for `exit-hook` 5. That honours `process.exitCode` on `beforeExit`, so
the patch could go. But exit-hook also installs `exit` and IPC `message`
listeners, and prints a termination notice on any explicit
`process.exit()` while Postgres's async hook is registered. The dev
supervisor, `packed-cli-e2e.mjs` and `rollback-rehearsal.ts` all manage
those handlers by hand, so moving needs its own pass over their signal
and exit codes.

## Release impact

- [ ] **Breaking** — requires action from anyone already running this
- [x] **Not breaking** — no action required

Library and tooling bumps. No API, schema, CLI flag or configuration
change. The CLI release bundles a newer Preact, parse5 and undici. CDK
templates are unchanged.

- **What does a revert leave behind?** Nothing. Lockfile, manifests and
one test change. No migration, data or infrastructure moves.
- **Does the release before it still work with that?** Yes.

Made by Claude Opus 5.5 in T3 Code via Claude Code.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
@dependabot dependabot Bot changed the title chore(deps): Bump @clerk/backend from 3.23.0 to 3.29.0 chore(deps): Bump @clerk/backend from 3.27.0 to 3.29.0 Nov 18, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/clerk/backend-3.27.0 branch 4 times, most recently from 45f2d59 to 78c89c6 Compare November 19, 2026 00:24
@dependabot dependabot Bot changed the title chore(deps): Bump @clerk/backend from 3.27.0 to 3.29.0 chore(deps): Bump @clerk/backend from 3.27.0 to 3.30.0 Nov 20, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/clerk/backend-3.27.0 branch 3 times, most recently from 088fef0 to 9ad20ce Compare November 20, 2026 03:09
@dependabot dependabot Bot changed the title chore(deps): Bump @clerk/backend from 3.27.0 to 3.30.0 chore(deps): Bump @clerk/backend from 3.27.0 to 3.31.1 Nov 22, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/clerk/backend-3.27.0 branch from 9ad20ce to 8fd5f17 Compare November 22, 2026 13:10
@dependabot dependabot Bot changed the title chore(deps): Bump @clerk/backend from 3.27.0 to 3.31.1 chore(deps): bump @clerk/backend from 3.27.0 to 3.31.3 Nov 23, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/clerk/backend-3.27.0 branch from 8fd5f17 to 21580af Compare November 23, 2026 18:52
@dependabot dependabot Bot changed the title chore(deps): bump @clerk/backend from 3.27.0 to 3.31.3 chore(deps): bump @clerk/backend from 3.27.0 to 3.31.4 Nov 23, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/clerk/backend-3.27.0 branch from 21580af to cacda2a Compare November 23, 2026 22:53
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/clerk/backend-3.27.0 branch from cacda2a to 34cab2a Compare November 23, 2026 23:32

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:server Touches the server area dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code size:s Under 100 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants