Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update project's dependencies #289

Merged
merged 2 commits into from
Nov 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/tender-turkeys-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@suspensive/react-await": patch
"@suspensive/react-query": patch
"@suspensive/react": patch
---

chore: update project's dependencies
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8.5.1
version: 8.10.2
- uses: actions/setup-node@v3
with:
cache: 'pnpm'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8.5.1
version: 8.10.2
- uses: actions/setup-node@v3
with:
cache: 'pnpm'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/graph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8.5.1
version: 8.10.2
- uses: actions/setup-node@v3
with:
cache: 'pnpm'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8.5.1
version: 8.10.2
- uses: actions/setup-node@v3
with:
cache: 'pnpm'
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.16
18
6 changes: 3 additions & 3 deletions configs/eslint-config-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"lint": "eslint ."
},
"dependencies": {
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.25.3",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-jsdoc": "^46.8.2",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-vitest": "0.3.1"
},
"peerDependencies": {
Expand Down
12 changes: 6 additions & 6 deletions configs/eslint-config-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
},
"dependencies": {
"@suspensive/eslint-config-js": "workspace:*",
"@typescript-eslint/eslint-plugin": "^5.7.0",
"@typescript-eslint/parser": "^5.7.0",
"eslint-config-prettier": "^8.3.0",
"eslint-import-resolver-typescript": "^2.5.0",
"eslint-plugin-import": "^2.25.3",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"eslint-config-prettier": "^8.10.0",
"eslint-import-resolver-typescript": "^2.7.1",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-jsdoc": "^46.8.2",
"eslint-plugin-prettier": "^4.2.1"
"eslint-plugin-prettier": "^5.0.1"
},
"peerDependencies": {
"eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
Expand Down
4 changes: 2 additions & 2 deletions configs/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"dependencies": {
"@suspensive/eslint-config-js": "workspace:*",
"@suspensive/eslint-config-ts": "workspace:*",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0"
},
"peerDependencies": {
Expand Down
5 changes: 5 additions & 0 deletions configs/eslint-config/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@ module.exports = {
'react/prop-types': 'off',
'react/no-unescaped-entities': 'off',
},
settings: {
react: {
version: 'detect',
},
},
}
2 changes: 1 addition & 1 deletion configs/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"type:check": "tsc --noEmit"
},
"devDependencies": {
"@types/react": "^18.2.0",
"@types/react": "^18.2.34",
"react": "^18.2.0"
},
"peerDependencies": {
Expand Down
18 changes: 9 additions & 9 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@
},
"dependencies": {
"@vercel/analytics": "^1.1.1",
"next": "13.5.4",
"next": "14.0.1",
"nextra": "^2.13.2",
"nextra-theme-docs": "^2.13.2",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"autoprefixer": "^10",
"eslint": "^8",
"@types/node": "^20.8.10",
"@types/react": "^18.2.34",
"@types/react-dom": "^18.2.14",
"autoprefixer": "^10.4.16",
"eslint": "^8.52.0",
"eslint-config-next": "13.5.4",
"postcss": "^8",
"tailwindcss": "^3",
"typescript": "^5"
"postcss": "^8.4.31",
"tailwindcss": "^3.3.5",
"typescript": "^5.2.2"
}
}
39 changes: 20 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"url": "https://github.com/suspensive/react.git"
},
"license": "MIT",
"packageManager": "pnpm@8.5.1",
"packageManager": "pnpm@8.10.2",
"type": "module",
"workspaces": [
"configs/*",
Expand Down Expand Up @@ -48,37 +48,38 @@
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.12.2",
"@changesets/cli": "^2.26.1",
"@commitlint/cli": "^17.6.1",
"@commitlint/config-conventional": "^17.6.1",
"@changesets/cli": "^2.26.2",
"@commitlint/cli": "^17.8.1",
"@commitlint/config-conventional": "^17.8.1",
"@suspensive/eslint-config": "workspace:*",
"@suspensive/eslint-config-js": "workspace:*",
"@suspensive/eslint-config-ts": "workspace:*",
"@suspensive/tsconfig": "workspace:*",
"@testing-library/dom": "^8.20.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/dom": "^8.20.1",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@types/testing-library__jest-dom": "^5.14.5",
"@vitest/coverage-v8": "^0.34.3",
"@vitest/ui": "^0.34.4",
"@types/testing-library__jest-dom": "^5.14.9",
"@vitest/coverage-v8": "^0.34.6",
"@vitest/ui": "^0.34.6",
"commitizen": "^4.3.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.42.0",
"eslint": "^8.52.0",
"husky": "^8.0.3",
"jsdom": "^22.1.0",
"lint-staged": "^13.2.2",
"ms": "^3.0.0-canary.1",
"lint-staged": "^13.3.0",
"ms": "3.0.0-canary.1",
"packlint": "^0.2.4",
"prettier": "^2.8.8",
"publint": "^0.2.2",
"rimraf": "^5.0.1",
"tsup": "^7.1.0",
"prettier": "^3.0.3",
"publint": "^0.2.5",
"rimraf": "^5.0.5",
"tsup": "^7.2.0",
"turbo": "latest",
"typescript": "^5.1.6",
"vite": "^4.4.9",
"typescript": "^5.2.2",
"vite": "^4.5.0",
"vitest": "^0.34.6"
},
"volta": {
"node": "18.16.1"
"node": "18.16.1",
"pnpm": "8.10.2"
}
}
6 changes: 3 additions & 3 deletions packages/react-await/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@
"@suspensive/test-utils": "workspace:*",
"@suspensive/tsup": "workspace:*",
"@suspensive/vitest": "workspace:*",
"@types/node": "^18.16.2",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.1",
"@types/node": "^18.18.8",
"@types/react": "^18.2.34",
"@types/react-dom": "^18.2.14",
"@types/use-sync-external-store": "^0.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
8 changes: 4 additions & 4 deletions packages/react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@
"@suspensive/react": "workspace:*",
"@suspensive/tsup": "workspace:*",
"@suspensive/vitest": "workspace:*",
"@tanstack/react-query": "^4.29.5",
"@types/node": "^18.16.2",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.1",
"@tanstack/react-query": "^4.36.1",
"@types/node": "^18.18.8",
"@types/react": "^18.2.34",
"@types/react-dom": "^18.2.14",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tsd": "^0.28.1"
Expand Down
28 changes: 14 additions & 14 deletions packages/react-query/src/useSuspenseInfiniteQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export type UseSuspenseInfiniteQueryOptions<
TQueryFnData = unknown,
TError = unknown,
TData = TQueryFnData,
TQueryKey extends QueryKey = QueryKey
TQueryKey extends QueryKey = QueryKey,
> = Omit<UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>, 'suspense'>

