Skip to content

Commit

Permalink
ci: Add tests for TS 4.7, 4.8, 4.9 (#7618)
Browse files Browse the repository at this point in the history
* ci: Add tests for TS 4.7, 4.8, 4.9

* Capitalise
  • Loading branch information
lachlancollins authored Jun 25, 2024
1 parent 8253a80 commit 15e42ba
Show file tree
Hide file tree
Showing 47 changed files with 142 additions and 49 deletions.
2 changes: 1 addition & 1 deletion examples/react/algolia/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"skipLibCheck": true,

/* Bundler mode */
"moduleResolution": "bundler",
"moduleResolution": "Bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
Expand Down
2 changes: 1 addition & 1 deletion examples/react/basic-typescript/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"skipLibCheck": true,

/* Bundler mode */
"moduleResolution": "bundler",
"moduleResolution": "Bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
Expand Down
2 changes: 1 addition & 1 deletion examples/react/nextjs-app-prefetching/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
Expand Down
2 changes: 1 addition & 1 deletion examples/react/react-router/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"skipLibCheck": true,

/* Bundler mode */
"moduleResolution": "bundler",
"moduleResolution": "Bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
Expand Down
2 changes: 1 addition & 1 deletion examples/react/shadow-dom/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"skipLibCheck": true,

/* Bundler mode */
"moduleResolution": "bundler",
"moduleResolution": "Bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
Expand Down
2 changes: 1 addition & 1 deletion examples/react/shadow-dom/tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"composite": true,
"skipLibCheck": true,
"module": "ESNext",
"moduleResolution": "bundler",
"moduleResolution": "Bundler",
"allowSyntheticDefaultImports": true,
"strict": true
},
Expand Down
2 changes: 1 addition & 1 deletion examples/solid/basic-graphql-request/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"skipLibCheck": true,

/* Bundler mode */
"moduleResolution": "bundler",
"moduleResolution": "Bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
Expand Down
2 changes: 1 addition & 1 deletion examples/solid/basic-typescript/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"skipLibCheck": true,

/* Bundler mode */
"moduleResolution": "bundler",
"moduleResolution": "Bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
Expand Down
2 changes: 1 addition & 1 deletion examples/solid/default-query-function/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"skipLibCheck": true,

/* Bundler mode */
"moduleResolution": "bundler",
"moduleResolution": "Bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
Expand Down
2 changes: 1 addition & 1 deletion examples/solid/simple/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"skipLibCheck": true,

/* Bundler mode */
"moduleResolution": "bundler",
"moduleResolution": "Bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
Expand Down
2 changes: 1 addition & 1 deletion integrations/react-next-15/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
Expand Down
2 changes: 1 addition & 1 deletion integrations/react-next/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
Expand Down
2 changes: 1 addition & 1 deletion integrations/vue-vite/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"skipLibCheck": true,

