Skip to content

Commit

Permalink
Sync svelte versions
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins committed Jul 16, 2024
1 parent 4800066 commit 016f9f0
Show file tree
Hide file tree
Showing 15 changed files with 90 additions and 254 deletions.
4 changes: 2 additions & 2 deletions examples/svelte/auto-refetching/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"devDependencies": {
"@sveltejs/adapter-auto": "^3.2.0",
"@sveltejs/kit": "^2.5.9",
"@sveltejs/vite-plugin-svelte": "^3.1.0",
"svelte": "^4.2.17",
"@sveltejs/vite-plugin-svelte": "^4.0.0-next.3",
"svelte": "5.0.0-next.183",
"svelte-check": "^3.7.1",
"typescript": "5.3.3",
"vite": "^5.2.11"
Expand Down
4 changes: 2 additions & 2 deletions examples/svelte/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"devDependencies": {
"@sveltejs/adapter-auto": "^3.2.0",
"@sveltejs/kit": "^2.5.9",
"@sveltejs/vite-plugin-svelte": "^3.1.0",
"svelte": "^4.2.17",
"@sveltejs/vite-plugin-svelte": "^4.0.0-next.3",
"svelte": "5.0.0-next.183",
"svelte-check": "^3.7.1",
"typescript": "5.3.3",
"vite": "^5.2.11"
Expand Down
4 changes: 2 additions & 2 deletions examples/svelte/load-more-infinite-scroll/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"devDependencies": {
"@sveltejs/adapter-auto": "^3.2.0",
"@sveltejs/kit": "^2.5.9",
"@sveltejs/vite-plugin-svelte": "^3.1.0",
"svelte": "^4.2.17",
"@sveltejs/vite-plugin-svelte": "^4.0.0-next.3",
"svelte": "5.0.0-next.183",
"svelte-check": "^3.7.1",
"typescript": "5.3.3",
"vite": "^5.2.11"
Expand Down
4 changes: 2 additions & 2 deletions examples/svelte/optimistic-updates-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"devDependencies": {
"@sveltejs/adapter-auto": "^3.2.0",
"@sveltejs/kit": "^2.5.9",
"@sveltejs/vite-plugin-svelte": "^3.1.0",
"svelte": "^4.2.17",
"@sveltejs/vite-plugin-svelte": "^4.0.0-next.3",
"svelte": "5.0.0-next.183",
"svelte-check": "^3.7.1",
"typescript": "5.3.3",
"vite": "^5.2.11"
Expand Down
4 changes: 2 additions & 2 deletions examples/svelte/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"devDependencies": {
"@sveltejs/adapter-auto": "^3.2.0",
"@sveltejs/kit": "^2.5.9",
"@sveltejs/vite-plugin-svelte": "^3.1.0",
"svelte": "^4.2.17",
"@sveltejs/vite-plugin-svelte": "^4.0.0-next.3",
"svelte": "5.0.0-next.183",
"svelte-check": "^3.7.1",
"typescript": "5.3.3",
"vite": "^5.2.11"
Expand Down
4 changes: 2 additions & 2 deletions examples/svelte/simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"@tanstack/svelte-query-devtools": "^5.51.1"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^3.1.0",
"@sveltejs/vite-plugin-svelte": "^4.0.0-next.3",
"@tsconfig/svelte": "^5.0.4",
"svelte": "^4.2.17",
"svelte": "5.0.0-next.183",
"svelte-check": "^3.7.1",
"typescript": "5.3.3",
"vite": "^5.2.11"
Expand Down
4 changes: 2 additions & 2 deletions examples/svelte/ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"devDependencies": {
"@sveltejs/adapter-auto": "^3.2.0",
"@sveltejs/kit": "^2.5.9",
"@sveltejs/vite-plugin-svelte": "^3.1.0",
"svelte": "^4.2.17",
"@sveltejs/vite-plugin-svelte": "^4.0.0-next.3",
"svelte": "5.0.0-next.183",
"svelte-check": "^3.7.1",
"typescript": "5.3.3",
"vite": "^5.2.11"
Expand Down
4 changes: 2 additions & 2 deletions examples/svelte/star-wars/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
"devDependencies": {
"@sveltejs/adapter-auto": "^3.2.0",
"@sveltejs/kit": "^2.5.9",
"@sveltejs/vite-plugin-svelte": "^3.1.0",
"@sveltejs/vite-plugin-svelte": "^4.0.0-next.3",
"autoprefixer": "^10.4.19",
"postcss": "^8.4.35",
"svelte": "^4.2.17",
"svelte": "5.0.0-next.183",
"svelte-check": "^3.7.1",
"tailwindcss": "^3.4.3",
"typescript": "5.3.3",
Expand Down
10 changes: 5 additions & 5 deletions examples/svelte/svelte-melt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@
"format": "prettier --write ."
},
"dependencies": {
"@tanstack/query-sync-storage-persister": "workspace:^5.50.1",
"@tanstack/svelte-query": "workspace:*",
"@tanstack/svelte-query-devtools": "workspace:^",
"@tanstack/svelte-query-persist-client": "workspace:^"
"@tanstack/query-sync-storage-persister": "^5.51.1",
"@tanstack/svelte-query": "^5.51.1",
"@tanstack/svelte-query-devtools": "^5.51.1",
"@tanstack/svelte-query-persist-client": "^5.51.1"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^3.2.0",
"@sveltejs/kit": "^2.5.9",
"@sveltejs/vite-plugin-svelte": "^4.0.0-next.3",
"svelte": "5.0.0-next.183",
"svelte-check": "^3.7.1",
"typescript": "5.5.3",
"typescript": "5.3.3",
"vite": "^5.2.11"
}
}
4 changes: 2 additions & 2 deletions integrations/svelte-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"build": "vite build"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^3.1.0",
"@sveltejs/vite-plugin-svelte": "^4.0.0-next.3",
"@tanstack/svelte-query": "workspace:*",
"@tanstack/svelte-query-devtools": "workspace:*",
"svelte": "^4.2.17",
"svelte": "5.0.0-next.183",
"vite": "^5.2.11"
}
}
2 changes: 1 addition & 1 deletion packages/svelte-query-devtools/src/Devtools.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
import { onMount } from 'svelte'
import { DEV } from 'esm-env'
import { onlineManager, useQueryClient } from '@tanstack/svelte-query'
import { TanstackQueryDevtools } from '@tanstack/query-devtools'
import type { QueryClient } from '@tanstack/svelte-query'
import type {
DevToolsErrorType,
DevtoolsButtonPosition,
DevtoolsPosition,
} from '@tanstack/query-devtools'
import { TanstackQueryDevtools } from '@tanstack/query-devtools'
interface DevtoolsOptions {
/**
Expand Down
8 changes: 4 additions & 4 deletions packages/svelte-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
"svelte": "./dist/index.js",
"import": "./dist/index.js"
},
"./package.json": "./package.json",
"./dev": {
"default": "./src/index.ts",
"svelte": "./src/index.ts",
"import": "./src/index.ts"
}
"import": "./src/index.ts",
"default": "./src/index.ts"
},
"./package.json": "./package.json"
},
"sideEffects": false,
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/svelte-query/src/createInfiniteQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function createInfiniteQuery<
): CreateInfiniteQueryResult<TData, TError> {
return createBaseQuery(
options,
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
// eslint-disable-next-line ts/no-unnecessary-type-assertion
InfiniteQueryObserver as typeof QueryObserver,
queryClient,
) as CreateInfiniteQueryResult<TData, TError>
Expand Down
2 changes: 1 addition & 1 deletion packages/svelte-query/src/createMutation.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ export function createMutation<
})
}

// eslint-disable-next-line @typescript-eslint/no-empty-function
// eslint-disable-next-line ts/no-empty-function
function noop() {}
Loading

0 comments on commit 016f9f0

Please sign in to comment.