Skip to content

Commit

Permalink
Merge pull request #481 from psteinroe/chore/update-deps
Browse files Browse the repository at this point in the history
chore: update deps
  • Loading branch information
psteinroe committed Jul 12, 2024
2 parents 2523cec + 343a455 commit f7b72b5
Show file tree
Hide file tree
Showing 21 changed files with 808 additions and 1,152 deletions.
10 changes: 10 additions & 0 deletions .changeset/cold-avocados-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@supabase-cache-helpers/postgrest-react-query": patch
"@supabase-cache-helpers/storage-react-query": patch
"@supabase-cache-helpers/postgrest-core": patch
"@supabase-cache-helpers/postgrest-swr": patch
"@supabase-cache-helpers/storage-core": patch
"@supabase-cache-helpers/storage-swr": patch
---

chore: update dependencies
8 changes: 4 additions & 4 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
"next": "14.2.0",
"nextra": "2.13.2",
"nextra-theme-docs": "2.13.2",
"react": "18.2.0",
"react-dom": "18.2.0"
"react": "18.3.1",
"react-dom": "18.3.1"
},
"devDependencies": {
"autoprefixer": "^10.4.13",
"typescript": "5.4.2",
"@types/node": "20.11.19",
"typescript": "5.5.3",
"@types/node": "20.14.10",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"postcss": "^8.4.14",
Expand Down
8 changes: 4 additions & 4 deletions examples/react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
"lucide-react": "0.105.0-alpha.4",
"next": "13.5.6",
"next-themes": "^0.2.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-hook-form": "^7.43.5",
"sharp": "^0.31.3",
"tailwind-merge": "^1.8.0",
Expand All @@ -63,14 +63,14 @@
"zod": "^3.21.4"
},
"devDependencies": {
"@types/node": "20.11.19",
"@types/node": "20.14.10",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@types/uuid": "^9.0.2",
"autoprefixer": "^10.4.13",
"dotenv": "16.0.1",
"postcss": "^8.4.14",
"tailwindcss": "3.3.3",
"typescript": "5.4.2"
"typescript": "5.5.3"
}
}
8 changes: 4 additions & 4 deletions examples/swr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
"lucide-react": "0.105.0-alpha.4",
"next": "13.5.6",
"next-themes": "^0.2.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-hook-form": "^7.43.5",
"sharp": "^0.31.3",
"swr": "^2.1.5",
Expand All @@ -63,14 +63,14 @@
"zod": "^3.21.4"
},
"devDependencies": {
"@types/node": "20.11.19",
"@types/node": "20.14.10",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@types/uuid": "^9.0.2",
"autoprefixer": "^10.4.13",
"dotenv": "16.0.1",
"postcss": "^8.4.14",
"tailwindcss": "3.3.3",
"typescript": "5.4.2"
"typescript": "5.5.3"
}
}
8 changes: 4 additions & 4 deletions packages/postgrest-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"dependencies": {
"fast-equals": "5.0.1",
"flat": "5.0.2",
"flat": "6.0.1",
"merge-anything": "5.1.7",
"xregexp": "5.1.1"
},
Expand All @@ -48,8 +48,8 @@
"@types/lodash": "4.17.0",
"@vitest/coverage-istanbul": "^2.0.2",
"dotenv": "16.4.0",
"tsup": "8.0.0",
"typescript": "5.4.2",
"vitest": "^2.0.2"
"tsup": "8.1.0",
"typescript": "5.5.3",
"vitest": "2.0.2"
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flatten from 'flat';
import { flatten } from 'flat';

import { get } from '../lib/get';
import { type NestedPath, isNestedPath } from '../lib/group-paths-recursive';
Expand Down
6 changes: 3 additions & 3 deletions packages/postgrest-core/src/filter/denormalize.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flat from 'flat';
import { unflatten } from 'flat';