/* Bundler mode */
"moduleResolution": "bundler",
"moduleResolution": "Bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
Expand Down
2 changes: 1 addition & 1 deletion integrations/vue-vite/tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"composite": true,
"skipLibCheck": true,
"module": "ESNext",
"moduleResolution": "bundler",
"moduleResolution": "Bundler",
"allowSyntheticDefaultImports": true
},
"include": ["vite.config.ts"]
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@
"solid-js": "^1.8.17",
"tsup": "^8.0.2",
"typescript": "5.3.3",
"typescript47": "npm:typescript@4.7",
"typescript48": "npm:typescript@4.8",
"typescript49": "npm:typescript@4.9",
"typescript50": "npm:typescript@5.0",
"typescript51": "npm:typescript@5.1",
"typescript52": "npm:typescript@5.2",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"extends": "./node_modules/ng-packagr/lib/ts/conf/tsconfig.ngc.json",
"compilerOptions": {
"moduleResolution": "bundler",
"allowJs": true,
"module": "ESNext",
"moduleDetection": "force",
"module": "ESNext"
"moduleResolution": "Bundler"
},
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
Expand Down
13 changes: 6 additions & 7 deletions packages/angular-query-devtools-experimental/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"declarationMap": true,
"useDefineForClassFields": false,
"target": "es2022",
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noFallthroughCasesInSwitch": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"module": "esnext"
"moduleResolution": "Bundler",
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noFallthroughCasesInSwitch": true,
"useDefineForClassFields": false,
"target": "ES2022"
},
"include": ["src", ".eslintrc.cjs", "vite.config.ts"]
}
4 changes: 2 additions & 2 deletions packages/angular-query-experimental/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"extends": "./node_modules/ng-packagr/lib/ts/conf/tsconfig.ngc.json",
"compilerOptions": {
"moduleResolution": "bundler",
"allowJs": true,
"module": "ESNext",
"moduleDetection": "force",
"module": "ESNext"
"moduleResolution": "Bundler"
},
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
Expand Down
13 changes: 6 additions & 7 deletions packages/angular-query-experimental/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"declarationMap": true,
"useDefineForClassFields": false,
"target": "es2022",
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noFallthroughCasesInSwitch": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"module": "ES2022",
"moduleResolution": "Bundler",
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noFallthroughCasesInSwitch": true,
"useDefineForClassFields": false,
"target": "ES2022",
"types": ["vitest/globals"]
},
"include": ["src", ".eslintrc.cjs", "vite.config.ts"]
Expand Down
3 changes: 3 additions & 0 deletions packages/eslint-plugin-query/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"moduleResolution": "Bundler"
},
"include": ["src", ".eslintrc.cjs", "vite.config.ts"]
}
3 changes: 3 additions & 0 deletions packages/query-async-storage-persister/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"moduleResolution": "Bundler"
},
"include": ["src", ".eslintrc.cjs", "tsup.config.js", "vite.config.ts"]
}
3 changes: 3 additions & 0 deletions packages/query-broadcast-client-experimental/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"moduleResolution": "Bundler"
},
"include": ["src", ".eslintrc.cjs", "tsup.config.js"]
}
3 changes: 3 additions & 0 deletions packages/query-codemods/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"moduleResolution": "Bundler"
},
"include": ["src", ".eslintrc.cjs", "vite.config.ts"]
}
3 changes: 3 additions & 0 deletions packages/query-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
"clean": "rimraf ./build && rimraf ./coverage",
"test:eslint": "eslint --ext .ts,.tsx ./src",
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
"test:types:ts47": "node ../../node_modules/typescript47/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts48": "node ../../node_modules/typescript48/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts49": "node ../../node_modules/typescript49/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js -p tsconfig.legacy.json",
Expand Down
3 changes: 3 additions & 0 deletions packages/query-core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"moduleResolution": "Bundler"
},
"include": ["src", ".eslintrc.cjs", "tsup.config.js", "vite.config.ts"]
}
3 changes: 0 additions & 3 deletions packages/query-core/tsconfig.legacy.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"jsx": "react-jsx"
},
"include": ["src"],
"exclude": ["src/__tests__"]
}
3 changes: 2 additions & 1 deletion packages/query-devtools/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"jsx": "preserve",
"jsxImportSource": "solid-js"
"jsxImportSource": "solid-js",
"moduleResolution": "Bundler"
},
"include": ["src", ".eslintrc.cjs", "tsup.config.js", "vite.config.ts"]
}
3 changes: 3 additions & 0 deletions packages/query-persist-client-core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"moduleResolution": "Bundler"
},
"include": ["src", ".eslintrc.cjs", "tsup.config.js", "vite.config.ts"]
}
3 changes: 3 additions & 0 deletions packages/query-sync-storage-persister/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"moduleResolution": "Bundler"
},
"include": ["src", ".eslintrc.cjs", "tsup.config.js", "vite.config.ts"]
}
3 changes: 2 additions & 1 deletion packages/react-query-devtools/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"jsx": "react-jsx"
"jsx": "react-jsx",
"moduleResolution": "Bundler"
},
"include": [
"src",
Expand Down
3 changes: 2 additions & 1 deletion packages/react-query-next-experimental/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"jsx": "react-jsx"
"jsx": "react-jsx",
"moduleResolution": "Bundler"
},
"include": ["src", ".eslintrc.cjs", "tsup.config.js", "vite.config.ts"]
}
3 changes: 2 additions & 1 deletion packages/react-query-persist-client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"jsx": "react-jsx"
"jsx": "react-jsx",
"moduleResolution": "Bundler"
},
"include": [
"src",
Expand Down
3 changes: 3 additions & 0 deletions packages/react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
"clean": "rimraf ./build && rimraf ./coverage",
"test:eslint": "eslint --ext .ts,.tsx ./src",
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
"test:types:ts47": "node ../../node_modules/typescript47/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts48": "node ../../node_modules/typescript48/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts49": "node ../../node_modules/typescript49/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js -p tsconfig.legacy.json",
Expand Down
3 changes: 2 additions & 1 deletion packages/react-query/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"jsx": "react-jsx"
"jsx": "react-jsx",
"moduleResolution": "Bundler"
},
"include": [
"src",
Expand Down
3 changes: 2 additions & 1 deletion packages/solid-query-devtools/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"jsx": "preserve",
"jsxImportSource": "solid-js"
"jsxImportSource": "solid-js",
"moduleResolution": "Bundler"
},
"include": ["src", ".eslintrc.cjs", "tsup.config.js", "vite.config.ts"]
}
3 changes: 2 additions & 1 deletion packages/solid-query-persist-client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"jsx": "preserve",
"jsxImportSource": "solid-js"
"jsxImportSource": "solid-js",
"moduleResolution": "Bundler"
},
"include": [
"src",
Expand Down
1 change: 1 addition & 0 deletions packages/solid-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"clean": "rimraf ./build && rimraf ./coverage",
"test:eslint": "eslint --ext .ts,.tsx ./src",
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
"test:types:ts49": "node ../../node_modules/typescript49/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js -p tsconfig.legacy.json",
Expand Down
3 changes: 2 additions & 1 deletion packages/solid-query/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"jsx": "preserve",
"jsxImportSource": "solid-js"
"jsxImportSource": "solid-js",
"moduleResolution": "Bundler"
},
"include": [
"src",
Expand Down
3 changes: 3 additions & 0 deletions packages/svelte-query-devtools/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"moduleResolution": "Bundler"
},
"include": [
"src/**/*.js",
"src/**/*.ts",
Expand Down
3 changes: 3 additions & 0 deletions packages/svelte-query-persist-client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"moduleResolution": "Bundler"
},
"include": [
"src/**/*.js",
"src/**/*.ts",
Expand Down
Loading

0 comments on commit 15e42ba

Please sign in to comment.