Skip to content

Commit

Permalink
build: upgrade to typescript 5.6 (#4345)
Browse files Browse the repository at this point in the history
Only some apis added to types.
  • Loading branch information
TrySound authored Oct 28, 2024
1 parent ac03a10 commit d619454
Show file tree
Hide file tree
Showing 43 changed files with 417 additions and 408 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/migrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ jobs:
- name: pnpm instal
run: pnpm install --ignore-scripts

- name: generate prisma
run: pnpm --filter=@webstudio-is/prisma-client generate

- name: execute migration
run: pnpm --filter '@webstudio-is/prisma-client' run migrations migrate
env:
Expand Down Expand Up @@ -102,6 +105,9 @@ jobs:
- name: pnpm instal
run: pnpm install --ignore-scripts

- name: generate prisma
run: pnpm --filter=@webstudio-is/prisma-client generate

- name: get pending
id: pending
run: |
Expand Down
6 changes: 3 additions & 3 deletions apps/builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,16 @@
"@testing-library/react-hooks": "^8.0.1",
"@types/cookie": "^0.6.0",
"@types/debug": "^4.1.12",
"@types/dom-navigation": "^1.0.3",
"@types/dom-navigation": "^1.0.4",
"@types/react": "^18.2.70",
"@types/react-dom": "^18.2.25",
"@webstudio-is/jest-config": "workspace:*",
"@webstudio-is/tsconfig": "workspace:*",
"html-tags": "^4.0.0",
"react-router-dom": "^6.26.2",
"react-test-renderer": "18.3.0-canary-14898b6a9-20240318",
"type-fest": "^4.24.0",
"typescript": "5.5.2",
"type-fest": "^4.26.1",
"typescript": "5.6.3",
"vite": "^5.4.8"
},
"sideEffects": false,
Expand Down
2 changes: 1 addition & 1 deletion fixtures/ssg-netlify-by-project-id/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@types/react-dom": "^18.2.25",
"@vitejs/plugin-react": "^4.3.2",
"prettier": "3.3.3",
"typescript": "5.5.2",
"typescript": "5.6.3",
"vite": "^5.4.8",
"webstudio": "workspace:*"
},
Expand Down
2 changes: 1 addition & 1 deletion fixtures/ssg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@types/react-dom": "^18.2.25",
"@vitejs/plugin-react": "^4.3.2",
"prettier": "3.3.3",
"typescript": "5.5.2",
"typescript": "5.6.3",
"vite": "^5.4.8",
"webstudio": "workspace:*"
},
Expand Down
2 changes: 1 addition & 1 deletion fixtures/webstudio-cloudflare-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@remix-run/dev": "2.12.1",
"@types/react": "^18.2.70",
"@types/react-dom": "^18.2.25",
"typescript": "5.5.2",
"typescript": "5.6.3",
"vite": "^5.4.8",
"wrangler": "^3.63.2"
}
Expand Down
2 changes: 1 addition & 1 deletion fixtures/webstudio-custom-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@remix-run/dev": "2.12.1",
"@types/react": "^18.2.70",
"@types/react-dom": "^18.2.25",
"typescript": "5.5.2",
"typescript": "5.6.3",
"vite": "^5.4.8",
"webstudio": "workspace:*"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@remix-run/dev": "2.12.1",
"@types/react": "^18.2.70",
"@types/react-dom": "^18.2.25",
"typescript": "5.5.2",
"typescript": "5.6.3",
"vite": "^5.4.8",
"webstudio": "workspace:*"
},
Expand Down
2 changes: 1 addition & 1 deletion fixtures/webstudio-remix-netlify-functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@remix-run/dev": "2.12.1",
"@types/react": "^18.2.70",
"@types/react-dom": "^18.2.25",
"typescript": "5.5.2",
"typescript": "5.6.3",
"vite": "^5.4.8",
"webstudio": "workspace:*"
},
Expand Down
2 changes: 1 addition & 1 deletion fixtures/webstudio-remix-vercel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@remix-run/dev": "2.12.1",
"@types/react": "^18.2.70",
"@types/react-dom": "^18.2.25",
"typescript": "5.5.2",
"typescript": "5.6.3",
"vite": "^5.4.8",
"webstudio": "workspace:*"
},
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@storybook/react-vite": "^8.3.5",
"@types/css-tree": "^2.3.1",
"@types/eslint__js": "^8.42.3",
"@types/node": "^22.6.1",
"@types/node": "^22.8.1",
"@types/react": "^18.2.70",
"esbuild": "^0.24.0",
"eslint": "^9.13.0",
Expand All @@ -50,7 +50,7 @@
"simple-git-hooks": "^2.11.1",
"storybook": "^8.3.5",
"tsx": "^4.19.1",
"typescript": "5.5.2",
"typescript": "5.6.3",
"typescript-eslint": "^8.11.0",
"vite": "^5.4.8"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/ai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"@webstudio-is/jest-config": "workspace:^",
"@webstudio-is/tsconfig": "workspace:^",
"fast-glob": "^3.2.12",
"type-fest": "^4.24.0",
"typescript": "5.5.2"
"type-fest": "^4.26.1",
"typescript": "5.6.3"
},
"exports": {
".": {
Expand Down
4 changes: 2 additions & 2 deletions packages/asset-uploader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
"devDependencies": {
"@jest/globals": "^29.7.0",
"@types/fontkit": "^2.0.7",
"@types/node": "^22.6.1",
"@types/node": "^22.8.1",
"@webstudio-is/jest-config": "workspace:*",
"@webstudio-is/tsconfig": "workspace:*",
"typescript": "5.5.2",
"typescript": "5.6.3",
"zod": "^3.22.4"
},
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/authorization-token/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"devDependencies": {
"@webstudio-is/tsconfig": "workspace:*",
"typescript": "5.5.2"
"typescript": "5.6.3"
},
"exports": {
".": {
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,17 @@
"@remix-run/node": "^2.12.1",
"@remix-run/react": "^2.12.1",
"@remix-run/server-runtime": "^2.12.1",
"@types/node": "^22.6.1",
"@types/node": "^22.8.1",
"@types/react": "^18.2.70",
"@types/react-dom": "^18.2.25",
"@types/yargs": "^17.0.32",
"@types/yargs": "^17.0.33",
"@vitejs/plugin-react": "^4.3.2",
"@webstudio-is/jest-config": "workspace:*",
"@webstudio-is/tsconfig": "workspace:*",
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318",
"ts-expect": "^1.3.0",
"typescript": "5.5.2",
"typescript": "5.6.3",
"vike": "^0.4.182",
"vite": "^5.4.8",
"wrangler": "^3.63.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/templates/defaults/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@remix-run/dev": "2.12.1",
"@types/react": "^18.2.70",
"@types/react-dom": "^18.2.25",
"typescript": "5.5.2",
"typescript": "5.6.3",
"vite": "^5.4.8"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/templates/ssg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@types/react": "^18.2.70",
"@types/react-dom": "^18.2.25",
"@vitejs/plugin-react": "^4.3.2",
"typescript": "5.5.2",
"typescript": "5.6.3",
"vite": "^5.4.8"
},
"engines": {
Expand Down
3 changes: 2 additions & 1 deletion packages/cli/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"types": ["vite/client", "@webstudio-is/react-sdk/placeholder"],
"module": "esnext",
"allowJs": true,
"checkJs": true
"checkJs": true,
"noUncheckedSideEffectImports": false
}
}
6 changes: 3 additions & 3 deletions packages/css-data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
"devDependencies": {
"@jest/globals": "^29.7.0",
"@types/css-tree": "^2.3.1",
"@types/node": "^22.6.1",
"@types/node": "^22.8.1",
"@webstudio-is/jest-config": "workspace:*",
"@webstudio-is/react-sdk": "workspace:*",
"@webstudio-is/tsconfig": "workspace:*",
"html-tags": "^4.0.0",
"mdn-data": "2.8.0",
"type-fest": "^4.24.0",
"typescript": "5.5.2",
"type-fest": "^4.26.1",
"typescript": "5.6.3",
"zod": "^3.22.4"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/css-engine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@webstudio-is/tsconfig": "workspace:*",
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318",
"typescript": "5.5.2"
"typescript": "5.6.3"
},
"exports": {
"webstudio": "./src/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"dependencies": {
"@webstudio-is/project": "workspace:*",
"@webstudio-is/trpc-interface": "workspace:*",
"type-fest": "^4.24.0",
"type-fest": "^4.26.1",
"zod": "^3.22.4"
},
"devDependencies": {
"@webstudio-is/tsconfig": "workspace:*",
"typescript": "5.5.2"
"typescript": "5.6.3"
},
"exports": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion packages/design-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@webstudio-is/tsconfig": "workspace:*",
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318",
"typescript": "5.5.2",
"typescript": "5.6.3",
"zod": "^3.22.4"
},
"peerDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ const requestPointerLock = async (
if (shouldUsePointerLock) {
// based on https://developer.mozilla.org/en-US/docs/Web/API/Element/requestPointerLock is async
try {
// @ts-expect-error - unadjustedMovement is a chromium only feature, fixes random movementX|Y jumps on windows
// unadjustedMovement is a chromium only feature, fixes random movementX|Y jumps on windows
await targetNode.requestPointerLock({ unadjustedMovement: true });
} catch {
// Some platforms may not support unadjusted movement.
Expand Down
8 changes: 4 additions & 4 deletions packages/domain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@
"typecheck": "tsc"
},
"dependencies": {
"@webstudio-is/postrest": "workspace:*",
"@webstudio-is/project": "workspace:*",
"@webstudio-is/project-build": "workspace:*",
"@webstudio-is/trpc-interface": "workspace:*",
"@webstudio-is/sdk": "workspace:*",
"@webstudio-is/postrest": "workspace:*",
"@webstudio-is/trpc-interface": "workspace:*",
"nanoid": "^5.0.1",
"type-fest": "^4.24.0",
"type-fest": "^4.26.1",
"zod": "^3.22.4"
},
"devDependencies": {
"@webstudio-is/tsconfig": "workspace:*",
"typescript": "5.5.2"
"typescript": "5.6.3"
},
"exports": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion packages/error-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dts": "tsc --project tsconfig.dts.json"
},
"devDependencies": {
"@types/node": "^22.6.1",
"@types/node": "^22.8.1",
"@webstudio-is/tsconfig": "workspace:*"
},
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/fonts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@jest/globals": "^29.7.0",
"@webstudio-is/jest-config": "workspace:*",
"@webstudio-is/tsconfig": "workspace:*",
"typescript": "5.5.2",
"typescript": "5.6.3",
"zod": "^3.22.4"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/generate-arg-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"devDependencies": {
"@webstudio-is/tsconfig": "workspace:*",
"typescript": "5.5.2"
"typescript": "5.6.3"
},
"bin": {
"generate-arg-types": "./src/cli.ts"
Expand Down
2 changes: 1 addition & 1 deletion packages/http-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@jest/globals": "^29.7.0",
"@webstudio-is/jest-config": "workspace:*",
"@webstudio-is/tsconfig": "workspace:*",
"typescript": "5.5.2"
"typescript": "5.6.3"
},
"exports": {
"webstudio": "./src/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
},
"devDependencies": {
"@svgo/jsx": "^0.4.2",
"@types/node": "^22.6.1",
"@types/node": "^22.8.1",
"@types/react": "^18.2.70",
"@types/react-dom": "^18.2.25",
"@webstudio-is/tsconfig": "workspace:*",
"change-case": "^5.4.4",
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318",
"svgo": "^3.0.2",
"typescript": "5.5.2"
"typescript": "5.6.3"
},
"peerDependencies": {
"react": "18.3.0-canary-14898b6a9-20240318",
Expand Down
2 changes: 1 addition & 1 deletion packages/image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@webstudio-is/tsconfig": "workspace:*",
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318",
"typescript": "5.5.2"
"typescript": "5.6.3"
},
"peerDependencies": {
"react": "18.3.0-canary-14898b6a9-20240318",
Expand Down
4 changes: 2 additions & 2 deletions packages/jsx-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"@webstudio-is/jest-config": "workspace:^",
"@webstudio-is/tsconfig": "workspace:^",
"fast-glob": "^3.2.12",
"type-fest": "^4.24.0",
"typescript": "5.5.2"
"type-fest": "^4.26.1",
"typescript": "5.6.3"
},
"exports": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion packages/postgrest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
},
"devDependencies": {
"@webstudio-is/tsconfig": "workspace:*",
"typescript": "5.5.2"
"typescript": "5.6.3"
}
}
4 changes: 2 additions & 2 deletions packages/prisma-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
},
"devDependencies": {
"@prisma/client": "^5.12.1",
"@types/node": "^22.6.1",
"@types/node": "^22.8.1",
"@webstudio-is/tsconfig": "workspace:*",
"prisma": "^5.12.1",
"typescript": "5.5.2",
"typescript": "5.6.3",
"zod": "^3.22.4"
},
"exports": {
Expand Down
4 changes: 2 additions & 2 deletions packages/project-build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@jest/globals": "^29.7.0",
"@webstudio-is/jest-config": "workspace:*",
"@webstudio-is/tsconfig": "workspace:*",
"type-fest": "^4.24.0",
"typescript": "5.5.2"
"type-fest": "^4.26.1",
"typescript": "5.6.3"
}
}
Loading

0 comments on commit d619454

Please sign in to comment.