Skip to content

Conversation

soedirgo
Copy link
Member

@soedirgo soedirgo commented Nov 11, 2020

What kind of change does this PR introduce?

Patch update.

What is the current behavior?

When doing the TypeScript transition, we were assuming <script type="module"> is enough, but it seems being able to use it outside of module <script>s is still convenient, so we're adding it back (just for supabase-js).

What is the new behavior?

You can now use plain <script>s to import supabase-js from CDNs, like <script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js"></script> or <script src="https://unpkg.com/@supabase/supabase-js"></script> as before.

Then you can use it from a global supabase variable:

<script>
const { createClient } = supabase
supabase = createClient("url", "key")
...
</script>

Additional context

Fixes #278.

@soedirgo soedirgo requested a review from kiwicopple November 11, 2020 20:16
@kiwicopple
Copy link
Member

Nice one Bobby 🙏

Fixes supabase/supabase#285

@kiwicopple
Copy link
Member

🎉 This PR is included in version 1.0.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants