Skip to content

Commit bd0975f

Browse files
committed
Merge branch 'master' into docs/typedoc
2 parents 2de6d91 + 83db008 commit bd0975f

22 files changed

+14000
-13346
lines changed

.releaserc.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
"dist/main/lib/version.js",
99
"dist/main/lib/version.d.ts",
1010
"dist/module/lib/version.js",
11-
"dist/module/lib/version.d.ts"
11+
"dist/module/lib/version.d.ts",
12+
"dist/umd/supabase.js"
1213
],
13-
"placeholder": "0.0.0"
14+
"placeholder": "0.0.0-automated"
1415
}
1516
],
1617
"@semantic-release/commit-analyzer",

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,20 @@ Then you can use it from a global `supabase` variable:
4747
</script>
4848
```
4949

50+
### ESM
51+
52+
You can now use type="module" `<script>`s to import supabase-js from CDNs, like:
53+
54+
```html
55+
<script type="module">
56+
import { createClient } from 'https://cdn.jsdelivr.net/npm/@supabase/supabase-js/+esm'
57+
const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key')
58+
59+
console.log('Supabase Instance: ', supabase)
60+
// ...
61+
</script>
62+
```
63+
5064
### Custom `fetch` implementation
5165

5266
`supabase-js` uses the [`cross-fetch`](https://www.npmjs.com/package/cross-fetch) library to make HTTP requests, but an alternative `fetch` implementation can be provided as an option. This is most useful in environments where `cross-fetch` is not compatible, for instance Cloudflare Workers:

example/next-storage/package-lock.json

Lines changed: 134 additions & 2110 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/next-storage/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"dependencies": {
1111
"@supabase/supabase-js": "file:../..",
12-
"next": "11.1.3",
12+
"next": "12.1.0",
1313
"react": "17.0.1",
1414
"react-dom": "17.0.1"
1515
},

example/next-todo/package-lock.json

Lines changed: 143 additions & 1965 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/next-todo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"dependencies": {
1010
"@supabase/supabase-js": "file:../..",
11-
"next": "^11.1.3",
11+
"next": "^12.1.0",
1212
"react": "^17.0.1",
1313
"react-dom": "^17.0.1"
1414
},

example/next-ts/next-env.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
/// <reference types="next" />
2-
/// <reference types="next/types/global" />
2+
/// <reference types="next/image-types/global" />
3+
4+
// NOTE: This file should not be edited
5+
// see https://nextjs.org/docs/basic-features/typescript for more information.

0 commit comments

Comments
 (0)