Skip to content

Commit

Permalink
chore(deps): move some deps from root to sub-packages (#8341)
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins authored Nov 24, 2024
1 parent 68dee7e commit 5cd9611
Show file tree
Hide file tree
Showing 28 changed files with 203 additions and 183 deletions.
2 changes: 1 addition & 1 deletion examples/solid/astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@tanstack/solid-query": "^5.60.6",
"@tanstack/solid-query-devtools": "^5.61.3",
"astro": "^4.16.1",
"solid-js": "^1.8.19",
"solid-js": "^1.9.3",
"tailwindcss": "^3.4.7",
"typescript": "5.3.3"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/solid/basic-graphql-request/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@tanstack/solid-query-devtools": "^5.61.3",
"graphql": "^16.9.0",
"graphql-request": "^7.1.2",
"solid-js": "^1.8.19"
"solid-js": "^1.9.3"
},
"devDependencies": {
"typescript": "5.3.3",
Expand Down
2 changes: 1 addition & 1 deletion examples/solid/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"@tanstack/solid-query": "^5.60.6",
"@tanstack/solid-query-devtools": "^5.61.3",
"solid-js": "^1.8.19"
"solid-js": "^1.9.3"
},
"devDependencies": {
"typescript": "5.3.3",
Expand Down
2 changes: 1 addition & 1 deletion examples/solid/default-query-function/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"@tanstack/solid-query": "^5.60.6",
"@tanstack/solid-query-devtools": "^5.61.3",
"solid-js": "^1.8.19"
"solid-js": "^1.9.3"
},
"devDependencies": {
"typescript": "5.3.3",
Expand Down
2 changes: 1 addition & 1 deletion examples/solid/simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"@tanstack/solid-query": "^5.60.6",
"@tanstack/solid-query-devtools": "^5.61.3",
"solid-js": "^1.8.19"
"solid-js": "^1.9.3"
},
"devDependencies": {
"@tanstack/eslint-plugin-query": "^5.61.3",
Expand Down
2 changes: 1 addition & 1 deletion examples/solid/solid-start-streaming/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@solidjs/start": "^1.0.6",
"@tanstack/solid-query": "^5.60.6",
"@tanstack/solid-query-devtools": "^5.61.3",
"solid-js": "^1.8.19",
"solid-js": "^1.9.3",
"vinxi": "^0.4.1"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion integrations/solid-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dependencies": {
"@tanstack/solid-query": "workspace:*",
"@tanstack/solid-query-devtools": "workspace:*",
"solid-js": "^1.8.19",
"solid-js": "^1.9.3",
"vite": "^5.3.5",
"vite-plugin-solid": "^2.10.2"
}
Expand Down
7 changes: 6 additions & 1 deletion knip.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
"$schema": "https://unpkg.com/knip@5/schema.json",
"ignore": [".pnpmfile.cjs", "scripts/typedoc-remove-prefix.js"],
"ignoreDependencies": ["typedoc-plugin-frontmatter"],
"ignoreDependencies": [
"@types/react",
"@types/react-dom",
"react",
"react-dom"
],
"ignoreWorkspaces": ["examples/**", "integrations/**"],
"workspaces": {
"packages/query-codemods": {
Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@
"@arethetypeswrong/cli": "^0.15.3",
"@cspell/eslint-plugin": "^8.16.0",
"@eslint-react/eslint-plugin": "^1.17.1",
"@solidjs/testing-library": "^0.8.9",
"@tanstack/config": "^0.14.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.0.1",
"@types/eslint": "^9.6.1",
"@types/node": "^22.9.3",
"@types/react": "npm:types-react@rc",
Expand All @@ -64,7 +62,6 @@
"react-dom": "19.0.0-rc-4c2e457c7c-20240522",
"rimraf": "^5.0.9",
"sherif": "^1.0.0",
"solid-js": "^1.8.19",
"tsup": "8.0.2",
"typescript": "5.3.3",
"typescript47": "npm:typescript@4.7",
Expand Down
5 changes: 4 additions & 1 deletion packages/query-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,8 @@
"build",
"src",
"!src/__tests__"
]
],
"devDependencies": {
"@testing-library/dom": "^10.4.0"
}
}
2 changes: 1 addition & 1 deletion packages/query-core/src/__tests__/hydration.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, test, vi } from 'vitest'
import { waitFor } from '@testing-library/react'
import { waitFor } from '@testing-library/dom'
import { QueryCache } from '../queryCache'
import { dehydrate, hydrate } from '../hydration'
import { MutationCache } from '../mutationCache'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest'
import { waitFor } from '@testing-library/react'
import { waitFor } from '@testing-library/dom'
import { CancelledError, InfiniteQueryObserver } from '..'
import { createQueryClient, queryKey, sleep } from './utils'
import type {
Expand Down
2 changes: 1 addition & 1 deletion packages/query-core/src/__tests__/mutationCache.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, test, vi } from 'vitest'
import { waitFor } from '@testing-library/react'
import { waitFor } from '@testing-library/dom'
import { MutationCache, MutationObserver } from '..'
import { createQueryClient, executeMutation, queryKey, sleep } from './utils'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest'
import { waitFor } from '@testing-library/react'
import { waitFor } from '@testing-library/dom'
import { MutationObserver } from '..'
import { createQueryClient, queryKey, sleep } from './utils'
import type { QueryClient } from '..'
Expand Down
2 changes: 1 addition & 1 deletion packages/query-core/src/__tests__/mutations.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest'
import { waitFor } from '@testing-library/react'
import { waitFor } from '@testing-library/dom'
import { MutationObserver } from '../mutationObserver'
import { createQueryClient, executeMutation, queryKey, sleep } from './utils'
import type { QueryClient } from '..'
Expand Down
2 changes: 1 addition & 1 deletion packages/query-core/src/__tests__/queriesObserver.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest'
import { waitFor } from '@testing-library/react'
import { waitFor } from '@testing-library/dom'
import { QueriesObserver } from '..'
import { createQueryClient, queryKey, sleep } from './utils'
import type { QueryClient, QueryObserverResult } from '..'
Expand Down
2 changes: 1 addition & 1 deletion packages/query-core/src/__tests__/query.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { afterEach, beforeEach, describe, expect, it, test, vi } from 'vitest'
import { waitFor } from '@testing-library/react'
import { waitFor } from '@testing-library/dom'
import { QueryObserver, dehydrate, hydrate, isCancelledError } from '..'
import {
createQueryClient,
Expand Down
2 changes: 1 addition & 1 deletion packages/query-core/src/__tests__/queryCache.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest'
import { waitFor } from '@testing-library/react'
import { waitFor } from '@testing-library/dom'
import { QueryCache, QueryClient, QueryObserver } from '..'
import { createQueryClient, queryKey, sleep } from './utils'

Expand Down
2 changes: 1 addition & 1 deletion packages/query-core/src/__tests__/queryClient.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest'
import { waitFor } from '@testing-library/react'
import { waitFor } from '@testing-library/dom'

import {
MutationObserver,
Expand Down
2 changes: 1 addition & 1 deletion packages/query-core/src/__tests__/queryObserver.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
test,
vi,
} from 'vitest'
import { waitFor } from '@testing-library/react'
import { waitFor } from '@testing-library/dom'
import { QueryObserver, focusManager } from '..'
import { createQueryClient, queryKey, sleep } from './utils'
import type { QueryClient, QueryObserverResult } from '..'
Expand Down
2 changes: 1 addition & 1 deletion packages/query-devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"@tanstack/query-core": "workspace:*",
"clsx": "^2.1.1",
"goober": "^2.1.16",
"solid-js": "^1.8.19",
"solid-js": "^1.9.3",
"solid-transition-group": "^0.2.3",
"superjson": "^2.2.1",
"tsup-preset-solid": "^2.2.0",
Expand Down
1 change: 1 addition & 0 deletions packages/react-query-devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
},
"devDependencies": {
"@tanstack/react-query": "workspace:*",
"@testing-library/react": "^16.0.1",
"@types/react": "npm:types-react@rc",
"@vitejs/plugin-react": "^4.3.3",
"react": "19.0.0-rc-4c2e457c7c-20240522"
Expand Down
1 change: 1 addition & 0 deletions packages/react-query-persist-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
},
"devDependencies": {
"@tanstack/react-query": "workspace:*",
"@testing-library/react": "^16.0.1",
"@types/react": "npm:types-react@rc",
"@vitejs/plugin-react": "^4.3.3",
"react": "19.0.0-rc-4c2e457c7c-20240522"
Expand Down
1 change: 1 addition & 0 deletions packages/react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
},
"devDependencies": {
"@tanstack/query-persist-client-core": "workspace:*",
"@testing-library/react": "^16.0.1",
"@types/react": "npm:types-react@rc",
"@types/react-dom": "npm:types-react-dom@rc",
"@vitejs/plugin-react": "^4.3.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/solid-query-devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
},
"devDependencies": {
"@tanstack/solid-query": "workspace:*",
"solid-js": "^1.8.19",
"solid-js": "^1.9.3",
"tsup-preset-solid": "^2.2.0",
"vite-plugin-solid": "^2.10.2"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/solid-query-persist-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@
"@tanstack/query-persist-client-core": "workspace:*"
},
"devDependencies": {
"@solidjs/testing-library": "^0.8.10",
"@tanstack/solid-query": "workspace:*",
"solid-js": "^1.8.19",
"solid-js": "^1.9.3",
"tsup-preset-solid": "^2.2.0",
"vite-plugin-solid": "^2.10.2"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/solid-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
"@tanstack/query-core": "workspace:*"
},
"devDependencies": {
"solid-js": "^1.8.19",
"@solidjs/testing-library": "^0.8.10",
"solid-js": "^1.9.3",
"tsup-preset-solid": "^2.2.0",
"vite-plugin-solid": "^2.10.2"
},
Expand Down
Loading

0 comments on commit 5cd9611

Please sign in to comment.