You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deprecation notice: @supabase/supabase-js will require TypeScript 5.0
Summary
Starting with a minor release on or after January 2027, @supabase/supabase-js and the packages it bundles (postgrest-js, auth-js, realtime-js, storage-js, functions-js) will require TypeScript 5.0 or later. TypeScript 4.7–4.9 will no longer be tested or supported.
Consistent with our existing Support Policy, raising the minimum TypeScript version ships in a minor release and is not considered a breaking change, the same way we handle end-of-life Node.js versions.
Why
Our type declarations currently target a TypeScript 4.7 floor (May 2022, ~4 years old) — roughly a dozen releases and two major lines behind current TypeScript.
Holding the 4.7 floor blocks us from using modern type features that materially improve the SDK's types — const type parameters, the satisfies operator, and (later) NoInfer for the postgrest-js query-builder generics.
It also pins transitive tooling (e.g. zod) to older releases.
What you need to do
On TypeScript 5.0 or newer: nothing. You're already covered.
On TypeScript 4.7–4.9: upgrade your project's TypeScript to >= 5.0 before the release above. TypeScript 5.x has been stable since March 2023.
On/after January 2027: a minor release raises the floor to TypeScript 5.0. The last version supporting TypeScript 4.7 will be called out in the release notes and the README once that release is cut.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Deprecation notice:
@supabase/supabase-jswill require TypeScript 5.0Summary
Starting with a minor release on or after January 2027,
@supabase/supabase-jsand the packages it bundles (postgrest-js,auth-js,realtime-js,storage-js,functions-js) will require TypeScript 5.0 or later. TypeScript 4.7–4.9 will no longer be tested or supported.Consistent with our existing Support Policy, raising the minimum TypeScript version ships in a minor release and is not considered a breaking change, the same way we handle end-of-life Node.js versions.
Why
consttype parameters, thesatisfiesoperator, and (later)NoInferfor the postgrest-js query-builder generics.zod) to older releases.What you need to do
>= 5.0before the release above. TypeScript 5.x has been stable since March 2023.Timeline
Questions and concerns welcome below.
Beta Was this translation helpful? Give feedback.
All reactions