import {
groupPathsRecursive,
Expand Down Expand Up @@ -61,9 +61,9 @@ export const denormalize = <R extends Record<string, unknown>>(
);
if (Object.keys(jsonValue).length > 0) {
if (isArray) {
value = Object.values(jsonValue).map((v) => flat.unflatten(v));
value = Object.values(jsonValue).map((v) => unflatten(v));
} else {
value = flat.unflatten(jsonValue);
value = unflatten(jsonValue);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/postgrest-core/src/lib/encode-object.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flatten from 'flat';
import { flatten } from 'flat';

import { sortSearchParams } from './sort-search-param';

Expand Down
12 changes: 6 additions & 6 deletions packages/postgrest-react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@
"@types/react": "18.3.3",
"@vitest/coverage-istanbul": "^2.0.2",
"dotenv": "16.4.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"tsup": "8.0.0",
"typescript": "5.4.2",
"vitest": "^2.0.2"
"react": "18.3.1",
"react-dom": "18.3.1",
"tsup": "8.1.0",
"typescript": "5.5.3",
"vitest": "2.0.2"
},
"dependencies": {
"@supabase-cache-helpers/postgrest-core": "workspace:*",
"flat": "5.0.2"
"flat": "6.0.1"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
deleteItem,
} from '@supabase-cache-helpers/postgrest-core';
import { useQueryClient } from '@tanstack/react-query';
import flatten from 'flat';
import { flatten } from 'flat';

import { decode, usePostgrestFilterCache } from '../lib';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
mutateItem,
} from '@supabase-cache-helpers/postgrest-core';
import { useQueryClient } from '@tanstack/react-query';
import flatten from 'flat';
import { flatten } from 'flat';

import { decode, usePostgrestFilterCache } from '../lib';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
upsertItem,
} from '@supabase-cache-helpers/postgrest-core';
import { useQueryClient } from '@tanstack/react-query';
import flatten from 'flat';
import { flatten } from 'flat';

import { decode, usePostgrestFilterCache } from '../lib';

Expand Down
12 changes: 6 additions & 6 deletions packages/postgrest-swr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@
"@types/react": "18.3.3",
"@vitest/coverage-istanbul": "^2.0.2",
"dotenv": "16.4.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"tsup": "8.0.0",
"typescript": "5.4.2",
"vitest": "^2.0.2"
"react": "18.3.1",
"react-dom": "18.3.1",
"tsup": "8.1.0",
"typescript": "5.5.3",
"vitest": "2.0.2"
},
"dependencies": {
"@supabase-cache-helpers/postgrest-core": "workspace:*",
"flat": "5.0.2",
"flat": "6.0.1",
"server-only": "^0.0.1"
}
}
2 changes: 1 addition & 1 deletion packages/postgrest-swr/src/cache/use-delete-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
type DeleteItemOperation,
deleteItem,
} from '@supabase-cache-helpers/postgrest-core';
import flatten from 'flat';
import { flatten } from 'flat';
import { type MutatorOptions, useSWRConfig } from 'swr';

import { decode, usePostgrestFilterCache } from '../lib';
Expand Down
2 changes: 1 addition & 1 deletion packages/postgrest-swr/src/cache/use-mutate-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
type MutateItemOperation,
mutateItem,
} from '@supabase-cache-helpers/postgrest-core';
import flatten from 'flat';
import { flatten } from 'flat';
import { type MutatorOptions, useSWRConfig } from 'swr';

import { decode, usePostgrestFilterCache } from '../lib';
Expand Down
2 changes: 1 addition & 1 deletion packages/postgrest-swr/src/cache/use-upsert-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
type UpsertItemOperation,
upsertItem,
} from '@supabase-cache-helpers/postgrest-core';
import flatten from 'flat';
import { flatten } from 'flat';
import { type MutatorOptions, useSWRConfig } from 'swr';

import { decode, usePostgrestFilterCache } from '../lib';
Expand Down
6 changes: 3 additions & 3 deletions packages/storage-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"@supabase/supabase-js": "2.44.3",
"@vitest/coverage-istanbul": "^2.0.2",
"dotenv": "16.4.0",
"tsup": "8.0.0",
"typescript": "5.4.2",
"vitest": "^2.0.2"
"tsup": "8.1.0",
"typescript": "5.5.3",
"vitest": "2.0.2"
}
}
10 changes: 5 additions & 5 deletions packages/storage-react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@
"@testing-library/react": "14.3.0",
"@types/react": "18.3.3",
"dotenv": "16.4.0",
"react": "18.2.0",
"react": "18.3.1",
"@vitest/coverage-istanbul": "^2.0.2",
"happy-dom": "14.12.3",
"react-dom": "18.2.0",
"tsup": "8.0.0",
"typescript": "5.4.2",
"vitest": "^2.0.2"
"react-dom": "18.3.1",
"tsup": "8.1.0",
"typescript": "5.5.3",
"vitest": "2.0.2"
},
"dependencies": {
"@supabase-cache-helpers/storage-core": "workspace:*"
Expand Down
10 changes: 5 additions & 5 deletions packages/storage-swr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@
"@vitest/coverage-istanbul": "^2.0.2",
"dotenv": "16.4.0",
"happy-dom": "14.12.3",
"react": "18.2.0",
"react-dom": "18.2.0",
"tsup": "8.0.0",
"typescript": "5.4.2",
"vitest": "^2.0.2"
"react": "18.3.1",
"react-dom": "18.3.1",
"tsup": "8.1.0",
"typescript": "5.5.3",
"vitest": "2.0.2"
},
"dependencies": {
"@supabase-cache-helpers/storage-core": "workspace:*"
Expand Down
Loading

0 comments on commit f7b72b5

Please sign in to comment.