From 5644b35a36c13097ca13d7ac9897e6810e87c84a Mon Sep 17 00:00:00 2001 From: Nathaniel Tucker Date: Sat, 30 Nov 2024 22:07:53 +0000 Subject: [PATCH] pkg: Switch to React 19 rc1 (#2584) --- examples/concurrent/package.json | 10 +- examples/linaria/package.json | 8 +- examples/typescript/package.json | 12 +- .../__snapshots__/home.test.tsx.snap | 122 +++++------- .../src/pages/Home/__tests__/home.test.tsx | 7 +- .../__snapshots__/postList.test.tsx.snap | 2 +- .../pages/Posts/__tests__/postList.test.tsx | 7 +- package.json | 10 +- packages/core/package.json | 8 +- packages/core/src/floodSpouts.tsx | 1 + packages/core/src/laySpouts.tsx | 1 + packages/core/src/spouts/antd.server.tsx | 2 +- packages/core/src/spouts/app.server.tsx | 2 + packages/core/src/spouts/app.tsx | 1 + packages/core/src/spouts/types.ts | 1 + .../templates/src/__tests__/home.test.tsx | 20 +- packages/generator-js/src/spa/index.ts | 2 - packages/generator-js/src/testing/index.ts | 4 +- packages/pojo-router/package.json | 4 +- packages/pojo-router/src/Link.tsx | 2 +- packages/router/package.json | 4 +- packages/router/src/AsyncBoundary.tsx | 2 +- yarn.lock | 180 ++++++++++-------- 23 files changed, 211 insertions(+), 201 deletions(-) diff --git a/examples/concurrent/package.json b/examples/concurrent/package.json index a12f1a7e6..dfa33e23c 100644 --- a/examples/concurrent/package.json +++ b/examples/concurrent/package.json @@ -31,14 +31,12 @@ "@types/babel__core": "7.20.5", "@types/eslint": "9.6.1", "@types/jest": "29.5.12", - "@types/react": "18.3.12", - "@types/react-dom": "18.3.1", - "@types/react-test-renderer": "18.3.0", + "@types/react": "npm:types-react@19.0.0-rc.1", + "@types/react-dom": "npm:types-react-dom@19.0.0", "eslint": "9.16.0", "jest": "29.7.0", "prettier": "3.4.1", "react-refresh": "0.14.2", - "react-test-renderer": "18.3.1", "typescript": "5.7.2", "webpack": "5.96.1", "webpack-cli": "5.1.4", @@ -62,8 +60,8 @@ "classnames": "2.5.1", "core-js": "3.39.0", "history": "5.3.0", - "react": "18.3.1", - "react-dom": "18.3.1" + "react": "19.0.0-rc.1", + "react-dom": "19.0.0-rc.1" }, "browserslist": [ "extends @anansi/browserslist-config" diff --git a/examples/linaria/package.json b/examples/linaria/package.json index a8fb16f27..db6b3cce6 100644 --- a/examples/linaria/package.json +++ b/examples/linaria/package.json @@ -26,8 +26,8 @@ "@types/babel__core": "^7.20.0", "@types/eslint": "^9.0.0", "@types/node": "^22.0.0", - "@types/react": "18.3.12", - "@types/react-dom": "18.3.1", + "@types/react": "npm:types-react@19.0.0-rc.1", + "@types/react-dom": "npm:types-react-dom@19.0.0", "@types/react-router-dom": "5.3.3", "babel-loader": "9.2.1", "eslint": "^9.0.0", @@ -45,8 +45,8 @@ "@linaria/react": "6.2.1", "classnames": "2.5.1", "core-js": "3.39.0", - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "19.0.0-rc.1", + "react-dom": "19.0.0-rc.1" }, "browserslist": [ "extends @anansi/browserslist-config" diff --git a/examples/typescript/package.json b/examples/typescript/package.json index c37358ccf..c4761d2da 100644 --- a/examples/typescript/package.json +++ b/examples/typescript/package.json @@ -32,6 +32,8 @@ "@storybook/channels": "8.4.6", "@storybook/preview-api": "8.4.6", "@storybook/react": "8.4.6", + "@testing-library/dom": "^10.4.0", + "@testing-library/react": "^16.0.1", "@types/babel__core": "^7.20.0", "@types/eslint": "^9.0.0", "@types/jest": "29.5.12", @@ -40,13 +42,11 @@ "@types/prop-types": "^15.7.5", "@types/react-router": "5.1.20", "@types/react-router-dom": "5.3.3", - "@types/react-test-renderer": "18.3.0", "eslint": "^9.0.0", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "prettier": "^3.0.0", "react-refresh": "0.14.2", - "react-test-renderer": "18.3.1", "sass-embedded": "^1.77.8", "serve": "14.2.4", "storybook": "8.4.6", @@ -64,16 +64,16 @@ "@data-client/react": "0.14.17", "@data-client/rest": "0.14.17", "@types/node": "22.9.3", - "@types/react": "18.3.12", - "@types/react-dom": "18.3.1", + "@types/react": "npm:types-react@19.0.0-rc.1", + "@types/react-dom": "npm:types-react-dom@19.0.0", "antd": "5.22.2", "classnames": "2.5.1", "core-js": "3.39.0", "history": "^5.3.0", "lodash": "4.17.21", "parse-link-header": "2.0.0", - "react": "18.3.1", - "react-dom": "18.3.1", + "react": "19.0.0-rc.1", + "react-dom": "19.0.0-rc.1", "react-router-dom": "5.3.4" }, "browserslist": [ diff --git a/examples/typescript/src/pages/Home/__tests__/__snapshots__/home.test.tsx.snap b/examples/typescript/src/pages/Home/__tests__/__snapshots__/home.test.tsx.snap index cee894c0d..8a3ba10a7 100644 --- a/examples/typescript/src/pages/Home/__tests__/__snapshots__/home.test.tsx.snap +++ b/examples/typescript/src/pages/Home/__tests__/__snapshots__/home.test.tsx.snap @@ -1,79 +1,61 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders correctly 1`] = ` -
-

- Hello - - -
- [Mocked SVG] -
- World - - True IO - - -
+ +
+

+ Hello + + +
[Mocked SVG]
- -

-

- Ok again - - - /hi/bob/test.txt - - /repos/:owner/:repo/issues/:number - - /2/ -

-

- $text-color: - textColor -

-

- -

- - <html> + World + + True IO + + +
+ [Mocked SVG] +
+
+

+

+ Ok again + + /hi/bob/test.txt /repos/:owner/:repo/issues/:number /2/ +

+

+ $text-color: textColor +

+

+ +

+ + <html> <body><h1>My HTML Works</h1></body> </html> - -
+ + + `; diff --git a/examples/typescript/src/pages/Home/__tests__/home.test.tsx b/examples/typescript/src/pages/Home/__tests__/home.test.tsx index ea3cee21b..4ba9a9f4e 100644 --- a/examples/typescript/src/pages/Home/__tests__/home.test.tsx +++ b/examples/typescript/src/pages/Home/__tests__/home.test.tsx @@ -1,9 +1,10 @@ +import { render, screen } from '@testing-library/react'; import React from 'react'; -import renderer from 'react-test-renderer'; import Home from '../index'; it('renders correctly', () => { - const tree = renderer.create().toJSON(); - expect(tree).toMatchSnapshot(); + const { asFragment } = render(); + + expect(asFragment()).toMatchSnapshot(); }); diff --git a/examples/typescript/src/pages/Posts/__tests__/__snapshots__/postList.test.tsx.snap b/examples/typescript/src/pages/Posts/__tests__/__snapshots__/postList.test.tsx.snap index 39c8813bf..16df7c900 100644 --- a/examples/typescript/src/pages/Posts/__tests__/__snapshots__/postList.test.tsx.snap +++ b/examples/typescript/src/pages/Posts/__tests__/__snapshots__/postList.test.tsx.snap @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`renders 1`] = `null`; +exports[`renders 1`] = ``; diff --git a/examples/typescript/src/pages/Posts/__tests__/postList.test.tsx b/examples/typescript/src/pages/Posts/__tests__/postList.test.tsx index 0f065c41e..a6c8815b7 100644 --- a/examples/typescript/src/pages/Posts/__tests__/postList.test.tsx +++ b/examples/typescript/src/pages/Posts/__tests__/postList.test.tsx @@ -1,8 +1,8 @@ import { DataProvider } from '@data-client/react'; import { FixtureEndpoint, mockInitialState } from '@data-client/test'; +import { render } from '@testing-library/react'; import React, { Suspense } from 'react'; import { MemoryRouter } from 'react-router-dom'; -import renderer from 'react-test-renderer'; import { PostResource, UserResource } from '../../../data/resources'; import PostList from '../index'; @@ -58,6 +58,7 @@ it('renders', () => { ); - const tree = renderer.create(element).toJSON(); - expect(tree).toMatchSnapshot(); + const { asFragment } = render(element); + + expect(asFragment()).toMatchSnapshot(); }); diff --git a/package.json b/package.json index 8e7c8ed86..de8750d1d 100644 --- a/package.json +++ b/package.json @@ -68,15 +68,17 @@ "webpack-dev-server": "5.1.0" }, "resolutions": { + "@types/react": "npm:types-react@19.0.0-rc.1", + "@types/react-dom": "npm:types-react-dom@19.0.0", "normalize-url": "^6" }, "dependencies": { "@lerna-lite/publish": "^3.0.0", "@lerna-lite/version": "^3.0.0", - "@types/react": "18.3.12", - "@types/react-dom": "18.3.1", - "react": "18.3.1", - "react-dom": "18.3.1" + "@types/react": "npm:types-react@19.0.0-rc.1", + "@types/react-dom": "npm:types-react-dom@19.0.0", + "react": "19.0.0-rc.1", + "react-dom": "19.0.0-rc.1" }, "packageManager": "yarn@4.5.3" } diff --git a/packages/core/package.json b/packages/core/package.json index 995753f9a..2c2a0499d 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -71,14 +71,14 @@ "@types/compression": "1.7.5", "@types/express": "^4.17.17", "@types/node": "^22.0.0", - "@types/react": "^18.0.29", - "@types/react-dom": "^18.0.11", + "@types/react": "npm:types-react@19.0.0-rc.1", + "@types/react-dom": "npm:types-react-dom@19.0.0", "@types/source-map-support": "0.5.10", "@types/tmp": "0.2.6", "@types/webpack-hot-middleware": "2.25.9", "@types/webpack-node-externals": "^3", - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "19.0.0-rc.1", + "react-dom": "19.0.0-rc.1" }, "dependencies": { "@anansi/router": "workspace:^", diff --git a/packages/core/src/floodSpouts.tsx b/packages/core/src/floodSpouts.tsx index 35e481ed6..be8bc24c4 100644 --- a/packages/core/src/floodSpouts.tsx +++ b/packages/core/src/floodSpouts.tsx @@ -1,3 +1,4 @@ +import type { JSX } from 'react'; import { hydrateRoot } from 'react-dom/client'; export default async function floodSpouts( diff --git a/packages/core/src/laySpouts.tsx b/packages/core/src/laySpouts.tsx index fbf5cdd92..663f90429 100644 --- a/packages/core/src/laySpouts.tsx +++ b/packages/core/src/laySpouts.tsx @@ -1,4 +1,5 @@ import crypto from 'crypto'; +import type { JSX } from 'react'; import { renderToPipeableStream as reactRender } from 'react-dom/server'; import type { Render } from './scripts/types.js'; diff --git a/packages/core/src/spouts/antd.server.tsx b/packages/core/src/spouts/antd.server.tsx index 79772acf5..498aabaef 100644 --- a/packages/core/src/spouts/antd.server.tsx +++ b/packages/core/src/spouts/antd.server.tsx @@ -1,4 +1,4 @@ -import React from 'react'; +import React, { type JSX } from 'react'; import type { ServerSpout } from './types.js'; diff --git a/packages/core/src/spouts/app.server.tsx b/packages/core/src/spouts/app.server.tsx index 60d2ae358..2cc89e7b1 100644 --- a/packages/core/src/spouts/app.server.tsx +++ b/packages/core/src/spouts/app.server.tsx @@ -1,3 +1,5 @@ +import type { JSX } from 'react'; + import { ServerProps } from './types.js'; const appSpout = diff --git a/packages/core/src/spouts/app.tsx b/packages/core/src/spouts/app.tsx index bea1d3eb3..426257787 100644 --- a/packages/core/src/spouts/app.tsx +++ b/packages/core/src/spouts/app.tsx @@ -1,3 +1,4 @@ +import type { JSX } from 'react'; const appSpout = (app: JSX.Element) =>

>(props: P) => diff --git a/packages/core/src/spouts/types.ts b/packages/core/src/spouts/types.ts index 48c5d47df..2512db750 100644 --- a/packages/core/src/spouts/types.ts +++ b/packages/core/src/spouts/types.ts @@ -2,6 +2,7 @@ import { Route, RouteController } from '@anansi/router'; import { Request, Response } from 'express'; import { History } from 'history'; import { IncomingMessage, ServerResponse } from 'http'; +import type { JSX } from 'react'; import type { StatsCompilation } from 'webpack'; /* Variables from the rendering call */ diff --git a/packages/generator-js/src/anansi-splash/templates/src/__tests__/home.test.tsx b/packages/generator-js/src/anansi-splash/templates/src/__tests__/home.test.tsx index a43d0b4fe..d0ad48c77 100644 --- a/packages/generator-js/src/anansi-splash/templates/src/__tests__/home.test.tsx +++ b/packages/generator-js/src/anansi-splash/templates/src/__tests__/home.test.tsx @@ -1,4 +1,4 @@ -import renderer from 'react-test-renderer'; +import { render } from '@testing-library/react' import { DataProvider, AsyncBoundary } from '@data-client/react'; import { mockInitialState } from '@data-client/test'; @@ -6,14 +6,12 @@ import { TickerFixtures } from '@/resources/Ticker'; import Home from '@/pages/Home'; it('renders correctly', () => { - const tree = renderer - .create( - - - - - , - ) - .toJSON(); - expect(tree).toMatchSnapshot(); + const { asFragment } = render( + + + + + + ); + expect(asFragment()).toMatchSnapshot(); }); diff --git a/packages/generator-js/src/spa/index.ts b/packages/generator-js/src/spa/index.ts index 2eaecdb5b..debaf2f88 100644 --- a/packages/generator-js/src/spa/index.ts +++ b/packages/generator-js/src/spa/index.ts @@ -63,8 +63,6 @@ export default class extends BetterGenerator { '@types/react', '@types/react-dom', '@data-client/test', - '@types/react-test-renderer', - 'react-test-renderer', 'react-refresh', ]), await this.addDependencies([ diff --git a/packages/generator-js/src/testing/index.ts b/packages/generator-js/src/testing/index.ts index 9c68564d2..b0fb0afc0 100644 --- a/packages/generator-js/src/testing/index.ts +++ b/packages/generator-js/src/testing/index.ts @@ -40,8 +40,8 @@ export default class TestingGenerator extends BetterGenerator { '@anansi/jest-preset', 'jest', '@types/jest', - '@types/react-test-renderer', - 'react-test-renderer', + '@testing-library/react', + '@testing-library/dom', 'jest-environment-jsdom', ]), ]); diff --git a/packages/pojo-router/package.json b/packages/pojo-router/package.json index 72eb07531..d4d283c23 100644 --- a/packages/pojo-router/package.json +++ b/packages/pojo-router/package.json @@ -48,8 +48,8 @@ ], "devDependencies": { "@types/node": "^22.0.0", - "@types/react": "^18.0.29", - "react": "^18.2.0" + "@types/react": "npm:types-react@19.0.0-rc.1", + "react": "19.0.0-rc.1" }, "dependencies": { "@babel/runtime": "^7.17.0", diff --git a/packages/pojo-router/src/Link.tsx b/packages/pojo-router/src/Link.tsx index e1fcc7a64..2e90d75a9 100644 --- a/packages/pojo-router/src/Link.tsx +++ b/packages/pojo-router/src/Link.tsx @@ -1,4 +1,4 @@ -import React, { useCallback } from 'react'; +import React, { useCallback, type JSX } from 'react'; import { useRouter } from './hooks.js'; diff --git a/packages/router/package.json b/packages/router/package.json index c0f6939d3..8dc135972 100644 --- a/packages/router/package.json +++ b/packages/router/package.json @@ -40,8 +40,8 @@ ], "devDependencies": { "@types/node": "^22.0.0", - "@types/react": "^18.0.29", - "react": "^18.2.0" + "@types/react": "npm:types-react@19.0.0-rc.1", + "react": "19.0.0-rc.1" }, "dependencies": { "@babel/runtime": "^7.17.0", diff --git a/packages/router/src/AsyncBoundary.tsx b/packages/router/src/AsyncBoundary.tsx index 2ea324717..7d45c49db 100644 --- a/packages/router/src/AsyncBoundary.tsx +++ b/packages/router/src/AsyncBoundary.tsx @@ -1,5 +1,5 @@ import { useLocation } from '@pojo-router/core'; -import React, { memo, Suspense } from 'react'; +import React, { memo, Suspense, type JSX } from 'react'; import ErrorBoundary from './ErrorBoundary.js'; import type { ErrorTypes } from './types.js'; diff --git a/yarn.lock b/yarn.lock index 84d34a85e..15f71b0f1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -124,8 +124,8 @@ __metadata: "@types/compression": "npm:1.7.5" "@types/express": "npm:^4.17.17" "@types/node": "npm:^22.0.0" - "@types/react": "npm:^18.0.29" - "@types/react-dom": "npm:^18.0.11" + "@types/react": "npm:types-react@19.0.0-rc.1" + "@types/react-dom": "npm:types-react-dom@19.0.0" "@types/source-map-support": "npm:0.5.10" "@types/tmp": "npm:0.2.6" "@types/webpack-hot-middleware": "npm:2.25.9" @@ -140,8 +140,8 @@ __metadata: http-proxy-middleware: "npm:^3.0.3" memfs: "npm:^3.5.3" ora: "npm:^6.3.1" - react: "npm:^18.2.0" - react-dom: "npm:^18.2.0" + react: "npm:19.0.0-rc.1" + react-dom: "npm:19.0.0-rc.1" source-map-support: "npm:^0.5.21" tmp: "npm:^0.2.3" unionfs: "npm:^4.5.4" @@ -280,10 +280,10 @@ __metadata: "@babel/runtime": "npm:^7.17.0" "@pojo-router/core": "workspace:^" "@types/node": "npm:^22.0.0" - "@types/react": "npm:^18.0.29" + "@types/react": "npm:types-react@19.0.0-rc.1" history: "npm:^5.3.0" nano-memoize: "npm:^3.0.16" - react: "npm:^18.2.0" + react: "npm:19.0.0-rc.1" peerDependencies: "@types/react": "*" react: ^18.0.0 || ^19.0.0-0 @@ -4684,10 +4684,10 @@ __metadata: dependencies: "@babel/runtime": "npm:^7.17.0" "@types/node": "npm:^22.0.0" - "@types/react": "npm:^18.0.29" + "@types/react": "npm:types-react@19.0.0-rc.1" history: "npm:5.3.0" path-to-regexp: "npm:^6.3.0" - react: "npm:^18.2.0" + react: "npm:19.0.0-rc.1" peerDependencies: "@types/react": "*" react: ^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0-0 @@ -5663,6 +5663,22 @@ __metadata: languageName: node linkType: hard +"@testing-library/dom@npm:^10.4.0": + version: 10.4.0 + resolution: "@testing-library/dom@npm:10.4.0" + dependencies: + "@babel/code-frame": "npm:^7.10.4" + "@babel/runtime": "npm:^7.12.5" + "@types/aria-query": "npm:^5.0.1" + aria-query: "npm:5.3.0" + chalk: "npm:^4.1.0" + dom-accessibility-api: "npm:^0.5.9" + lz-string: "npm:^1.5.0" + pretty-format: "npm:^27.0.2" + checksum: 10c0/0352487720ecd433400671e773df0b84b8268fb3fe8e527cdfd7c11b1365b398b4e0eddba6e7e0c85e8d615f48257753283fccec41f6b986fd6c85f15eb5f84f + languageName: node + linkType: hard + "@testing-library/react-native@npm:^12.0.1": version: 12.0.1 resolution: "@testing-library/react-native@npm:12.0.1" @@ -5700,6 +5716,26 @@ __metadata: languageName: node linkType: hard +"@testing-library/react@npm:^16.0.1": + version: 16.0.1 + resolution: "@testing-library/react@npm:16.0.1" + dependencies: + "@babel/runtime": "npm:^7.12.5" + peerDependencies: + "@testing-library/dom": ^10.0.0 + "@types/react": ^18.0.0 + "@types/react-dom": ^18.0.0 + react: ^18.0.0 + react-dom: ^18.0.0 + peerDependenciesMeta: + "@types/react": + optional: true + "@types/react-dom": + optional: true + checksum: 10c0/67d05dec5ad5a2e6f92b6a3234af785435c7bb62bdbf12f3bfc89c9bca0c871a189e88c4ba023ed4cea504704c87c6ac7e86e24a3962df6c521ae89b62f48ff7 + languageName: node + linkType: hard + "@tootallnate/once@npm:1": version: 1.1.2 resolution: "@tootallnate/once@npm:1.1.2" @@ -6260,7 +6296,7 @@ __metadata: languageName: node linkType: hard -"@types/prop-types@npm:*, @types/prop-types@npm:^15.7.5": +"@types/prop-types@npm:^15.7.5": version: 15.7.13 resolution: "@types/prop-types@npm:15.7.13" checksum: 10c0/1b20fc67281902c6743379960247bc161f3f0406ffc0df8e7058745a85ea1538612109db0406290512947f9632fe9e10e7337bf0ce6338a91d6c948df16a7c61 @@ -6281,12 +6317,12 @@ __metadata: languageName: node linkType: hard -"@types/react-dom@npm:18.3.1, @types/react-dom@npm:^18.0.11": - version: 18.3.1 - resolution: "@types/react-dom@npm:18.3.1" +"@types/react-dom@npm:types-react-dom@19.0.0": + version: 19.0.0 + resolution: "types-react-dom@npm:19.0.0" dependencies: "@types/react": "npm:*" - checksum: 10c0/8b416551c60bb6bd8ec10e198c957910cfb271bc3922463040b0d57cf4739cdcd24b13224f8d68f10318926e1ec3cd69af0af79f0291b599a992f8c80d47f1eb + checksum: 10c0/5ea60f0a0a00a8f8b14a5dd0bf39c349bd2f1e9a1b4ce52777fdfc2d2fe03f791f7714b0ef3ab19d38be8ce52633ebd39d226d8f102344efe07d02e9931b62a3 languageName: node linkType: hard @@ -6311,22 +6347,12 @@ __metadata: languageName: node linkType: hard -"@types/react-test-renderer@npm:18.3.0": - version: 18.3.0 - resolution: "@types/react-test-renderer@npm:18.3.0" +"@types/react@npm:types-react@19.0.0-rc.1": + version: 19.0.0-rc.1 + resolution: "types-react@npm:19.0.0-rc.1" dependencies: - "@types/react": "npm:*" - checksum: 10c0/3c9748be52e8e659e7adf91dea6939486463264e6f633bf21c4cb116de18af7bef0595568a1e588160420b2f65289473075dda1cb417c2875df8cf7a09f5d913 - languageName: node - linkType: hard - -"@types/react@npm:*, @types/react@npm:18.3.12, @types/react@npm:^18.0.29": - version: 18.3.12 - resolution: "@types/react@npm:18.3.12" - dependencies: - "@types/prop-types": "npm:*" csstype: "npm:^3.0.2" - checksum: 10c0/8bae8d9a41619804561574792e29112b413044eb0d53746dde2b9720c1f9a59f71c895bbd7987cd8ce9500b00786e53bc032dced38cddf42910458e145675290 + checksum: 10c0/408cd9f3f960e806d510f7a9a3569f92a7f1cff3c57f5465fab4c139f0020c88dc7a08e6f357d2a116bd2c76e641851ce84527cb765f36824a6e818e0d477bbc languageName: node linkType: hard @@ -11860,16 +11886,16 @@ __metadata: "@types/babel__core": "npm:^7.20.0" "@types/eslint": "npm:^9.0.0" "@types/node": "npm:^22.0.0" - "@types/react": "npm:18.3.12" - "@types/react-dom": "npm:18.3.1" + "@types/react": "npm:types-react@19.0.0-rc.1" + "@types/react-dom": "npm:types-react-dom@19.0.0" "@types/react-router-dom": "npm:5.3.3" babel-loader: "npm:9.2.1" classnames: "npm:2.5.1" core-js: "npm:3.39.0" eslint: "npm:^9.0.0" prettier: "npm:^3.0.0" - react: "npm:^18.2.0" - react-dom: "npm:^18.2.0" + react: "npm:19.0.0-rc.1" + react-dom: "npm:19.0.0-rc.1" react-refresh: "npm:0.14.2" serve: "npm:14.2.4" webpack: "npm:5.96.1" @@ -11909,9 +11935,8 @@ __metadata: "@types/eslint": "npm:9.6.1" "@types/jest": "npm:29.5.12" "@types/node": "npm:22.9.3" - "@types/react": "npm:18.3.12" - "@types/react-dom": "npm:18.3.1" - "@types/react-test-renderer": "npm:18.3.0" + "@types/react": "npm:types-react@19.0.0-rc.1" + "@types/react-dom": "npm:types-react-dom@19.0.0" antd: "npm:5.22.2" classnames: "npm:2.5.1" core-js: "npm:3.39.0" @@ -11919,10 +11944,9 @@ __metadata: history: "npm:5.3.0" jest: "npm:29.7.0" prettier: "npm:3.4.1" - react: "npm:18.3.1" - react-dom: "npm:18.3.1" + react: "npm:19.0.0-rc.1" + react-dom: "npm:19.0.0-rc.1" react-refresh: "npm:0.14.2" - react-test-renderer: "npm:18.3.1" typescript: "npm:5.7.2" webpack: "npm:5.96.1" webpack-cli: "npm:5.1.4" @@ -11955,6 +11979,8 @@ __metadata: "@storybook/channels": "npm:8.4.6" "@storybook/preview-api": "npm:8.4.6" "@storybook/react": "npm:8.4.6" + "@testing-library/dom": "npm:^10.4.0" + "@testing-library/react": "npm:^16.0.1" "@types/babel__core": "npm:^7.20.0" "@types/eslint": "npm:^9.0.0" "@types/jest": "npm:29.5.12" @@ -11962,11 +11988,10 @@ __metadata: "@types/node": "npm:22.9.3" "@types/parse-link-header": "npm:2.0.3" "@types/prop-types": "npm:^15.7.5" - "@types/react": "npm:18.3.12" - "@types/react-dom": "npm:18.3.1" + "@types/react": "npm:types-react@19.0.0-rc.1" + "@types/react-dom": "npm:types-react-dom@19.0.0" "@types/react-router": "npm:5.1.20" "@types/react-router-dom": "npm:5.3.3" - "@types/react-test-renderer": "npm:18.3.0" antd: "npm:5.22.2" classnames: "npm:2.5.1" core-js: "npm:3.39.0" @@ -11977,11 +12002,10 @@ __metadata: lodash: "npm:4.17.21" parse-link-header: "npm:2.0.0" prettier: "npm:^3.0.0" - react: "npm:18.3.1" - react-dom: "npm:18.3.1" + react: "npm:19.0.0-rc.1" + react-dom: "npm:19.0.0-rc.1" react-refresh: "npm:0.14.2" react-router-dom: "npm:5.3.4" - react-test-renderer: "npm:18.3.1" sass-embedded: "npm:^1.77.8" serve: "npm:14.2.4" storybook: "npm:8.4.6" @@ -21372,7 +21396,18 @@ __metadata: languageName: node linkType: hard -"react-dom@npm:18.3.1, react-dom@npm:^16.8.0 || ^17.0.0 || ^18.0.0, react-dom@npm:^18.2.0": +"react-dom@npm:19.0.0-rc.1": + version: 19.0.0-rc.1 + resolution: "react-dom@npm:19.0.0-rc.1" + dependencies: + scheduler: "npm:0.25.0-rc.1" + peerDependencies: + react: 19.0.0-rc.1 + checksum: 10c0/26fba423f41c8b3c7a47278ea490146506333175028e111e49eb39310110b6bda956cc772c77412abc8a7f28244eea80ebade15ec5b4382d79e2ac1b39bd2d0c + languageName: node + linkType: hard + +"react-dom@npm:^16.8.0 || ^17.0.0 || ^18.0.0": version: 18.3.1 resolution: "react-dom@npm:18.3.1" dependencies: @@ -21407,13 +21442,6 @@ __metadata: languageName: node linkType: hard -"react-is@npm:^16.12.0 || ^17.0.0 || ^18.0.0, react-is@npm:^18.0.0, react-is@npm:^18.2.0, react-is@npm:^18.3.1": - version: 18.3.1 - resolution: "react-is@npm:18.3.1" - checksum: 10c0/f2f1e60010c683479e74c63f96b09fb41603527cd131a9959e2aee1e5a8b0caf270b365e5ca77d4a6b18aae659b60a86150bb3979073528877029b35aecd2072 - languageName: node - linkType: hard - "react-is@npm:^16.13.1, react-is@npm:^16.6.0, react-is@npm:^16.7.0": version: 16.13.1 resolution: "react-is@npm:16.13.1" @@ -21428,6 +21456,13 @@ __metadata: languageName: node linkType: hard +"react-is@npm:^18.0.0, react-is@npm:^18.2.0": + version: 18.3.1 + resolution: "react-is@npm:18.3.1" + checksum: 10c0/f2f1e60010c683479e74c63f96b09fb41603527cd131a9959e2aee1e5a8b0caf270b365e5ca77d4a6b18aae659b60a86150bb3979073528877029b35aecd2072 + languageName: node + linkType: hard + "react-refresh@npm:0.14.2": version: 0.14.2 resolution: "react-refresh@npm:0.14.2" @@ -21471,18 +21506,6 @@ __metadata: languageName: node linkType: hard -"react-shallow-renderer@npm:^16.15.0": - version: 16.15.0 - resolution: "react-shallow-renderer@npm:16.15.0" - dependencies: - object-assign: "npm:^4.1.1" - react-is: "npm:^16.12.0 || ^17.0.0 || ^18.0.0" - peerDependencies: - react: ^16.0.0 || ^17.0.0 || ^18.0.0 - checksum: 10c0/c194d741792e86043a4ae272f7353c1cb9412bc649945c4220c6a101a6ea5410cceb3d65d5a4d750f11a24f7426e8eec7977e8a4e3ad5d3ee235ca2b18166fa8 - languageName: node - linkType: hard - "react-sortable-hoc@npm:^2.0.0": version: 2.0.0 resolution: "react-sortable-hoc@npm:2.0.0" @@ -21498,20 +21521,14 @@ __metadata: languageName: node linkType: hard -"react-test-renderer@npm:18.3.1": - version: 18.3.1 - resolution: "react-test-renderer@npm:18.3.1" - dependencies: - react-is: "npm:^18.3.1" - react-shallow-renderer: "npm:^16.15.0" - scheduler: "npm:^0.23.2" - peerDependencies: - react: ^18.3.1 - checksum: 10c0/c633558ef9af33bc68f0c4dbb5163a004c4fb9eade7bd0a7cfc0355fb367f36bd9d96533c90b7e85a146be6c525113a15f58683d269e0177ad77e2b04d4fe51c +"react@npm:19.0.0-rc.1": + version: 19.0.0-rc.1 + resolution: "react@npm:19.0.0-rc.1" + checksum: 10c0/8f453ee0ff05ec4b11701cf4240fb0039217e73f576d2a9b871a91e34ff17d66e16294ebd0fc72c237918a3a997cc42f0328c860bc0a2cfa18e6a41f49a1c871 languageName: node linkType: hard -"react@npm:18.3.1, react@npm:^16.8.0 || ^17.0.0 || ^18.0.0, react@npm:^18.2.0": +"react@npm:^16.8.0 || ^17.0.0 || ^18.0.0": version: 18.3.1 resolution: "react@npm:18.3.1" dependencies: @@ -22301,8 +22318,8 @@ __metadata: "@lerna-lite/publish": "npm:^3.0.0" "@lerna-lite/version": "npm:^3.0.0" "@types/node": "npm:^22.0.0" - "@types/react": "npm:18.3.12" - "@types/react-dom": "npm:18.3.1" + "@types/react": "npm:types-react@19.0.0-rc.1" + "@types/react-dom": "npm:types-react-dom@19.0.0" babel-loader: "npm:9.2.1" babel-plugin-module-resolver: "npm:5.0.2" babel-plugin-root-import: "npm:6.6.0" @@ -22314,8 +22331,8 @@ __metadata: jest: "npm:^29.5.0" lint-staged: "npm:15.2.10" prettier: "npm:3.4.1" - react: "npm:18.3.1" - react-dom: "npm:18.3.1" + react: "npm:19.0.0-rc.1" + react-dom: "npm:19.0.0-rc.1" rimraf: "npm:^6.0.0" start-server-and-test: "npm:^2.0.0" typescript: "npm:5.7.2" @@ -22692,6 +22709,13 @@ __metadata: languageName: node linkType: hard +"scheduler@npm:0.25.0-rc.1": + version: 0.25.0-rc.1 + resolution: "scheduler@npm:0.25.0-rc.1" + checksum: 10c0/dd4549eeb54cf3019c04257c622c4bbee12ef99dc547c4a96e1d5da8985ae44534111275ebcc4fea84b0d1299197b69071f912928adc5da4cab1e8168d09a44d + languageName: node + linkType: hard + "scheduler@npm:^0.23.2": version: 0.23.2 resolution: "scheduler@npm:0.23.2"