Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nuxt-modules/supabase
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.2.2
Choose a base ref
...
head repository: nuxt-modules/supabase
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.3.1
Choose a head ref
  • 13 commits
  • 28 files changed
  • 6 contributors

Commits on May 5, 2024

  1. chore(renovate): update config (#361)

    shinGangan authored May 5, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    60bf9bd View commit details

Commits on Jul 5, 2024

  1. chore(app): update compat (#375)

    danielroe authored Jul 5, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    70563f9 View commit details
  2. feat(app): migrate to @supabase/ssr (#357)

    Co-authored-by: Baptiste Leproux <leproux.baptiste@gmail.com>
    felixgabler and larbish authored Jul 5, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    56dc39e View commit details
  3. chore(deps): upgrade

    larbish committed Jul 5, 2024
    Copy the full SHA
    a801bc0 View commit details
  4. chore(ci): update actions version

    larbish committed Jul 5, 2024
    Copy the full SHA
    ad161ff View commit details
  5. fix(lint): end of file

    larbish committed Jul 5, 2024
    Copy the full SHA
    00560f8 View commit details
  6. fix(ci): docs build

    larbish committed Jul 5, 2024
    Copy the full SHA
    a11654d View commit details
  7. docs(deps): upgrade

    larbish committed Jul 5, 2024
    Copy the full SHA
    31942e6 View commit details
  8. chore(release): release v1.3.0

    larbish committed Jul 5, 2024
    Copy the full SHA
    23b0b40 View commit details
  9. feat(types): automatically pass database typings to clients (#366)

    IsraelOrtuno authored Jul 5, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    132307a View commit details
  10. docs(links): deployment nuxt doc redirection (#379)

    chadwhitacre authored Jul 5, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    ed02063 View commit details
  11. chore(playground): remove manual typing

    larbish committed Jul 5, 2024
    Copy the full SHA
    3cbc2e1 View commit details
  12. chore(release): release v1.3.1

    larbish committed Jul 5, 2024
    Copy the full SHA
    79cd4d5 View commit details
6 changes: 3 additions & 3 deletions .github/workflows/ci-dev.yml
Original file line number Diff line number Diff line change
@@ -18,12 +18,12 @@ jobs:
node: [20]

steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -18,12 +18,12 @@ jobs:
node: [20]

steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
2 changes: 1 addition & 1 deletion .github/workflows/studio.yml
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@ jobs:
echo "cache=$cache" >> $GITHUB_OUTPUT
echo "package_manager=$package_manager" >> $GITHUB_OUTPUT
- uses: pnpm/action-setup@v2.4.0
- uses: pnpm/action-setup@v4
if: ${{ steps.pkgman.outputs.package_manager == 'pnpm' }}
name: Install pnpm
id: pnpm-install
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@


## [1.3.1](https://github.com/nuxt-community/supabase-module/compare/v1.3.0...v1.3.1) (2024-07-05)


### Features

* **types:** automatically pass database typings to clients ([#366](https://github.com/nuxt-community/supabase-module/issues/366)) ([132307a](https://github.com/nuxt-community/supabase-module/commit/132307a5267d477300a05f733d645eececae1549))

# [1.3.0](https://github.com/nuxt-community/supabase-module/compare/v1.2.2...v1.3.0) (2024-07-05)


### Bug Fixes

* **ci:** docs build ([a11654d](https://github.com/nuxt-community/supabase-module/commit/a11654df11e785de7bd701452b5dfec7ed44734a))
* **lint:** end of file ([00560f8](https://github.com/nuxt-community/supabase-module/commit/00560f87cb6bfdb2005e3d5562487e1f83e9fd18))


### Features

* **app:** migrate to `@supabase/ssr` ([#357](https://github.com/nuxt-community/supabase-module/issues/357)) ([56dc39e](https://github.com/nuxt-community/supabase-module/commit/56dc39e7ae2acdcfab065d52a8040aa122e7626b))

## [1.2.2](https://github.com/nuxt-community/supabase-module/compare/v1.2.1...v1.2.2) (2024-05-02)


2 changes: 1 addition & 1 deletion demo/README.md
Original file line number Diff line number Diff line change
@@ -58,4 +58,4 @@ Build the application for production:
npm run build
```

Checkout the [deployment documentation](https://v3.nuxtjs.org/docs/deployment).
Checkout the [deployment documentation](https://nuxt.com/deploy).
35 changes: 29 additions & 6 deletions docs/content/2.get-started.md
Original file line number Diff line number Diff line change
@@ -99,7 +99,7 @@ Default:
Default: `sb`
Cookie name used for storing access and refresh tokens, added in front of `-access-token` and `-refresh-token` to form the full cookie name e.g. `sb-access-token`
Cookie name used for storing the redirect path when using the `redirect` option, added in front of `-redirect-path` to form the full cookie name e.g. `sb-redirect-path`
### cookieOptions
@@ -113,22 +113,45 @@ Cookie name used for storing access and refresh tokens, added in front of `-acce
Options for cookies used to share tokens between server and client, refer to [cookieOptions](https://nuxt.com/docs/api/composables/use-cookie#options) for available settings. Please note that the lifetime set here does not determine the Supabase session lifetime.
### `types`
Default: `./types/database.types.ts`
The path for the generated Supabase TypeScript definitions. The database definitions will be automatically passed to all clients: `useSupabaseClient`, `serverSupabaseClient` and `serverSupabaseServiceRole`.
```shell
## Generate types from live database
supabase gen types typescript --project-id YourProjectId > types/database.types.ts

## Generate types when using local environment
supabase gen types typescript --local > types/database.types.ts
```
Set to `false` to disable.
Check Supabase [documentation](https://supabase.com/docs/reference/javascript/release-notes#typescript-support) for further information.
### `clientOptions`
Default:
Default:
```ts
clientOptions: { }
```
Supabase client options [available here](https://supabase.com/docs/reference/javascript/initializing#parameters) merged with default values from `@supabase/ssr`:
```ts
clientOptions: {
auth: {
flowType: 'pkce',
detectSessionInUrl: true,
persistSession: true,
autoRefreshToken: true
autoRefreshToken: isBrowser(),
detectSessionInUrl: isBrowser(),
persistSession: true,
},
}
```
Supabase client options [available here](https://supabase.com/docs/reference/javascript/initializing#parameters).
## Versions
12 changes: 11 additions & 1 deletion docs/content/4.usage/composables/useSupabaseClient.md
Original file line number Diff line number Diff line change
@@ -101,7 +101,17 @@ onUnmounted(() => {

## Typescript

You can pass Database typings to the client. Check Supabase [documentation](https://supabase.com/docs/reference/javascript/release-notes#typescript-support) for further information.
Database typings are passed to the client out of the box if the database generated types are found at `./types/database.types.ts` or [your configured types path](/get-started#types). Check Supabase [documentation](https://supabase.com/docs/reference/javascript/release-notes#typescript-support) for further information.

```shell
## Generate types from live database
supabase gen types typescript --project-id YourProjectId > types/database.types.ts

## Generate types when using local environment
supabase gen types typescript --local > types/database.types.ts
```

You can also pass Database typings to the client manually:

```vue
<script setup lang="ts">
30 changes: 15 additions & 15 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -12,25 +12,25 @@
"typecheck": "nuxt typecheck"
},
"dependencies": {
"@iconify-json/heroicons": "^1.1.20",
"@iconify-json/simple-icons": "^1.1.94",
"@nuxt/content": "^2.12.0",
"@nuxt/ui-pro": "^1.0.2",
"@iconify-json/heroicons": "^1.1.21",
"@iconify-json/simple-icons": "^1.1.108",
"@nuxt/content": "^2.13.1",
"@nuxt/ui-pro": "^1.3.1",
"@nuxtjs/eslint-config-typescript": "^12.1.0",
"@nuxtjs/fontaine": "^0.4.1",
"@nuxtjs/google-fonts": "^3.1.3",
"nuxt": "^3.10.3",
"nuxt-og-image": "^2.2.4"
"@nuxtjs/fontaine": "^0.4.3",
"@nuxtjs/google-fonts": "^3.2.0",
"nuxt": "^3.12.3",
"nuxt-og-image": "^2.2.6"
},
"devDependencies": {
"@nuxt/devtools": "1.0.8",
"@nuxt/eslint-config": "^0.2.0",
"@nuxthq/studio": "^1.0.12",
"@nuxtjs/plausible": "^0.2.4",
"@nuxt/devtools": "1.3.9",
"@nuxt/eslint-config": "^0.3.13",
"@nuxthq/studio": "^2.0.3",
"@nuxtjs/plausible": "^1.0.0",
"@nuxtlabs/github-module": "^1.6.3",
"eslint": "^8.57.0",
"typescript": "^5.4.2",
"vue-tsc": "^2.0.6"
"eslint": "^9.6.0",
"typescript": "^5.5.3",
"vue-tsc": "^2.0.26"
},
"resolutions": {
"vue": "3.3.13",
Loading