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.3.1
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.2
Choose a head ref
  • 10 commits
  • 9 files changed
  • 1 contributor

Commits on Jul 5, 2024

  1. docs(get-started): update from Nuxt Studio

    larbish authored Jul 5, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    016764d View commit details
  2. feat(ci): nightly

    larbish committed Jul 5, 2024
    Copy the full SHA
    298e608 View commit details
  3. chore(package): set pnpm

    larbish committed Jul 5, 2024
    Copy the full SHA
    8466663 View commit details
  4. chore(pkg): harmonize version

    larbish committed Jul 5, 2024
    Copy the full SHA
    e73bd79 View commit details
  5. chore(deps): add changelogen

    larbish committed Jul 5, 2024
    Copy the full SHA
    3cc4a0a View commit details
  6. fix(vite): optimize postgrest

    larbish committed Jul 5, 2024
    Copy the full SHA
    2a6d91a View commit details
  7. chore(pck): set repository info

    larbish committed Jul 5, 2024
    Copy the full SHA
    21b0338 View commit details
  8. fix(pkg): update repo url

    larbish committed Jul 5, 2024
    Copy the full SHA
    1db18b9 View commit details
  9. Revert "fix(pkg): update repo url"

    This reverts commit 1db18b9.
    larbish committed Jul 5, 2024
    Copy the full SHA
    293145b View commit details
  10. chore(release): release v1.3.2

    larbish committed Jul 5, 2024
    Copy the full SHA
    3c1c8ec View commit details
Showing with 176 additions and 21 deletions.
  1. +1 −1 .github/workflows/ci-dev.yml
  2. +1 −1 .github/workflows/ci.yml
  3. +36 −0 .github/workflows/nightly.yml
  4. +1 −1 .github/workflows/studio.yml
  5. +12 −0 CHANGELOG.md
  6. +7 −15 docs/content/2.get-started.md
  7. +7 −2 package.json
  8. +110 −0 pnpm-lock.yaml
  9. +1 −1 src/module.ts
2 changes: 1 addition & 1 deletion .github/workflows/ci-dev.yml
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
version: 9.1.3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
version: 9.1.3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
36 changes: 36 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish Supabase (Nightly)
on:
push:
branches:
- main
jobs:
nightly:
strategy:
matrix:
os: [ubuntu-latest]
node: [20]

runs-on: ${{ matrix.os }}
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4 # v4
- name: Add pnpm
run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "https://registry.npmjs.org/"
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Prepare
run: pnpm dev:prepare
- name: Build
run: pnpm build
- name: Release Nightly
run: pnpm changelogen --bump --canary --publish --publishTag nightly
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NPM_CONFIG_PROVENANCE: true
2 changes: 1 addition & 1 deletion .github/workflows/studio.yml
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@ jobs:
name: Install pnpm
id: pnpm-install
with:
version: 8
version: 9.1.3

- uses: actions/setup-node@v3
with:
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@


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


### Bug Fixes

* **vite:** optimize postgrest ([2a6d91a](https://github.com/nuxt-community/supabase-module/commit/2a6d91a3ee83aa65cc5741afea907ca474e61d64))


### Features

* **ci:** nightly ([298e608](https://github.com/nuxt-community/supabase-module/commit/298e608442ac5e8c15aa61c01411585e57732f4a))

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


22 changes: 7 additions & 15 deletions docs/content/2.get-started.md
Original file line number Diff line number Diff line change
@@ -8,13 +8,14 @@ description: '@nuxtjs/supabase is a Nuxt module for first class integration with

Checkout the [Nuxt 3](https://v3.nuxtjs.org) documentation and [Supabase](https://supabase.com) to learn more.

::callout{icon="i-heroicons-exclamation-triangle-20-solid" color="amber"}
::callout{color="amber" icon="i-heroicons-exclamation-triangle-20-solid"}
For integrating Supabase with Nuxt 2, checkout [supabase-community/nuxt-supabase](https://github.com/supabase-community/nuxt-supabase).
::

## Installation

Add `@nuxtjs/supabase` dev dependency to your project:

```bash
npx nuxi@latest module add supabase
```
@@ -101,7 +102,7 @@ Default: `sb`
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
### `cookieOptions`
```ts
cookieOptions: {
@@ -119,7 +120,7 @@ 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
```bash
## Generate types from live database
supabase gen types typescript --project-id YourProjectId > types/database.types.ts

@@ -133,7 +134,7 @@ Check Supabase [documentation](https://supabase.com/docs/reference/javascript/re
### `clientOptions`
Default:
Default:
```ts
clientOptions: { }
@@ -146,21 +147,12 @@ Supabase client options [available here](https://supabase.com/docs/reference/jav
auth: {
flowType: 'pkce',
autoRefreshToken: isBrowser(),
detectSessionInUrl: isBrowser(),
persistSession: true,
detectSessionInUrl: isBrowser(),
persistSession: true,
},
}
```
## Versions
`0.1.x` versions are wrapped around `supabase-js v1`.
:br
`1.x.x` versions are wrapped around `supabase-js v2`.
## Demo
A live demo is made for see this module in action on [n3-supabase.netlify.app](https://n3-supabase.netlify.app), read more in the [demo section](/demo).
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{
"name": "@nuxtjs/supabase",
"version": "1.3.1",
"version": "1.3.2",
"description": "Supabase module for Nuxt",
"repository": "nuxt-community/supabase-module",
"repository": {
"type": "git",
"url": "git+https://github.com/nuxt-community/supabase-module.git"
},
"license": "MIT",
"packageManager": "pnpm@9.1.3",
"exports": {
".": {
"import": "./dist/module.mjs",
@@ -38,6 +42,7 @@
"@nuxt/schema": "^3.12.3",
"@release-it/conventional-changelog": "^8.0.1",
"@types/node": "^20.14.9",
"changelogen": "^0.5.5",
"eslint": "^9.6.0",
"nuxt": "^3.12.3",
"prettier": "^3.3.2",
110 changes: 110 additions & 0 deletions pnpm-lock.yaml
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
@@ -224,7 +224,7 @@ export default defineNuxtModule<ModuleOptions>({
extendViteConfig((config) => {
config.optimizeDeps = config.optimizeDeps || {}
config.optimizeDeps.include = config.optimizeDeps.include || []
config.optimizeDeps.include.push('cookie')
config.optimizeDeps.include.push('cookie', '@supabase/postgrest-js')
})
},
})