Skip to Content

Compatibility

Supported runtimes and databases, what each release promises, and how to upgrade.

Supported configurations

ComponentSupportedVerified in CI
Node.jsLTS lines from 2424 and 26
BunparseWebhook() only1.4.4
DenoparseWebhook() only2.9.8
Cloudflare WorkersparseWebhook() onlyworkerd 1.20261006.1
TypeScript5.9.3 or later5.9.3 and 7.0
PostgreSQL16, 17, 18, and 1916 to 19
Better Auth1.7.7 through 1.81.7.7, newest 1.7 and 1.8

The worker, publishing, and management run on Node.js only. parseWebhook() is verified on Bun, Deno, and Cloudflare Workers. On Workers it needs Node.js compatibility, because the verify entry point uses node:crypto and the Buffer global: compatibility date 2026-08-04 or later turns it on by default, and from 2024-09-23 the nodejs_compat flag does. Earlier dates lack the Buffer global even with the flag. No other runtime is verified.

Every change runs the full integration suite on Node.js 24 with PostgreSQL 16, plus the package and runtime checks. The rest of the matrix runs every Monday and on manual dispatch before a release. What CI verifies for each:

  • Node.js: the full integration suite on Node.js 24 (Maintenance LTS) with PostgreSQL 16, and weekly on Node.js 26 (Active LTS) for every PostgreSQL version. ESM and CommonJS consumers on Node.js 26 for every change, and on Node.js 24 weekly and at release.
  • Bun: Bun 1.4.4 runs parseWebhook() against a signed event and rejects a tampered body from the packed archive.
  • Deno: Deno 2.9.8 runs parseWebhook() against a signed event and rejects a tampered body from the packed archive.
  • Cloudflare Workers: workerd 1.20261006.1 through miniflare, on compatibility date 2026-10-01 with no flags, and on 2024-09-23 with nodejs_compat, runs parseWebhook() against a signed event and rejects a tampered body from the packed archive. The same date without the flag must fail to start.
  • TypeScript: 5.9.3 and 7.0 with NodeNext resolution; @arethetypeswrong/cli checks Bundler resolution.
  • PostgreSQL: the full integration suite on 16 for every change, and weekly on 16, 17, 18, and 19.
  • Better Auth: 1.7.7, the newest 1.7, and the newest 1.8 including betas, across the adapter matrix, weekly. Every change runs the 1.7.7 integration tests on PostgreSQL. The Monday run tests new Better Auth releases without a change here.

The package ships ESM and also loads through CommonJS require(). Standalone consumers are checked with strict: true and skipLibCheck: false. Better Auth consumers need skipLibCheck for upstream declarations; their own types stay fully checked. The Bun, Deno, and Cloudflare Workers checks cover only parseWebhook() from the packed good-webhooks/verify entry point, not publishing, delivery workers, or database-backed management.

Drop policy

  • A major release drops a Node.js or PostgreSQL line only after its upstream end of life.
  • CI tests LTS lines only. engines does not block Node.js 25, but nothing checks it.
  • Better Auth and TypeScript publish no end-of-life dates, so at least the current and previous release line of each stay supported.
  • When a new Better Auth or TypeScript line ships, the next minor release may drop the oldest supported line. The release before it announces the drop, and the drop is not a breaking change.

Upstream end of life for the supported lines:

LineEnd of life
Node.js 242028-04-30
Node.js 262029-04-30
PostgreSQL 162028-11-09
PostgreSQL 172029-11-08
PostgreSQL 182030-11-14
PostgreSQL 192031-11-19

Node.js 26 has been Active LTS since 2026-10-28. 1.x supports PostgreSQL 19 from 2026-11-20, with no package change. Adding a PostgreSQL version is not a breaking change. Today's TypeScript range, 5.9.3 or later, is wider than the policy's minimum.

Stability policy

1.0.0 shipped on 12 November 2026. This section states the contract from 1.0.0, and Before 1.0.0 lists the rules that applied to 0.x.

Public surface

