Skip to content

Commit

Permalink
upgrade to react 19 (#234)
Browse files Browse the repository at this point in the history
Co-authored-by: Luca Schneider <[email protected]>
  • Loading branch information
jantimon and Mad-Kat authored Dec 10, 2024
1 parent f204637 commit d77a860
Show file tree
Hide file tree
Showing 10 changed files with 1,054 additions and 1,265 deletions.
5 changes: 5 additions & 0 deletions .changeset/purple-crabs-occur.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"next-yak": major
---

Upgrade to React 19
8 changes: 4 additions & 4 deletions packages/benchmarks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
"@swc/core": "1.7.42",
"next": "15.0.4",
"next-yak": "workspace:*",
"react": "18.3.1",
"react-dom": "18.3.1",
"react": "19.0.0",
"react-dom": "19.0.0",
"styled-components": "6.1.1",
"yak-swc": "workspace:^"
},
"devDependencies": {
"@codspeed/benchmark.js-plugin": "3.1.0",
"@types/benchmark": "2.1.5",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"@types/react": "19.0.1",
"@types/react-dom": "19.0.1",
"benchmark": "2.1.4",
"tree-kill": "1.2.2",
"tsup": "7.2.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/docs/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ const withMDX = createMDX();
/** @type {import('next').NextConfig} */
const config = {
reactStrictMode: true,
// TODO remove ignoreBuildErrors once docs was upgraded to react 19
typescript: {
ignoreBuildErrors: true,
},
experimental: {
optimizePackageImports: ["shiki", "@shikijs/monaco", "yak-swc"],
// serverComponentsExternalPackages: ["next-yak"],
Expand Down
16 changes: 8 additions & 8 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,26 @@
"@shikijs/monaco": "1.22.2",
"@shikijs/transformers": "1.22.2",
"@swc/core": "1.7.42",
"fumadocs-core": "14.3.1",
"fumadocs-mdx": "11.1.1",
"fumadocs-openapi": "5.5.9",
"fumadocs-core": "14.5.6",
"fumadocs-mdx": "11.1.2",
"fumadocs-openapi": "5.8.1",
"fumadocs-twoslash": "2.0.1",
"fumadocs-ui": "14.3.1",
"fumadocs-ui": "14.5.6",
"next": "15.0.4",
"next-themes": "0.4.3",
"next-yak": "workspace:*",
"raw-loader": "4.0.2",
"react": "18.3.1",
"react-dom": "18.3.1",
"react": "19.0.0",
"react-dom": "19.0.0",
"react-resizable-panels": "2.1.6",
"shiki": "1.22.2",
"yak-swc": "workspace:*"
},
"devDependencies": {
"@types/mdx": "2.0.13",
"@types/node": "22.9.0",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"@types/react": "19.0.1",
"@types/react-dom": "19.0.1",
"@types/webpack": "5.28.5",
"autoprefixer": "^10.4.20",
"postcss": "^8.4.47",
Expand Down
11 changes: 6 additions & 5 deletions packages/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,20 @@
},
"dependencies": {
"@types/node": "20.4.5",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"@types/react": "19.0.1",
"@types/react-dom": "19.0.1",
"next": "15.0.4",
"next-yak": "workspace:*",
"postcss-nested": "^6.2.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"react": "19.0.0",
"react-dom": "19.0.0",
"typescript": "5.5.2",
"yak-swc": "workspace:*"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^14.0.0",
"@testing-library/dom": "10.4.0",
"@testing-library/react": "^16.1.0",
"@types/jest": "^29.5.12",
"@vitejs/plugin-react": "4.3.1",
"jest": "^29.6.2",
Expand Down
12 changes: 5 additions & 7 deletions packages/next-yak/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,15 @@
"@types/webpack": "5.28.5",
"@babel/types": "7.23.0",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^14.0.0",
"@testing-library/react": "^16.1.0",
"@types/jest": "29.5.5",
"@types/node": "20.4.5",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"@types/react-test-renderer": "^18.0.3",
"@types/react": "19.0.1",
"@types/react-dom": "19.0.1",
"fast-glob": "3.3.2",
"jsdom": "^22.1.0",
"jsdom": "^25.0.1",
"next": "15.0.4",
"react": "18.3.1",
"react-test-renderer": "18.3.1",
"react": "19.0.0",
"typescript": "5.5.2",
"vite": "5.3.4",
"vitest": "2.0.4",
Expand Down
Loading

0 comments on commit d77a860

Please sign in to comment.