/**
Expand All @@ -41,7 +41,7 @@ export function useSuspenseInfiniteQuery<
TQueryFnData = unknown,
TError = unknown,
TData = TQueryFnData,
TQueryKey extends QueryKey = QueryKey
TQueryKey extends QueryKey = QueryKey,
>(
queryKey: TQueryKey,
queryFn: QueryFunction<TQueryFnData, TQueryKey>,
Expand All @@ -54,7 +54,7 @@ export function useSuspenseInfiniteQuery<
TQueryFnData = unknown,
TError = unknown,
TData = TQueryFnData,
TQueryKey extends QueryKey = QueryKey
TQueryKey extends QueryKey = QueryKey,
>(
queryKey: TQueryKey,
queryFn: QueryFunction<TQueryFnData, TQueryKey>,
Expand All @@ -69,7 +69,7 @@ export function useSuspenseInfiniteQuery<
TQueryFnData = unknown,
TError = unknown,
TData = TQueryFnData,
TQueryKey extends QueryKey = QueryKey
TQueryKey extends QueryKey = QueryKey,
>(
queryKey: TQueryKey,
queryFn: QueryFunction<TQueryFnData, TQueryKey>,
Expand All @@ -84,7 +84,7 @@ export function useSuspenseInfiniteQuery<
TQueryFnData = unknown,
TError = unknown,
TData = TQueryFnData,
TQueryKey extends QueryKey = QueryKey
TQueryKey extends QueryKey = QueryKey,
>(
queryKey: TQueryKey,
queryFn: QueryFunction<TQueryFnData, TQueryKey>,
Expand All @@ -96,7 +96,7 @@ export function useSuspenseInfiniteQuery<
TQueryFnData = unknown,
TError = unknown,
TData = TQueryFnData,
TQueryKey extends QueryKey = QueryKey
TQueryKey extends QueryKey = QueryKey,
>(
queryKey: TQueryKey,
options?: Omit<UseSuspenseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'enabled' | 'queryKey'>
Expand All @@ -105,7 +105,7 @@ export function useSuspenseInfiniteQuery<
TQueryFnData = unknown,
TError = unknown,
TData = TQueryFnData,
TQueryKey extends QueryKey = QueryKey
TQueryKey extends QueryKey = QueryKey,
>(
queryKey: TQueryKey,
options: Omit<UseSuspenseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'enabled' | 'queryKey'> & {
Expand All @@ -116,7 +116,7 @@ export function useSuspenseInfiniteQuery<
TQueryFnData = unknown,
TError = unknown,
TData = TQueryFnData,
TQueryKey extends QueryKey = QueryKey
TQueryKey extends QueryKey = QueryKey,
>(
queryKey: TQueryKey,
options: Omit<UseSuspenseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'enabled' | 'queryKey'> & {
Expand All @@ -127,7 +127,7 @@ export function useSuspenseInfiniteQuery<
TQueryFnData = unknown,
TError = unknown,
TData = TQueryFnData,
TQueryKey extends QueryKey = QueryKey
TQueryKey extends QueryKey = QueryKey,
>(
queryKey: TQueryKey,
options: Omit<UseSuspenseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'queryKey'>
Expand All @@ -138,15 +138,15 @@ export function useSuspenseInfiniteQuery<
TQueryFnData = unknown,
TError = unknown,
TData = TQueryFnData,
TQueryKey extends QueryKey = QueryKey
TQueryKey extends QueryKey = QueryKey,
>(
options: Omit<UseSuspenseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'enabled'>
): UseSuspenseInfiniteQueryResultOnSuccess<TData>
export function useSuspenseInfiniteQuery<
TQueryFnData = unknown,
TError = unknown,
TData = TQueryFnData,
TQueryKey extends QueryKey = QueryKey
TQueryKey extends QueryKey = QueryKey,
>(
options: Omit<UseSuspenseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'enabled'> & {
enabled?: true
Expand All @@ -156,7 +156,7 @@ export function useSuspenseInfiniteQuery<
TQueryFnData = unknown,
TError = unknown,
TData = TQueryFnData,
TQueryKey extends QueryKey = QueryKey
TQueryKey extends QueryKey = QueryKey,
>(
options: Omit<UseSuspenseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'enabled'> & {
enabled: false
Expand All @@ -166,7 +166,7 @@ export function useSuspenseInfiniteQuery<
TQueryFnData = unknown,
TError = unknown,
TData = TQueryFnData,
TQueryKey extends QueryKey = QueryKey
TQueryKey extends QueryKey = QueryKey,
>(
options: UseSuspenseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey>
): UseSuspenseInfiniteQueryResultOnSuccess<TData> | UseSuspenseInfiniteQueryResultOnLoading
Expand All @@ -176,7 +176,7 @@ export function useSuspenseInfiniteQuery<
TQueryFnData = unknown,
TError = unknown,
TData = TQueryFnData,
TQueryKey extends QueryKey = QueryKey
TQueryKey extends QueryKey = QueryKey,
>(
arg1: TQueryKey | UseSuspenseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey>,
arg2?:
Expand Down
6 changes: 3 additions & 3 deletions packages/react-query/src/useSuspenseQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type UseQueryOptionsForUseSuspenseQueries<
TQueryFnData = unknown,
TData = TQueryFnData,
TQueryKey extends QueryKey = QueryKey,
TEnabled extends boolean | undefined = true
TEnabled extends boolean | undefined = true,
> = Omit<UseQueryOptions<TQueryFnData, unknown, TData, TQueryKey>, 'context' | 'suspense'> & {
enabled?: TEnabled
}
Expand Down Expand Up @@ -62,7 +62,7 @@ type GetOption<T> =
type SuspenseQueriesOptions<
T extends unknown[],
Result extends unknown[] = [],
Depth extends ReadonlyArray<number> = []
Depth extends ReadonlyArray<number> = [],
> = Depth['length'] extends MAXIMUM_DEPTH
? UseQueryOptionsForUseSuspenseQueries[]
: T extends []
Expand Down Expand Up @@ -120,7 +120,7 @@ type GetResult<T> = T extends { queryFnData: any; data: infer TData }
export type QueriesResults<
T extends any[],
Result extends any[] = [],
Depth extends ReadonlyArray<number> = []
Depth extends ReadonlyArray<number> = [],
> = Depth['length'] extends MAXIMUM_DEPTH
? UseQueryResult[]
: T extends []
Expand Down
Loading
Loading