Skip to content

Commit

Permalink
Merge pull request #312 from psteinroe/refactor/cache-mutations
Browse files Browse the repository at this point in the history
refactor: cache mutations
  • Loading branch information
psteinroe authored Nov 6, 2023
2 parents 28b9482 + a2a577d commit 3c516d3
Show file tree
Hide file tree
Showing 60 changed files with 6,835 additions and 4,831 deletions.
5 changes: 5 additions & 0 deletions .changeset/curvy-bags-yell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@supabase-cache-helpers/postgrest-core": minor
---

feat: mutate-item cache operation
6 changes: 6 additions & 0 deletions .changeset/odd-rockets-repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@supabase-cache-helpers/postgrest-react-query": minor
"@supabase-cache-helpers/postgrest-swr": minor
---

feat: add useMutateItem hook for custom cache updates
5 changes: 5 additions & 0 deletions .changeset/popular-dingos-smile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@supabase-cache-helpers/postgrest-core": patch
---

refactor: split cache mutations and simplify
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

- uses: pnpm/[email protected]
with:
version: 7.x.x
version: 8.x.x

- name: Set up Node
uses: actions/setup-node@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- uses: pnpm/[email protected]
with:
version: 7.x.x
version: 8.x.x

- name: Set up Node
uses: actions/setup-node@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- uses: pnpm/[email protected]
with:
version: 7.x.x
version: 8.x.x

- name: Set up Node
uses: actions/setup-node@v4
Expand Down
6 changes: 3 additions & 3 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"@vercel/analytics": "^1.0.0",
"eslint": "8.52.0",
"eslint-config-next": "13.5.6",
"next": "^13.1.6",
"nextra": "^2.2.19",
"nextra-theme-docs": "^2.2.19",
"next": "13.5.6",
"nextra": "2.13.2",
"nextra-theme-docs": "2.13.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"typescript": "5.2.2"
Expand Down
6 changes: 3 additions & 3 deletions examples/react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@
"@radix-ui/react-tooltip": "^1.0.3",
"@supabase-cache-helpers/postgrest-react-query": "workspace:*",
"@supabase-cache-helpers/storage-react-query": "workspace:*",
"@supabase/auth-helpers-nextjs": "^0.5.6",
"@supabase/auth-helpers-react": "^0.3.1",
"@supabase/auth-helpers-nextjs": "0.8.7",
"@supabase/auth-helpers-react": "0.4.2",
"@tanstack/react-query": "^5.0.0",
"@vercel/analytics": "^0.1.11",
"class-variance-authority": "0.7.0",
"clsx": "^1.2.1",
"cmdk": "^0.1.21",
"lucide-react": "0.105.0-alpha.4",
"next": "^13.1.6",
"next": "13.5.6",
"next-themes": "^0.2.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
6 changes: 3 additions & 3 deletions examples/swr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@
"@radix-ui/react-tooltip": "^1.0.3",
"@supabase-cache-helpers/postgrest-swr": "workspace:*",
"@supabase-cache-helpers/storage-swr": "workspace:*",
"@supabase/auth-helpers-nextjs": "^0.5.6",
"@supabase/auth-helpers-react": "^0.3.1",
"@supabase/auth-helpers-nextjs": "0.8.7",
"@supabase/auth-helpers-react": "0.4.2",
"@supabase/supabase-js": "2.38.2",
"@vercel/analytics": "^0.1.11",
"class-variance-authority": "0.7.0",
"clsx": "^1.2.1",
"cmdk": "^0.1.21",
"lucide-react": "0.105.0-alpha.4",
"next": "^13.1.6",
"next": "13.5.6",
"next-themes": "^0.2.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
"eslint": "8.52.0",
"prettier": "3.0.3",
"@changesets/cli": "2.26.0",
"turbo": "latest"
"turbo": "1.10.16"
},
"engines": {
"pnpm": ">=7.0.0",
"pnpm": "8",
"node": ">=14.0.0"
},
"packageManager": "pnpm@7.33.0"
"packageManager": "pnpm@8"
}
Loading

3 comments on commit 3c516d3

@vercel
Copy link

@vercel vercel bot commented on 3c516d3 Nov 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

supabase-cache-helpers-react-query – ./examples/react-query

supabase-cache-helpers-react-query-psteinroe.vercel.app
supabase-cache-helpers-react-query.vercel.app
supabase-cache-helpers-react-query-git-main-psteinroe.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 3c516d3 Nov 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 3c516d3 Nov 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

supabase-cache-helpers-swr-demo – ./examples/swr

supabase-cache-helpers-swr-demo-psteinroe.vercel.app
supabase-cache-helpers-swr.vercel.app
supabase-cache-helpers-swr-demo-git-main-psteinroe.vercel.app

Please sign in to comment.