From 700887d1ae3a804e654486734f119c3044052c4a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 09:17:34 +0000 Subject: [PATCH] chore(deps): update react monorepo to v19 --- packages/components-react/package.json | 12 +- packages/documentation/package.json | 6 +- packages/nextjs-integration/package.json | 8 +- pnpm-lock.yaml | 145 ++++++++++++++++------- 4 files changed, 117 insertions(+), 54 deletions(-) diff --git a/packages/components-react/package.json b/packages/components-react/package.json index 8d78c35624..485a035e4d 100644 --- a/packages/components-react/package.json +++ b/packages/components-react/package.json @@ -33,8 +33,8 @@ }, "devDependencies": { "@types/node": "20.14.14", - "@types/react": "18.3.3", - "@types/react-dom": "18.3.0", + "@types/react": "19.0.1", + "@types/react-dom": "19.0.1", "@typescript-eslint/eslint-plugin": "7.18.0", "@typescript-eslint/parser": "7.18.0", "eslint": "8.57.0", @@ -43,14 +43,14 @@ "eslint-plugin-n": "16.6.2", "eslint-plugin-promise": "6.6.0", "eslint-plugin-react": "7.35.0", - "react": "18.3.1", - "react-dom": "18.3.1", + "react": "19.0.0", + "react-dom": "19.0.0", "rimraf": "6.0.1", "typescript": "*" }, "peerDependencies": { - "react": "18.3.1", - "react-dom": "18.3.1" + "react": "19.0.0", + "react-dom": "19.0.0" }, "keywords": [ "components", diff --git a/packages/documentation/package.json b/packages/documentation/package.json index 5cf18b11dd..4a0bfe97fe 100644 --- a/packages/documentation/package.json +++ b/packages/documentation/package.json @@ -58,7 +58,7 @@ "@swisspost/design-system-intranet-header": "workspace:9.0.0-next.7", "@types/css-modules": "1.0.5", "@types/mdx": "2.0.13", - "@types/react": "18.3.3", + "@types/react": "19.0.1", "@types/react-syntax-highlighter": "15.5.13", "@typescript-eslint/eslint-plugin": "7.18.0", "@typescript-eslint/parser": "7.18.0", @@ -71,8 +71,8 @@ "lit": "3.1.4", "lit-html": "3.1.4", "prettier": "2.8.8", - "react": "18.3.1", - "react-dom": "18.3.1", + "react": "19.0.0", + "react-dom": "19.0.0", "react-syntax-highlighter": "15.5.0", "rehype-autolink-headings": "7.1.0", "rehype-slug": "6.0.0", diff --git a/packages/nextjs-integration/package.json b/packages/nextjs-integration/package.json index 1a20a1d79b..4a42f31c30 100644 --- a/packages/nextjs-integration/package.json +++ b/packages/nextjs-integration/package.json @@ -13,13 +13,13 @@ "@swisspost/design-system-styles": "workspace:9.0.0-next.7", "@swisspost/internet-header": "workspace:2.0.0-next.7", "next": "15.0.1", - "react": "^18", - "react-dom": "^18" + "react": "^19.0.0", + "react-dom": "^19.0.0" }, "devDependencies": { "@types/node": "20.14.14", - "@types/react": "^18", - "@types/react-dom": "^18", + "@types/react": "^19.0.0", + "@types/react-dom": "^19.0.0", "autoprefixer": "^10.0.1", "eslint": "^8", "eslint-config-next": "14.2.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d4d7f41d09..ece0843afc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -255,11 +255,11 @@ importers: specifier: 20.14.14 version: 20.14.14 '@types/react': - specifier: 18.3.3 - version: 18.3.3 + specifier: 19.0.1 + version: 19.0.1 '@types/react-dom': - specifier: 18.3.0 - version: 18.3.0 + specifier: 19.0.1 + version: 19.0.1 '@typescript-eslint/eslint-plugin': specifier: 7.18.0 version: 7.18.0(@typescript-eslint/parser@7.18.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4) @@ -285,11 +285,11 @@ importers: specifier: 7.35.0 version: 7.35.0(eslint@8.57.0) react: - specifier: 18.3.1 - version: 18.3.1 + specifier: 19.0.0 + version: 19.0.0 react-dom: - specifier: 18.3.1 - version: 18.3.1(react@18.3.1) + specifier: 19.0.0 + version: 19.0.0(react@19.0.0) rimraf: specifier: 6.0.1 version: 6.0.1 @@ -344,10 +344,10 @@ importers: version: 8.3.6(storybook@8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2))) '@storybook/addon-links': specifier: 8.3.6 - version: 8.3.6(react@18.3.1)(storybook@8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2))) + version: 8.3.6(react@19.0.0)(storybook@8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2))) '@storybook/blocks': specifier: 8.3.6 - version: 8.3.6(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(storybook@8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2))) + version: 8.3.6(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(storybook@8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2))) '@storybook/components': specifier: 8.3.6 version: 8.3.6(storybook@8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2))) @@ -385,8 +385,8 @@ importers: specifier: 2.0.13 version: 2.0.13 '@types/react': - specifier: 18.3.3 - version: 18.3.3 + specifier: 19.0.1 + version: 19.0.1 '@types/react-syntax-highlighter': specifier: 15.5.13 version: 15.5.13 @@ -424,14 +424,14 @@ importers: specifier: 2.8.8 version: 2.8.8 react: - specifier: 18.3.1 - version: 18.3.1 + specifier: 19.0.0 + version: 19.0.0 react-dom: - specifier: 18.3.1 - version: 18.3.1(react@18.3.1) + specifier: 19.0.0 + version: 19.0.0(react@19.0.0) react-syntax-highlighter: specifier: 15.5.0 - version: 15.5.0(react@18.3.1) + version: 15.5.0(react@19.0.0) rehype-autolink-headings: specifier: 7.1.0 version: 7.1.0 @@ -832,23 +832,23 @@ importers: version: link:../internet-header next: specifier: 15.0.1 - version: 15.0.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.78.0) + version: 15.0.1(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.78.0) react: - specifier: ^18 - version: 18.3.1 + specifier: ^19.0.0 + version: 19.0.0 react-dom: - specifier: ^18 - version: 18.3.1(react@18.3.1) + specifier: ^19.0.0 + version: 19.0.0(react@19.0.0) devDependencies: '@types/node': specifier: 20.14.14 version: 20.14.14 '@types/react': - specifier: ^18 - version: 18.3.3 + specifier: ^19.0.0 + version: 19.0.1 '@types/react-dom': - specifier: ^18 - version: 18.3.0 + specifier: ^19.0.0 + version: 19.0.1 autoprefixer: specifier: ^10.0.1 version: 10.4.19(postcss@8.4.40) @@ -3993,8 +3993,8 @@ packages: '@types/range-parser@1.2.4': resolution: {integrity: sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==} - '@types/react-dom@18.3.0': - resolution: {integrity: sha512-EhwApuTmMBmXuFOikhQLIBUn6uFg81SwLMOAUgodJF14SOBOCMdU04gDoYi0WOJJHD144TL32z4yDqCW3dnkQg==} + '@types/react-dom@19.0.1': + resolution: {integrity: sha512-hljHij7MpWPKF6u5vojuyfV0YA4YURsQG7KT6SzV0Zs2BXAtgdTxG6A229Ub/xiWV4w/7JL8fi6aAyjshH4meA==} '@types/react-syntax-highlighter@15.5.13': resolution: {integrity: sha512-uLGJ87j6Sz8UaBAooU0T6lWJ0dBmjZgN1PZTrj05TNql2/XpC6+4HhMT5syIdFUUt+FASfCeLLv4kBygNU+8qA==} @@ -4002,6 +4002,9 @@ packages: '@types/react@18.3.3': resolution: {integrity: sha512-hti/R0pS0q1/xx+TsI73XIqk26eBsISZ2R0wUijXIngRK9R/e7Xw/cXVxQK7R5JjW+SV4zGcn5hXjudkN/pLIw==} + '@types/react@19.0.1': + resolution: {integrity: sha512-YW6614BDhqbpR5KtUYzTA+zlA7nayzJRA9ljz9CQoxthR0sDisYZLuvSMsil36t4EH/uAt8T52Xb4sVw17G+SQ==} + '@types/resolve@1.20.2': resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==} @@ -9298,6 +9301,11 @@ packages: peerDependencies: react: ^18.3.1 + react-dom@19.0.0: + resolution: {integrity: sha512-4GV5sHFG0e/0AD4X+ySy6UJd3jVl1iNsNHdpad0qhABJ11twS3TTBnseqsKurKcsNqCEFeGL3uLpVChpIO3QfQ==} + peerDependencies: + react: ^19.0.0 + react-is@16.13.1: resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==} @@ -9313,6 +9321,10 @@ packages: resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==} engines: {node: '>=0.10.0'} + react@19.0.0: + resolution: {integrity: sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==} + engines: {node: '>=0.10.0'} + read-cache@1.0.0: resolution: {integrity: sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==} @@ -9912,6 +9924,9 @@ packages: scheduler@0.23.2: resolution: {integrity: sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==} + scheduler@0.25.0: + resolution: {integrity: sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA==} + schema-utils@3.3.0: resolution: {integrity: sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==} engines: {node: '>= 10.13.0'} @@ -14650,14 +14665,14 @@ snapshots: '@storybook/global': 5.0.0 storybook: 8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2)) - '@storybook/addon-links@8.3.6(react@18.3.1)(storybook@8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2)))': + '@storybook/addon-links@8.3.6(react@19.0.0)(storybook@8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2)))': dependencies: '@storybook/csf': 0.1.11 '@storybook/global': 5.0.0 storybook: 8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2)) ts-dedent: 2.2.0 optionalDependencies: - react: 18.3.1 + react: 19.0.0 '@storybook/addon-measure@8.3.6(storybook@8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2)))': dependencies: @@ -14701,6 +14716,27 @@ snapshots: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + '@storybook/blocks@8.3.6(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(storybook@8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2)))': + dependencies: + '@storybook/csf': 0.1.11 + '@storybook/global': 5.0.0 + '@storybook/icons': 1.2.12(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + '@types/lodash': 4.14.194 + color-convert: 2.0.1 + dequal: 2.0.3 + lodash: 4.17.21 + markdown-to-jsx: 7.4.7(react@19.0.0) + memoizerific: 1.11.3 + polished: 4.2.2 + react-colorful: 5.6.1(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + storybook: 8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2)) + telejson: 7.2.0 + ts-dedent: 2.2.0 + util-deprecate: 1.0.2 + optionalDependencies: + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) + '@storybook/builder-vite@8.3.6(storybook@8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2)))(typescript@5.5.4)(vite@5.4.8(@types/node@22.7.9)(less@4.2.0)(sass-embedded@1.78.0)(sass@1.78.0)(terser@5.31.6))': dependencies: '@storybook/csf-plugin': 8.3.6(storybook@8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2))) @@ -14789,6 +14825,11 @@ snapshots: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + '@storybook/icons@1.2.12(react-dom@19.0.0(react@19.0.0))(react@19.0.0)': + dependencies: + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) + '@storybook/manager-api@8.3.6(storybook@8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2)))': dependencies: storybook: 8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2)) @@ -15073,19 +15114,23 @@ snapshots: '@types/range-parser@1.2.4': {} - '@types/react-dom@18.3.0': + '@types/react-dom@19.0.1': dependencies: - '@types/react': 18.3.3 + '@types/react': 19.0.1 '@types/react-syntax-highlighter@15.5.13': dependencies: - '@types/react': 18.3.3 + '@types/react': 19.0.1 '@types/react@18.3.3': dependencies: '@types/prop-types': 15.7.12 csstype: 3.1.3 + '@types/react@19.0.1': + dependencies: + csstype: 3.1.3 + '@types/resolve@1.20.2': {} '@types/retry@0.12.2': {} @@ -20030,6 +20075,10 @@ snapshots: dependencies: react: 18.3.1 + markdown-to-jsx@7.4.7(react@19.0.0): + dependencies: + react: 19.0.0 + mathml-tag-names@2.1.3: {} mdast-util-from-markdown@0.8.5: @@ -20547,7 +20596,7 @@ snapshots: next-tick@1.1.0: {} - next@15.0.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.78.0): + next@15.0.1(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.78.0): dependencies: '@next/env': 15.0.1 '@swc/counter': 0.1.3 @@ -20555,9 +20604,9 @@ snapshots: busboy: 1.6.0 caniuse-lite: 1.0.30001669 postcss: 8.4.31 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - styled-jsx: 5.1.6(react@18.3.1) + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) + styled-jsx: 5.1.6(react@19.0.0) optionalDependencies: '@next/swc-darwin-arm64': 15.0.1 '@next/swc-darwin-x64': 15.0.1 @@ -21701,29 +21750,41 @@ snapshots: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + react-colorful@5.6.1(react-dom@19.0.0(react@19.0.0))(react@19.0.0): + dependencies: + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) + react-dom@18.3.1(react@18.3.1): dependencies: loose-envify: 1.4.0 react: 18.3.1 scheduler: 0.23.2 + react-dom@19.0.0(react@19.0.0): + dependencies: + react: 19.0.0 + scheduler: 0.25.0 + react-is@16.13.1: {} react-is@18.2.0: {} - react-syntax-highlighter@15.5.0(react@18.3.1): + react-syntax-highlighter@15.5.0(react@19.0.0): dependencies: '@babel/runtime': 7.21.5 highlight.js: 10.7.3 lowlight: 1.20.0 prismjs: 1.29.0 - react: 18.3.1 + react: 19.0.0 refractor: 3.6.0 react@18.3.1: dependencies: loose-envify: 1.4.0 + react@19.0.0: {} + read-cache@1.0.0: dependencies: pify: 2.3.0 @@ -22362,6 +22423,8 @@ snapshots: dependencies: loose-envify: 1.4.0 + scheduler@0.25.0: {} + schema-utils@3.3.0: dependencies: '@types/json-schema': 7.0.15 @@ -22957,10 +23020,10 @@ snapshots: style-inject@0.3.0: {} - styled-jsx@5.1.6(react@18.3.1): + styled-jsx@5.1.6(react@19.0.0): dependencies: client-only: 0.0.1 - react: 18.3.1 + react: 19.0.0 stylehacks@5.1.1(postcss@8.4.45): dependencies: