grammyjs / storages

Storage adapters for grammY sessions.
48 stars 23 forks source link

Supabase adapter not working in deno (dependency import brocken/deprecated) #191

Open codenius opened 10 months ago

codenius commented 10 months ago

Using this import, like pointed out in the docs (https://grammy.dev/plugins/session#external-storage-solutions)

import { supabaseAdapter } from 'https://deno.land/x/grammy_storages/supabase/src/mod.ts';

throws this error, when trying to execute.

Warning Implicitly using latest version (v2.24.0) for https://deno.land/x/supabase/mod.ts
error: Module not found "https://deno.land/x/supabase/mod.ts".
    at https://deno.land/x/grammy_storages@v2.3.0/supabase/src/deps.deno.ts:1:32

I suspect the supabase module import beeing deprecated, since it originates from an empty repo. I guess using https://esm.sh/@supabase/supabase-js@2 could do the trick.

KnorpelSenf commented 10 months ago

Fascinating ... why would they break everyone's setup? I guess we will have to migrate.

I asked about it in https://github.com/supabase-community/deno-supabase-js/issues/1.