How to use supabase-js next?

The most recent Realtime blog post says to use the newest release of supabase-js, but it is unclear how to do that. 1. Is it as simple as running something like yarn add @supabase/supabase-js@next ? 2. How do I know if I am on the correct release (there is no version number in the package.json??) 3. Will the reference docs be updated to include Broadcast information? (https://supabase.com/docs/reference/javascript/next/subscribe)
5 Replies
jensen
jensen4y ago
npm
@supabase/supabase-js
Isomorphic Javascript client for Supabase. Latest version: 1.35.6, last published: 18 days ago. Start using @supabase/supabase-js in your project by running npm i @supabase/supabase-js. There are 96 other projects in the npm registry using @supabase/supabase-js.
jensen
jensen4y ago
Looks like v1 is still tagged as next try yarn add @supabase/supabase-js@2.0.0-rc.6
nickreed9888
nickreed9888OP4y ago
didnt know about the version page on npm, thanks for pointing me towards that!
nickreed9888
nickreed9888OP4y ago
thank you!

Did you find this page helpful?