Skip to content

feat: postgrest-js 1.17.0-rc.1 #1285

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 203 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
203 commits
Select commit Hold shift + click to select a range
e7d1fbb
Merge branch 'master' into feat/release-v2
alaister Oct 11, 2022
e7deb3a
Merge branch 'rc' into feat/release-v2
alaister Oct 11, 2022
84b1c12
Merge pull request #587 from supabase/feat/release-v2
soedirgo Oct 11, 2022
5e0baa2
Updated link to avoid a redirect.
Oct 12, 2022
3efb03c
Merge pull request #589 from supabase/updated-link
Oct 12, 2022
ff47dee
Fixed link that was 404
Oct 12, 2022
9bb27f3
fix: upgrade realtime-js to v2.1.0 to fix PG change types
w3b6x9 Oct 18, 2022
3bd2e8e
fix(deps): bump postgrest-js
soedirgo Oct 19, 2022
97e0e87
Update package.json
J0 Oct 20, 2022
184408e
chore: bump gotrue version(mfa)
Oct 20, 2022
3c666f3
fix: bump version
Oct 20, 2022
abf55f8
Merge pull request #604 from supabase/J0/bump-gotrue
J0 Oct 20, 2022
5e9b310
chore: bump node
Oct 21, 2022
8f6bc0e
fix: bump gotrue version
Oct 21, 2022
c7f160b
Merge pull request #605 from supabase/j0_bump_node
J0 Oct 21, 2022
86fe351
Merge pull request #606 from supabase/J0/bump-gotrue-22
J0 Oct 21, 2022
a46e823
fix: bump gotrue-js version (#618)
kangmingtay Nov 1, 2022
19a2ddb
chore: Update readme with correct arguments for custom fetch
nrayburn-tech Nov 1, 2022
95fb9e7
rename folder from example to examples
Nov 2, 2022
4d6540d
fix: bump gotrue-js version to 2.2.4 (#631)
kangmingtay Nov 10, 2022
0d9df79
feat: bump gotrue-js to 2.3.0 (#634)
hf Nov 11, 2022
2e44491
fix: bump gotrue-js version (#644)
kangmingtay Nov 23, 2022
23ed1ee
fix: bump gotrue-js to v2.4.2 (#649)
kangmingtay Dec 6, 2022
cfd5138
fix: bump gotrue-js version to v2.4.3 (#652)
kangmingtay Dec 8, 2022
03be540
feat: update storage to add image transforms
inian Dec 13, 2022
ebfe3ac
fix: update gotrue-js version (#660)
kangmingtay Dec 13, 2022
2d8c6c5
Merge pull request #659 from supabase/update-storage
inian Dec 13, 2022
5817fcc
fix(deps): bump postgrest-js to ^1.1.1
soedirgo Dec 16, 2022
5c5b3b1
fix: bump gotrue-js to v2.6.1 (#662)
kangmingtay Dec 22, 2022
8709d99
docs: Add default values to client initialization (#667)
Dec 25, 2022
66a58d2
fix: clear this.changedAccessToken after signOut (#645)
Dec 30, 2022
a0caaaf
Fix comments
Jan 4, 2023
fb7d6d3
Update comments
Jan 4, 2023
96a9e82
Merge pull request #677 from supabase/dannykng-patch-1
Jan 4, 2023
fd45779
feat: upgrade realtime-js to v2.3.0
w3b6x9 Jan 11, 2023
d60bf93
feat: upgrade realtime-js to v2.3.1
w3b6x9 Jan 11, 2023
ce08a4b
chore(ci): upload coverage to coveralls
soedirgo Jan 18, 2023
197528c
add coverage badge to readme
egor-romanov Jan 18, 2023
f859e74
chore(deps): bump loader-utils from 2.0.2 to 2.0.4
dependabot[bot] Jan 18, 2023
8c93ad0
fix: bump gotrue-js version to v2.7.2 (#690)
kangmingtay Jan 20, 2023
134fcc8
feat: bump realtime-js to v2.4.0
w3b6x9 Jan 27, 2023
46b8d2d
feat: bump gotrue-js to v2.10.2 (#697)
hf Jan 31, 2023
b55d386
feat: pass global header bearer token as apikey to RealtimeClient (#699)
w3b6x9 Feb 1, 2023
153ed4b
fix: Revert "feat: pass global header bearer token as apikey to Realt…
w3b6x9 Feb 4, 2023
ac206f8
feat: bump gotrue-js to 2.12.0 (#710)
hf Feb 15, 2023
9e139b7
feat: bump storage-js to 2.3.1
phamhieu Mar 1, 2023
f7c20a5
feat: bump functions-js version
laktek Mar 1, 2023
ac5c367
Merge pull request #715 from supabase/bump-functions-js
laktek Mar 1, 2023
b1b1d14
Merge branch 'master' into hi/storage-js-v2.3.1
phamhieu Mar 2, 2023
cda1031
Merge pull request #714 from supabase/hi/storage-js-v2.3.1
phamhieu Mar 2, 2023
adf6eb5
Update package.json
J0 Mar 4, 2023
b325808
chore: update package-lock
Mar 4, 2023
3fb9f3a
feat: bump realtime-js to v2.7.0
w3b6x9 Mar 16, 2023
b74d358
feat: bump realtime-js to v2.7.1
w3b6x9 Mar 20, 2023
76611f9
chore: bump version to v2.16.0
Mar 23, 2023
410f7e6
fix: run npm audit fix
Mar 23, 2023
c845a92
fix: rm -rf and reinstall
Mar 23, 2023
10d3423
Merge pull request #720 from supabase/whatsapp
J0 Mar 23, 2023
9b61f04
feat: bump gotrue-js to v2.16.0
alaister Mar 30, 2023
43b32e9
Merge pull request #738 from supabase/feat/gotrue-js-2-16-0
J0 Mar 30, 2023
6c61c9d
fix: remove protected flag from SupabaseClient realtime var
w3b6x9 Mar 31, 2023
fd8a25b
feat: bump gotrue to 2.18.1
J0 Apr 3, 2023
17cdd9e
feat: update package-lock
Apr 3, 2023
1e545f8
Merge pull request #743 from supabase/J0/bump-2-18-gotrue
J0 Apr 3, 2023
d827c3a
feat: bump storage to 2.4.0
inian Apr 7, 2023
c1a5886
Merge pull request #745 from supabase/ip/bump-storage
inian Apr 7, 2023
531f595
chore(examples): bump deps
soedirgo Apr 7, 2023
526abb0
feat: bump gotrue to v2.20
Apr 10, 2023
5f60fc4
feat: add in new flowType param and event
Apr 10, 2023
e2d67ff
feat: version bump realtime-js to 2.7.2
w3b6x9 Apr 10, 2023
1311bfe
Merge pull request #748 from supabase/J0/bump_gotrue_2_20
J0 Apr 10, 2023
a193144
feat: bump gotrue-js to v2.20
Apr 11, 2023
4596fd9
Merge pull request #750 from supabase/J0/bump_gotrue_2_21
J0 Apr 11, 2023
71d2e8c
feat: update package and package-lock.json
Apr 11, 2023
1a823e0
Merge pull request #751 from supabase/J0/bump_gotrue_2_22
J0 Apr 11, 2023
4c5be7d
feat: bump storage
inian Apr 12, 2023
b260d54
Merge pull request #753 from supabase/ip/bump-storage-1
inian Apr 12, 2023
e2ceafe
feat: bump gotrue version
Apr 19, 2023
e0bd15e
Merge pull request #760 from supabase/j0/bump_gotrue_2_23
J0 Apr 19, 2023
6d13630
feat: update gotrue version
May 13, 2023
96b6c1f
Merge pull request #772 from supabase/j0/bump_gotrue_2_26
J0 May 15, 2023
52024db
chore: remove gitkeep file
soedirgo May 26, 2023
2ddd9fc
chore: update docstrings
soedirgo May 26, 2023
e7a0515
chore: don't delete docs/v1 on clean
soedirgo May 26, 2023
3c55237
feat(deps): bump postgrest-js to 1.7.0
soedirgo May 26, 2023
abdf36d
feat: edge functions support for custom domains and vanity domains
delgado3d May 26, 2023
2fdfe17
Merge pull request #778 from supabase/dd/functions-custom-domains
delgado3d May 30, 2023
c4a101f
feat: version bump realtime-js to 2.7.3
w3b6x9 Jun 12, 2023
2287a0e
chore: type for optional params
Ananya2001-an Jun 13, 2023
f40d397
ci: added paths-ignore option
Ananya2001-an Jun 13, 2023
8f5ec5e
feat: bump gotrue-js to v2.31.0 (#798)
hf Jun 20, 2023
ce46e69
feat: bump gotrue-js to v2.45.0 (#813)
hf Jul 23, 2023
de342cb
feat: bump node version
Jul 23, 2023
c4c758f
Merge pull request #814 from supabase/j0/bump_node_version
J0 Jul 24, 2023
f450b33
feat: roll back to fixed gotrue-js 2.43.1 until 2.45.0 is fixed (#817)
hf Jul 24, 2023
27db298
feat: add debug option for gotrue client (#804)
astoiccoder Jul 26, 2023
c07ce23
feat: bump @supabase/gotrue-js to ^v2.46.1 (#820)
hf Jul 26, 2023
90bd357
feat: enable dynamic schema selection on a per-query basis
sjones6 Aug 5, 2023
791fc27
feat: add experimental `lock` auth option (#838)
hf Aug 22, 2023
766238e
fix: version bump realtime-js to 2.7.4 (#839)
w3b6x9 Aug 22, 2023
8cf2b96
fix: replace cross-fetch with @supabase/node-fetch
soedirgo Sep 11, 2023
ed5a3d4
feat: track javascript environment. (#854)
thorwebdev Sep 19, 2023
ed26abe
feat: bump `@supabase/gotrue-js` to v2.53.0 (#855)
hf Sep 20, 2023
d7fb2dd
feat: bump `@supabase/gotrue-js` to v2.54.0 (#858)
hf Sep 20, 2023
a040b34
feat: version bump realtime-js to 2.8.0
w3b6x9 Sep 29, 2023
6bc5dd3
feat: version bump gotrue-js to 2.54.2
phamhieu Oct 4, 2023
54c552d
Merge pull request #869 from supabase/hi/bump-gotrue-to-v2.54.1
phamhieu Oct 4, 2023
d0fe12a
fix: bump postgrest-js to 1.8.5
soedirgo Oct 13, 2023
b3a1184
chore: Bump up Realtime to 2.8.1
filipecabaco Oct 16, 2023
e81322b
Merge pull request #880 from supabase/chore/realtime-version-bump
filipecabaco Oct 18, 2023
86fdf61
fix: bump gotrue-js version (#883)
kangmingtay Oct 19, 2023
90b4353
fix: version bump realtime-js to 2.8.2
w3b6x9 Oct 24, 2023
77567b4
fix: Bump up realtime-js version to 2.8.4
filipecabaco Oct 26, 2023
7e28e53
Merge pull request #893 from supabase/fix/bump-up-realtime-js-2.8.4
filipecabaco Oct 26, 2023
f503b11
chore(deps-dev): bump @babel/traverse in /examples/next-ts
dependabot[bot] Nov 8, 2023
7667827
Merge pull request #903 from supabase/dependabot/npm_and_yarn/example…
dragarcia Nov 8, 2023
a278716
chore(deps-dev): bump @babel/traverse from 7.21.5 to 7.23.2
dependabot[bot] Nov 8, 2023
3bc5723
fix: bump postgrest-js to 1.8.6
laurenceisla Nov 20, 2023
4d35d26
feat: add query result type helpers. (#918)
thorwebdev Nov 28, 2023
b0fbe67
chore(deps): bump postcss, next, postcss-flexbugs-fixes and postcss-p…
dependabot[bot] Nov 8, 2023
d8adb73
chore(deps): bump postcss and next in /examples/next-ts
dependabot[bot] Nov 8, 2023
f39007a
chore(deps): bump postcss and next in /examples/next-storage
dependabot[bot] Nov 9, 2023
80050b5
fix: bump gotrue-js version (#929)
kangmingtay Dec 18, 2023
e845632
fix: stop using unstable type params from postgrest-js
soedirgo Oct 31, 2023
24daf10
fix: bump postgrest-js
soedirgo Jan 2, 2024
82ddf3a
fix: version bump realtime-js to 2.9.1
w3b6x9 Jan 3, 2024
9204dfa
fix: version bump realtime-js to v2.9.2 (#944)
w3b6x9 Jan 11, 2024
f6bf008
fix: version bump realtime-js to v2.9.3
w3b6x9 Jan 11, 2024
d786a15
chore: Minor types/constants refactoring (#796)
Ananya2001-an Jan 23, 2024
d5e194d
deps: Fix @supabase dependencies to exact versions (#819)
Aerilym Jan 23, 2024
4086b97
update title and move badges
awalias Jan 23, 2024
ef58909
Merge pull request #952 from supabase/chore/clean-up
awalias Jan 23, 2024
b83c646
chore: update node version in ci
shawshankkumar Jan 23, 2024
7977d76
Merge pull request #953 from shawshankkumar/master
J0 Jan 23, 2024
00e53bf
Update README.md
mansueli Jan 23, 2024
8d768bc
chore: update github actions version
J0 Jan 23, 2024
93b5d3b
Merge pull request #955 from supabase/j0/update_versions
J0 Jan 23, 2024
f7cd6b4
Update README.md
mansueli Jan 23, 2024
2b8c05f
Merge pull request #954 from supabase/mansueli-patch-1
mansueli Jan 23, 2024
f68b028
docs: Add Deno how-to to README.md
kamilogorek Jan 23, 2024
7cea02e
Merge pull request #956 from supabase/deno-readme-install
mansueli Jan 23, 2024
7c55d6b
add serve:coverage script
jordienr Jan 23, 2024
4362b3f
Merge pull request #957 from supabase/feat/serve-coverage
jordienr Jan 23, 2024
a5a70db
fix: Use class methods instead of bound arrow functions for rest call…
kamilogorek Feb 13, 2024
b9cb9e1
fix: Use explicit return type for from/schema/rpc
kamilogorek Feb 13, 2024
76c93a3
fix: revert from/schema/rpc changes
soedirgo Feb 14, 2024
a77be48
test: Port postgrest-js tests to verify types guarantees
kamilogorek Feb 14, 2024
4eb677a
fix: revert to using class methods
soedirgo Feb 19, 2024
393423a
fix: ts-error-fetchprotocol (#986)
admirsaheta Mar 12, 2024
e327521
feat: typecheck table names in from clause
vonovak Mar 1, 2024
fc95abb
refactor: only remove the third overload
vonovak Mar 22, 2024
1d13090
feat: bump functions-js (get regional types more integrated) (#996)
mansueli Mar 28, 2024
6cfed0c
fix: bump auth to v2.63.0 (#998)
kangmingtay Mar 28, 2024
b4cc20d
feat: bump postgrest-js to v1.15.0
soedirgo Apr 2, 2024
581c60f
fix(postgrest-js): typings for rpc with GET
soedirgo Apr 11, 2024
9d033f8
fix: version bump realtime-js to 2.9.4
w3b6x9 Apr 11, 2024
8740926
fix(postgrest-js): bump to 1.15.2 (#1013)
soedirgo Apr 12, 2024
ec840c6
fix: bump functions-js
laktek Apr 15, 2024
f22a410
Merge pull request #1017 from supabase/bump-functions-js-230
laktek Apr 15, 2024
4f2e271
fix: bump auth-js to v2.63.1 (#1020)
kangmingtay Apr 18, 2024
1687dea
fix: bump auth-js and functions-js. (#1027)
thorwebdev Apr 25, 2024
31fc0cc
fix: set hasCustomAuthorizationHeader property on the AuthClient
kangmingtay Apr 25, 2024
5fbb623
Merge pull request #1029 from supabase/km/set-custom-auth-header
mansueli Apr 25, 2024
53dcd83
feat: version bump realtime-js to 2.9.5
w3b6x9 Apr 30, 2024
1c35413
fix: bump auth-js to v2.64.2
kangmingtay May 3, 2024
4dff472
Merge pull request #1032 from supabase/km/bump-auth-js
mansueli May 3, 2024
912f13e
fix: publish to jsr. (#1044)
thorwebdev May 15, 2024
52bf37f
ref: Update applySettingDefaults typings to use accurate return type …
kamilogorek May 15, 2024
056bc8f
fix: use proper dual-packaging
soedirgo May 21, 2024
fe21f2f
fix: bump postgrest-js
soedirgo May 21, 2024
24de3b7
Revert "fix: bump postgrest-js"
soedirgo May 23, 2024
4ad906d
Revert "fix: use proper dual-packaging"
soedirgo May 23, 2024
8d5fe92
chore(deps): bump next from 14.0.1 to 14.1.1 in /examples/next-todo
dependabot[bot] May 10, 2024
8c4e0ca
chore(deps): bump next from 14.0.1 to 14.1.1 in /examples/next-ts
dependabot[bot] May 10, 2024
c8768c2
chore(deps): bump next from 14.0.1 to 14.1.1 in /examples/next-storage
dependabot[bot] May 10, 2024
9e606cf
chore(deps): resolve dependabot alerts
soedirgo Jun 11, 2024
dd95300
chore(deps-dev): bump braces from 3.0.2 to 3.0.3 in /examples/next-todo
dependabot[bot] Jun 11, 2024
2ffce15
chore(deps): bump storage-js dependency (#1224)
fenos Jun 14, 2024
cb7b046
fix: bump dependencies. (#1225)
thorwebdev Jun 16, 2024
450aa49
fix: postgrest-js 1.15.6
soedirgo Jun 25, 2024
37dc1ae
feat: Bump realtime-js 2.10.1 (#1231)
filipecabaco Jun 25, 2024
5d92d48
fix: postgrest-js esm typings
soedirgo Jun 27, 2024
b8a5d71
fix: Bump up realtime-js 2.10.2 (#1235)
filipecabaco Jun 28, 2024
ad9fba0
docs: update Deno import to JSR. (#1237)
thorwebdev Jul 4, 2024
564df44
fix: imports not working w/ Metro bundler
soedirgo Jul 5, 2024
51cd986
fix: bump auth-js to v2.64.4 (#1244)
kangmingtay Jul 15, 2024
fa97643
feat: add third-party auth support (#1004)
hf Jul 29, 2024
5f37e69
fix: Allow passing a custom lock function to supabase client
christophby Aug 6, 2024
377f3b3
Merge pull request #1256 from christophby/master
J0 Aug 6, 2024
f0e6ee2
fix: bump storage-js v2.7.0
fenos Aug 23, 2024
19b76c3
Merge pull request #1260 from supabase/storage/v2.7.0
fenos Aug 23, 2024
ef76013
chore: bump auth-js to v2.65.0 (#1265)
kangmingtay Aug 30, 2024
2153874
fix(deps-dev): bump webpack from 5.82.1 to 5.94.0 (#1264)
dependabot[bot] Aug 30, 2024
63a67a1
chore(deps): bump ws from 8.16.0 to 8.17.1 (#1226)
dependabot[bot] Aug 30, 2024
96caa1d
fix: bump postgrest-js to v1.16.1
soedirgo Sep 10, 2024
e40c3e1
Update README.md
monicakh Sep 17, 2024
52ffdf7
Merge pull request #1272 from supabase/monicakh-patch-1
fsansalvadore Sep 17, 2024
3bde336
Merge pull request #1221 from supabase/dependabot/npm_and_yarn/exampl…
staaldraad Oct 1, 2024
a8f4e90
chore: remove examples
soedirgo Oct 9, 2024
39ba2c5
chore: update deps (#1283)
lourd Oct 18, 2024
991914a
fix: trigger release
soedirgo Oct 18, 2024
41c9bcc
feat: postgrest-js 1.17.0-rc.1
soedirgo Oct 18, 2024
59d1898
fix: update types
soedirgo Oct 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 26 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,48 @@
name: CI

on: [push]
on:
pull_request:
paths-ignore:
- 'docs/**'
- '**/*.md'
- '.prettierrc'
- '**/*ignore'
push:
branches:
- master
- next
- rc
paths-ignore:
- 'docs/**'
- '**/*.md'
- '.prettierrc'
- '**/*ignore'

jobs:
test:
name: Test / OS ${{ matrix.os }} / Node ${{ matrix.node }}
strategy:
matrix:
os: [ubuntu-latest]
node: ['14']
node: ['20']

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

- name: Run tests
run: |
npm ci
npm t
npm clean-install
npm run test:coverage

- name: Test & publish code coverage
uses: paambaati/codeclimate-action@v3.0.0
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
- name: Upload coverage results to Coveralls
uses: coverallsapp/github-action@master
with:
coverageCommand: yarn run coverage
coverageLocations: |
${{github.workspace}}/test/coverage/lcov.info:lcov
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./test/coverage/lcov.info
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node: ['14']
node: ['20']

runs-on: ${{ matrix.os }}

Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,30 @@ jobs:
name: Release / Node ${{ matrix.node }}
strategy:
matrix:
node: ['14']
node: ['20']

runs-on: ubuntu-latest

permissions:
contents: write
issues: write
id-token: write

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

- run: |
npm ci
npm run build

- name: Create a release
run: npx semantic-release@^18.0.0
- uses: cycjimmy/semantic-release-action@v4
with:
semantic_version: 19
env:
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ yarn.lock
src
test
examples
example
example-next-js
umd_temp
CHANGELOG.md
Expand Down
3 changes: 2 additions & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"addReleases": false
}
],
"@semantic-release/npm"
"@semantic-release/npm",
"@sebbo2002/semantic-release-jsr"
]
}
32 changes: 22 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# `supabase-js`
# `supabase-js` - Isomorphic JavaScript Client for Supabase.

An isomorphic JavaScript client for Supabase.

- **Documentation:** https://supabase.com/docs/client/supabase-client
- TypeDoc: https://supabase.github.io/supabase-js
- **Documentation:** https://supabase.com/docs/reference/javascript/start
- TypeDoc: https://supabase.github.io/supabase-js/v2/

## Usage

Expand All @@ -24,16 +22,16 @@ const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key

### UMD

You can now use plain `<script>`s to import supabase-js from CDNs, like:
You can use plain `<script>`s to import supabase-js from CDNs, like:

```html
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js"></script>
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script>
```

or even:

```html
<script src="https://unpkg.com/@supabase/supabase-js"></script>
<script src="https://unpkg.com/@supabase/supabase-js@2"></script>
```

Then you can use it from a global `supabase` variable:
Expand All @@ -50,7 +48,7 @@ Then you can use it from a global `supabase` variable:

### ESM

You can now use type="module" `<script>`s to import supabase-js from CDNs, like:
You can use `<script type="module">` to import supabase-js from CDNs, like:

```html
<script type="module">
Expand All @@ -62,6 +60,14 @@ You can now use type="module" `<script>`s to import supabase-js from CDNs, like:
</script>
```

### Deno

You can use supabase-js in the Deno runtime via [JSR](https://jsr.io/@supabase/supabase-js):

```js
import { createClient } from 'jsr:@supabase/supabase-js@2'
```

### Custom `fetch` implementation

`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:
Expand All @@ -71,7 +77,9 @@ import { createClient } from '@supabase/supabase-js'

// Provide a custom `fetch` implementation as an option
const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key', {
fetch: (...args) => fetch(...args),
global: {
fetch: (...args) => fetch(...args),
},
})
```

Expand All @@ -80,3 +88,7 @@ const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key
We are building the features of Firebase using enterprise-grade, open source products. We support existing communities wherever possible, and if the products don’t exist we build them and open source them ourselves. Thanks to these sponsors who are making the OSS ecosystem better for everyone.

[![New Sponsor](https://user-images.githubusercontent.com/10214025/90518111-e74bbb00-e198-11ea-8f88-c9e3c1aa4b5b.png)](https://github.com/sponsors/supabase)

## Badges

[![Coverage Status](https://coveralls.io/repos/github/supabase/supabase-js/badge.svg?branch=master)](https://coveralls.io/github/supabase/supabase-js?branch=master)
Empty file removed docs/v1/.gitkeep
Empty file.
8 changes: 4 additions & 4 deletions docs/v1/modules/lib_types.html
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ <h5>
</h5>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Automatically refreshes the token for logged in users.</p>
<p>Automatically refreshes the token for logged in users. Defaults to <code>true</code>.</p>
</div>
</div>
</li>
Expand Down Expand Up @@ -359,7 +359,7 @@ <h5>
</h5>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Detect a session from the URL. Used for OAuth login callbacks.</p>
<p>Detect a session from the URL. Used for OAuth login callbacks. Defaults to <code>true</code>.</p>
</div>
</div>
</li>
Expand Down Expand Up @@ -440,7 +440,7 @@ <h5>
</h5>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Whether to persist a logged in session to storage.</p>
<p>Whether to persist a logged in session to storage. Defaults to <code>true</code>.</p>
</div>
</div>
</li>
Expand Down Expand Up @@ -473,7 +473,7 @@ <h5>
<div class="lead">
<p>
The Postgres schema which your tables belong to. Must be on the list of
exposed schemas in Supabase. Defaults to &#39;public&#39;.
exposed schemas in Supabase. Defaults to <code>public</code>.
</p>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions docs/v1/spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -3118,7 +3118,7 @@
"isOptional": true
},
"comment": {
"shortText": "Automatically refreshes the token for logged in users."
"shortText": "Automatically refreshes the token for logged in users. Defaults to `true`."
},
"sources": [
{
Expand Down Expand Up @@ -3172,7 +3172,7 @@
"isOptional": true
},
"comment": {
"shortText": "Detect a session from the URL. Used for OAuth login callbacks."
"shortText": "Detect a session from the URL. Used for OAuth login callbacks. Defaults to `true`."
},
"sources": [
{
Expand Down Expand Up @@ -3297,7 +3297,7 @@
"isOptional": true
},
"comment": {
"shortText": "Whether to persist a logged in session to storage."
"shortText": "Whether to persist a logged in session to storage. Defaults to `true`."
},
"sources": [
{
Expand Down Expand Up @@ -3345,7 +3345,7 @@
"isOptional": true
},
"comment": {
"shortText": "The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to 'public'."
"shortText": "The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to `public`."
},
"sources": [
{
Expand Down
34 changes: 0 additions & 34 deletions example/next-storage/.gitignore

This file was deleted.

54 changes: 0 additions & 54 deletions example/next-storage/README.md

This file was deleted.

Loading
Loading