These are public, and the rest of this policy applies to them:

  • The entry points and every name they export, including types.
  • The interfaces a host implements.
  • The Better Auth plugin: its routes, request and response bodies, client methods, and stored model.
  • The shipped SQL files and the schema version sequence.
  • The wire format: request headers, the signature scheme, and the event envelope.

These are not public and can change without notice:

  • Imports from dist/ or src/, and anything not reachable from an entry point.
  • Names that contain Internal.
  • The docs site, the examples, and the Playground.

Host-implemented interfaces

Your code implements these, so they never gain a required member in 1.x:

  • EndpointSource, EndpointResolution, and AutomaticPauseInput.
  • ManagementRepository, StoredEndpoint, and StoredEndpointPatch.
  • SecretCipher.
  • The database types Database, DatabaseClient, SqlClient, and QueryResult.
  • DeliveryHooks and the worker's onError callback.
  • The management callbacks validateUrl, scopeExists, and EndpointLimit.
  • The Better Auth ScopePolicy, passed as authorizeScope.
  • BetterAuthManagementSchemaOptions.

They grow by these rules:

  • New methods, callbacks, and fields are optional.
  • New inputs arrive in a trailing options object.
  • A field missing from a stored row reads as its default.
  • SecretCipher never gains a method, even an optional one.

EndpointManagement is not on this list. The library builds it with createManagement, createPostgresManagement, or createBetterAuthManagement. You customize it through the repository, cipher, and options. To change one method, wrap a provider by spreading it, as in { ...management, create }. A spread wrapper picks up methods a 1.x minor adds. A class that implements EndpointManagement itself can break in a minor.

The exported surface of every entry point is recorded in api-report.md, and CI fails when an export changes without updating it.

Releases

  • Releases follow semantic versioning. A patch release never contains a breaking change.
  • Breaking means a passing consumer type-check fails, except as the rules below allow, existing runtime behavior changes, a supported Node.js or PostgreSQL version is dropped, or SQL must run before upgrading. Existing behavior includes option defaults, error codes, the request format, and the signature scheme.
  • Additions are not breaking: new optional options, new fields in results (optional in types that hosts implement), new exports, and new request headers. Changing or removing an existing one is.
  • Unions you receive may gain members in a 1.x minor, for example WebhookErrorCode, DeliveryStatus, and attempt outcomes. Handle unknown values, for example with a default branch.
  • ManagementAction, PauseReason, and EndpointStatus are the exceptions: their values are fixed for 1.x.
  • A union your code returns never gains a value you must return.
  • Dropping a Better Auth or TypeScript line follows the drop policy and is not breaking.
  • From 1.0.0, a breaking change ships only in a major release.

Deprecation

  • A deprecated API keeps working for the rest of the major.
  • The release notes of the minor that deprecates it announce the deprecation and name the replacement.
  • The API gets a @deprecated tag in its types and, where it can, a runtime warning once per process.
  • Removal happens only in the next major release.

Schema and rollout

  • Each package version requires one exact schema version. check() throws SCHEMA_MISMATCH when the recorded version is lower or higher.
  • Installing a package never runs SQL.
  • A 1.x minor may require additive upgrade SQL, such as new nullable columns or new indexes, when the previous minor announced it. It ships the upgrade SQL and a rollout order, and processes on the previous package keep running until they restart.
  • Destructive schema changes ship only in a major release.
  • A schema downgrade is never supported, and a package downgrade is never assumed safe.

The upgrade matrix lists which package versions may run together during a rollout.

Support windows

  • The latest minor receives all fixes.
  • Security fixes also reach the previous minor for three months after the next minor ships.
  • After 2.0.0 ships, the last 1.x minor receives security fixes for six months.
  • Pre-release versions (alpha, beta, and release candidates) receive no fixes. Upgrade to the latest release.
  • 0.x releases receive no fixes. Upgrade to 1.x.

The security policy has the reporting channel and response targets.

Before 1.0.0

These rules applied to 0.x releases:

  • A minor release may contain breaking changes, change a default, or require upgrade SQL without a deprecation period, when the release before it announced the change and the release notes give the migration.
  • 0.7.0 is the last release that may change a default without a deprecation.
  • The stable API claim covers the API and upgrade path, not throughput beyond the measured profile.

On this page