From 3640ef9f68917ace598534939ebd916963a48bab Mon Sep 17 00:00:00 2001 From: Joel Lee Date: Fri, 5 Jul 2024 12:25:50 +0200 Subject: [PATCH] fix: add small fixes to v0.4.0 (#34) ## What kind of change does this PR introduce? Update v0.4.0 with small fixes --------- Co-authored-by: Jason Creviston Co-authored-by: Jason Creviston --- .github/workflows/ci.yml | 4 ++++ .github/workflows/conventional-commits.yml | 4 ++-- CHANGELOG.md | 10 ++++------ src/createServerClient.ts | 4 +++- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d6cab9f..ab33cbc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,10 @@ name: CI on: pull_request: + push: + branches: + - main + tags: ["*"] jobs: lint: diff --git a/.github/workflows/conventional-commits.yml b/.github/workflows/conventional-commits.yml index f91c9b0..71e0e1d 100644 --- a/.github/workflows/conventional-commits.yml +++ b/.github/workflows/conventional-commits.yml @@ -3,12 +3,12 @@ name: Check pull requests on: push: branches-ignore: # Run the checks on all branches but the protected ones - - master + - main - release/* pull_request_target: branches: - - master + - main - release/* types: - opened diff --git a/CHANGELOG.md b/CHANGELOG.md index 2458882..0546666 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,17 +2,15 @@ ## [0.4.0](https://github.com/supabase/ssr/compare/v0.3.0...v0.4.0) (2024-06-24) - ### Features -* full rewrite using `getAll` and `setAll` cookie methods ([#1](https://github.com/supabase/ssr/issues/1)) ([b6ae192](https://github.com/supabase/ssr/commit/b6ae192aeb37ac6948637955cf1d3d6179b90065)) - +- full rewrite using `getAll` and `setAll` cookie methods ([#1](https://github.com/supabase/ssr/issues/1)) ([b6ae192](https://github.com/supabase/ssr/commit/b6ae192aeb37ac6948637955cf1d3d6179b90065)) ### Bug Fixes -* allow use of `createBrowserClient` without `window` present ([#20](https://github.com/supabase/ssr/issues/20)) ([27d868d](https://github.com/supabase/ssr/commit/27d868d530925805fe2f3577ae716ece40dd3ab6)) -* deprecate `parse`, `serialize` exports for more useful functions ([#14](https://github.com/supabase/ssr/issues/14)) ([0b5f881](https://github.com/supabase/ssr/commit/0b5f881e90b7836f2b98b733aac1cc9f916286cb)) -* fix `createBrowserClient` deprecation tsdoc ([#17](https://github.com/supabase/ssr/issues/17)) ([1df70ad](https://github.com/supabase/ssr/commit/1df70ad51e65caab46cbc00342dbb42f6d498c32)) +- allow use of `createBrowserClient` without `window` present ([#20](https://github.com/supabase/ssr/issues/20)) ([27d868d](https://github.com/supabase/ssr/commit/27d868d530925805fe2f3577ae716ece40dd3ab6)) +- deprecate `parse`, `serialize` exports for more useful functions ([#14](https://github.com/supabase/ssr/issues/14)) ([0b5f881](https://github.com/supabase/ssr/commit/0b5f881e90b7836f2b98b733aac1cc9f916286cb)) +- fix `createBrowserClient` deprecation tsdoc ([#17](https://github.com/supabase/ssr/issues/17)) ([1df70ad](https://github.com/supabase/ssr/commit/1df70ad51e65caab46cbc00342dbb42f6d498c32)) ## 0.3.0 diff --git a/src/createServerClient.ts b/src/createServerClient.ts index c424a58..c59edb1 100644 --- a/src/createServerClient.ts +++ b/src/createServerClient.ts @@ -193,7 +193,9 @@ export function createServerClient< (event === "SIGNED_IN" || event === "TOKEN_REFRESHED" || event === "USER_UPDATED" || - event === "SIGNED_OUT") + event === "PASSWORD_RECOVERY" || + event === "SIGNED_OUT" || + event === "MFA_CHALLENGE_VERIFIED") ) { await applyServerStorage( { getAll, setAll, setItems, removedItems },