Skip to content

Commit

Permalink
build: switch to react 19
Browse files Browse the repository at this point in the history
We want to get rid of forwardRef in our codebase.
  • Loading branch information
TrySound committed Sep 5, 2024
1 parent e381a70 commit 71f2ebc
Show file tree
Hide file tree
Showing 22 changed files with 884 additions and 902 deletions.
6 changes: 3 additions & 3 deletions apps/builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@
"nanostores": "^0.9.3",
"pretty-bytes": "^6.1.1",
"prismjs": "^1.29.0",
"react": "18.3.0-canary-14898b6a9-20240318",
"react": "19.0.0-rc-d1afcb43-20240903",
"react-colorful": "^5.6.1",
"react-dom": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "19.0.0-rc-d1afcb43-20240903",
"react-error-boundary": "^4.0.12",
"react-hotkeys-hook": "^4.4.1",
"react-script-hook": "^1.7.2",
Expand Down Expand Up @@ -136,7 +136,7 @@
"@webstudio-is/tsconfig": "workspace:*",
"html-tags": "^4.0.0",
"react-router-dom": "^6.26.0",
"react-test-renderer": "18.3.0-canary-14898b6a9-20240318",
"react-test-renderer": "19.0.0-rc-d1afcb43-20240903",
"type-fest": "^4.24.0",
"typescript": "5.5.2",
"vite": "^5.4.0"
Expand Down
4 changes: 2 additions & 2 deletions fixtures/ssg-netlify-by-project-id/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"@webstudio-is/sdk-components-react": "workspace:*",
"@webstudio-is/sdk-components-react-radix": "workspace:*",
"@webstudio-is/sdk-components-react-remix": "workspace:*",
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318",
"react": "19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903",
"vike": "^0.4.182"
}
}
Binary file not shown.
4 changes: 2 additions & 2 deletions fixtures/ssg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"@webstudio-is/sdk-components-react": "workspace:*",
"@webstudio-is/sdk-components-react-radix": "workspace:*",
"@webstudio-is/sdk-components-react-remix": "workspace:*",
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318",
"react": "19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903",
"vike": "^0.4.182"
}
}
4 changes: 2 additions & 2 deletions fixtures/webstudio-cloudflare-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
"@webstudio-is/sdk-components-react-radix": "workspace:*",
"@webstudio-is/sdk-components-react-remix": "workspace:*",
"isbot": "^5.1.17",
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318",
"react": "19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903",
"webstudio": "workspace:*",
"worktop": "0.8.0-next.18",
"zod": "^3.22.4"
Expand Down
4 changes: 2 additions & 2 deletions fixtures/webstudio-custom-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"@webstudio-is/sdk-components-react-radix": "workspace:*",
"@webstudio-is/sdk-components-react-remix": "workspace:*",
"isbot": "^5.1.17",
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318",
"react": "19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903",
"web-vitals": "^3.5.2"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions fixtures/webstudio-remix-netlify-edge-functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"@webstudio-is/sdk-components-react-radix": "workspace:*",
"@webstudio-is/sdk-components-react-remix": "workspace:*",
"isbot": "^5.1.17",
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318"
"react": "19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903"
},
"private": true,
"sideEffects": false,
Expand Down
4 changes: 2 additions & 2 deletions fixtures/webstudio-remix-netlify-functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"@webstudio-is/sdk-components-react-radix": "workspace:*",
"@webstudio-is/sdk-components-react-remix": "workspace:*",
"isbot": "^5.1.17",
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318"
"react": "19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903"
},
"private": true,
"sideEffects": false,
Expand Down
4 changes: 2 additions & 2 deletions fixtures/webstudio-remix-vercel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"@webstudio-is/sdk-components-react-radix": "workspace:*",
"@webstudio-is/sdk-components-react-remix": "workspace:*",
"isbot": "^5.1.17",
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318"
"react": "19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903"
},
"devDependencies": {
"@remix-run/dev": "2.11.0",
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
"jest": "^29.7.0",
"nano-staged": "^0.8.0",
"prettier": "3.3.3",
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318",
"react": "19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903",
"simple-git-hooks": "^2.11.1",
"storybook": "^8.2.8",
"tsx": "^4.17.0",
Expand Down Expand Up @@ -81,8 +81,8 @@
"overrides": {
"@types/react": "^18.2.70",
"@types/react-dom": "^18.2.25",
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318"
"react": "19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903"
},
"patchedDependencies": {
"@stitches/[email protected]": "patches/@[email protected]",
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
"@vitejs/plugin-react": "^4.3.1",
"@webstudio-is/jest-config": "workspace:*",
"@webstudio-is/tsconfig": "workspace:*",
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318",
"react": "19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903",
"ts-expect": "^1.3.0",
"typescript": "5.5.2",
"vike": "^0.4.182",
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/templates/defaults/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"@webstudio-is/image": "0.175.0",
"@webstudio-is/sdk": "0.175.0",
"isbot": "^5.1.17",
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318"
"react": "19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903"
},
"devDependencies": {
"@remix-run/dev": "2.11.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/templates/ssg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"@webstudio-is/sdk-components-react": "0.175.0",
"@webstudio-is/image": "0.175.0",
"@webstudio-is/sdk": "0.175.0",
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318",
"react": "19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903",
"vike": "^0.4.182"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/css-engine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"@types/react-dom": "^18.2.25",
"@webstudio-is/jest-config": "workspace:*",
"@webstudio-is/tsconfig": "workspace:*",
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318",
"react": "19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903",
"typescript": "5.5.2"
},
"exports": {
Expand Down
8 changes: 4 additions & 4 deletions packages/design-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
"@webstudio-is/image": "workspace:*",
"@webstudio-is/jest-config": "workspace:*",
"@webstudio-is/tsconfig": "workspace:*",
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318",
"react": "19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903",
"typescript": "5.5.2",
"zod": "^3.22.4"
},
"peerDependencies": {
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318"
"react": "19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903"
},
"dependencies": {
"@floating-ui/dom": "^1.6.5",
Expand Down
8 changes: 4 additions & 4 deletions packages/icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
"@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",
"react": "19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903",
"svgo": "^3.0.2",
"typescript": "5.5.2"
},
"peerDependencies": {
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318"
"react": "19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903"
},
"exports": {
".": {
Expand Down
9 changes: 4 additions & 5 deletions packages/image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"dts": "tsc --project tsconfig.dts.json"
},
"dependencies": {
"react": "18.3.0-canary-14898b6a9-20240318",
"warn-once": "^0.1.1"
},
"devDependencies": {
Expand All @@ -21,13 +20,13 @@
"@types/react-dom": "^18.2.25",
"@webstudio-is/jest-config": "workspace:*",
"@webstudio-is/tsconfig": "workspace:*",
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318",
"react": "19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903",
"typescript": "5.5.2"
},
"peerDependencies": {
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318"
"react": "19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903"
},
"exports": {
"webstudio": "./src/index.ts",
Expand Down
8 changes: 4 additions & 4 deletions packages/react-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
"@types/react-dom": "^18.2.25",
"@webstudio-is/jest-config": "workspace:*",
"@webstudio-is/tsconfig": "workspace:*",
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318",
"react": "19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903",
"strip-indent": "^4.0.0",
"type-fest": "^4.24.0",
"typescript": "5.5.2",
"zod": "^3.22.4"
},
"peerDependencies": {
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318",
"react": "19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903",
"zod": "^3.19.1"
},
"dependencies": {
Expand Down
8 changes: 4 additions & 4 deletions packages/sdk-components-react-radix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
"typecheck": "tsc"
},
"peerDependencies": {
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318"
"react": "19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903"
},
"dependencies": {
"@radix-ui/react-accordion": "^1.2.0",
Expand Down Expand Up @@ -73,8 +73,8 @@
"@webstudio-is/sdk-cli": "workspace:^",
"@webstudio-is/sdk-components-react": "workspace:*",
"@webstudio-is/tsconfig": "workspace:*",
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318",
"react": "19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903",
"tailwindcss": "^3.3.3",
"typescript": "^5.5.2"
}
Expand Down
8 changes: 4 additions & 4 deletions packages/sdk-components-react-remix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
},
"peerDependencies": {
"@remix-run/react": "^2.9.2",
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318"
"react": "19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903"
},
"dependencies": {
"@webstudio-is/icons": "workspace:*",
Expand All @@ -53,8 +53,8 @@
"@types/react-dom": "^18.2.25",
"@webstudio-is/generate-arg-types": "workspace:*",
"@webstudio-is/tsconfig": "workspace:*",
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318",
"react": "19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903",
"typescript": "5.5.2"
}
}
8 changes: 4 additions & 4 deletions packages/sdk-components-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
"typecheck": "tsc"
},
"peerDependencies": {
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318"
"react": "19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903"
},
"dependencies": {
"@react-aria/utils": "^3.21.0",
Expand All @@ -63,8 +63,8 @@
"@webstudio-is/jest-config": "workspace:*",
"@webstudio-is/tsconfig": "workspace:*",
"jest-environment-jsdom": "^29.7.0",
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318",
"react": "19.0.0-rc-d1afcb43-20240903",
"react-dom": "19.0.0-rc-d1afcb43-20240903",
"typescript": "5.5.2"
}
}
Loading

0 comments on commit 71f2ebc

Please sign in to comment.