@clerk/backend
3.29.0 · 14 Nov 2026MIT8.4M / weekRepositoryHomepagenpmAtom feed
Upgrading @clerk/backend From 3.11.7 to 3.12.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 2
- changes to make
- 0
- advisories fixed
- 3
- new
- 2
- fixes
Before you upgrade
Tick each one off as you go- Deprecated3.12.0
- Deprecated3.12.0
Release by release
- Deprecated
Deprecated
syncUserAttributesonCreateEnterpriseConnectionParams. The Backend API ignores this parameter on create; useupdateEnterpriseConnection()to set it. - Deprecated
Deprecated
provideronUpdateEnterpriseConnectionParams. The Backend API ignores this parameter on update; the provider cannot be changed after creation. - New
Add an optional
orgIdparameter tocreateSignInToken()for activating an Organization when the token is redeemed. - New
Add the required
providerfield toCreateEnterpriseConnectionParams. The Backend API has always requiredproviderwhen creating an enterprise connection, so calls tocreateEnterpriseConnection()without it type-checked but failed at runtime. The field is typed to the supported provider values ('saml_custom','saml_okta','saml_google','saml_microsoft','oidc_custom','oidc_github_enterprise','oidc_gitlab'), so unsupported values are also caught at compile time. - New
Add the remaining optional enterprise connection parameters supported by the Backend API.
CreateEnterpriseConnectionParamsandUpdateEnterpriseConnectionParamsnow acceptallowOrganizationAccountLinking,customAttributes,authenticatable, anddisableJitProvisioning(update also acceptsdisableAdditionalIdentifications), and SAML params acceptloginHintfor configuring thelogin_hintsent to the IdP. - Fixed
Fix a cross-origin handshake bypass where
isKnownClerkReferrer()trusted overly broad referrer hosts as Clerk-owned: anyaccounts.*host (e.g.accounts.attacker.com), plus dev account-portal domains (*.accounts.devand legacy suffixes) on production instances. These let unrelated origins skip the handshake and its session-freshness check. The referrer is now trusted only for the accounts portal derived from the instance's frontend API, plus dev account-portal domains on non-production instances. - Fixed
Standardize JSDoc punctuation to always follow
e.g.andi.e.with a comma (e.g.,/i.e.,), matching the docs style guide. Comment-only change; no runtime behavior is affected. This keeps the generated Typedoc reference output consistent.
- Deprecated
1 other line we could not sort, mostly version bumps
- 3.12.0
nameanddomainsare now required onCreateEnterpriseConnectionParams. The Backend API already rejected requests missing either of them, so calls that omitted these fields failed at runtime; the types now surface this at compile time.
1 internal line (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.