await insert([{ username: USERNAME_1 }])}
+ />
+
+ await update({
+ id: (data ?? []).find((d) => d.username === USERNAME_1)?.id,
+ username: USERNAME_2,
+ })
+ }
+ />
+ {`count: ${count}`}
+ {`success: ${success}`}
+
+ );
+ }
+
+ renderWithConfig(
, { provider: () => provider });
+ await screen.findByText('count: 0');
+ fireEvent.click(screen.getByTestId('insert'));
+ await screen.findByText('count: 1');
+ });
+
it('revalidate relations should work', async () => {
const USERNAME = `${testRunPrefix}-rev-relations`;
const USERNAME_UPDATED = `${testRunPrefix}-rev-relations-updated`;
diff --git a/packages/storage-core/package.json b/packages/storage-core/package.json
index efd59b2d..5af0080e 100644
--- a/packages/storage-core/package.json
+++ b/packages/storage-core/package.json
@@ -13,18 +13,13 @@
"./package.json": "./package.json"
},
"types": "./dist/index.d.ts",
- "files": [
- "dist/**"
- ],
+ "files": ["dist/**"],
"repository": {
"type": "git",
"url": "git+https://github.com/psteinroe/supabase-cache-helpers.git",
"directory": "packages/storage-fetcher"
},
- "keywords": [
- "Supabase",
- "Storage"
- ],
+ "keywords": ["Supabase", "Storage"],
"publishConfig": {
"access": "public"
},
diff --git a/packages/storage-react-query/package.json b/packages/storage-react-query/package.json
index 73b92900..ed1ff159 100644
--- a/packages/storage-react-query/package.json
+++ b/packages/storage-react-query/package.json
@@ -18,9 +18,7 @@
"./package.json": "./package.json"
},
"types": "./dist/index.d.ts",
- "files": [
- "dist/**"
- ],
+ "files": ["dist/**"],
"publishConfig": {
"access": "public"
},
@@ -31,13 +29,7 @@
"clean": "rm -rf .turbo && rm -rf .nyc_output && rm -rf node_modules && rm -rf dist",
"typecheck": "tsc --pretty --noEmit"
},
- "keywords": [
- "Supabase",
- "Storage",
- "Cache",
- "Tanstack Query",
- "React Query"
- ],
+ "keywords": ["Supabase", "Storage", "Cache", "Tanstack Query", "React Query"],
"repository": {
"type": "git",
"url": "git+https://github.com/psteinroe/supabase-cache-helpers.git",
diff --git a/packages/storage-swr/package.json b/packages/storage-swr/package.json
index ca69ce03..68925006 100644
--- a/packages/storage-swr/package.json
+++ b/packages/storage-swr/package.json
@@ -18,9 +18,7 @@
"./package.json": "./package.json"
},
"types": "./dist/index.d.ts",
- "files": [
- "dist/**"
- ],
+ "files": ["dist/**"],
"publishConfig": {
"access": "public"
},
@@ -31,12 +29,7 @@
"clean": "rm -rf .turbo && rm -rf coverage && rm -rf .nyc_output && rm -rf node_modules && rm -rf dist",
"typecheck": "tsc --pretty --noEmit"
},
- "keywords": [
- "Supabase",
- "Storage",
- "Cache",
- "SWR"
- ],
+ "keywords": ["Supabase", "Storage", "Cache", "SWR"],
"repository": {
"type": "git",
"url": "git+https://github.com/psteinroe/supabase-cache-helpers.git",