supabase / supabase-js

An isomorphic Javascript client for Supabase. Query your Supabase database, subscribe to realtime events, upload and download files, browse typescript examples, invoke postgres functions via rpc, invoke supabase edge functions, query pgvector.
https://supabase.com
MIT License
2.86k stars 220 forks source link

Canno use gotrue-js v2.60.1 with the latest supabase-js version #927

Closed bombillazo closed 5 months ago

bombillazo commented 5 months ago

Bug report

Describe the bug

If we bump our version of gotrue-js, we start getting typing issues due to the latest supabase-js version using 2.57.0

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Create a Deno edge function and add an import_map.json file.
  2. Add "@supabase/gotrue-js": "https://esm.sh/@supabase/gotrue-js@2.60.0",
  3. Add "@supabase/supabase-js": "https://esm.sh/@supabase/supabase-js@2.39.0",
  4. Try using the Session type from gotrue-js with the supabase auth client, there will be conflicting versions.
Type 'import("https://esm.sh/v135/@supabase/gotrue-js@2.57.0/dist/module/lib/types").UserIdentity[]' is not assignable to type 'import("https://esm.sh/v135/@supabase/gotrue-js@2.60.0/dist/module/lib/types").UserIdentity[]'.
Property 'identity_id' is missing in type 'import("https://esm.sh/v135/@supabase/gotrue-js@2.57.0/dist/module/lib/types").UserIdentity' but required in type 'import("https://esm.sh/v135/@supabase/gotrue-js@2.60.0/dist/module/lib/types").UserIdentity'.deno-ts(2322)

Expected behavior

One is able to use the latest gotrue-js version.

Screenshots

If applicable, add screenshots to help explain your problem.

System information

kangmingtay commented 5 months ago

@bombillazo we just bumped the gotrue-js version in supabase-js to include v2.60 :)