Skip to content

Commit 21b688e

Browse files
committed
Revert React version for 10.24
1 parent e31424a commit 21b688e

4 files changed

Lines changed: 139 additions & 203 deletions

File tree

packages/pluggable-widgets-tools/CHANGELOG.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
3232

3333
- We updated outdated and vulnerable dependencies. This required major upgrades of several dependencies, including eslint@9, jest@30, and rollup@4.
3434

35-
- We upgraded the Pluggable Widgets Tools to React 19 and React Native 0.78.2. After installation upgrade all dependencies by running `npm run build`.
36-
3735
- **Breaking:** We removed Enzyme testing library and associated dependencies from pluggable-widgets-tools. Tests using Enzyme should be updated to use React Testing Library. See the [migration guide](https://testing-library.com/docs/react-testing-library/migrate-from-enzyme) for more information. The `test:unit:web:enzyme-free` command has been removed; use `test:unit:web` instead.
3836

3937
- We fixed an issue where `require` was not transformed to `import` for the `es` output format which could result in an error when the widget was used in a project with React client enabled.

packages/pluggable-widgets-tools/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
"@testing-library/react": "^16.3.2",
5151
"@testing-library/react-native": "^13.3.3",
5252
"@testing-library/user-event": "^14.6.1",
53-
"@types/react": "^19.0.0",
54-
"@types/react-dom": "^19.0.0",
53+
"@types/react": "^18.2.0",
54+
"@types/react-dom": "^18.2.0",
5555
"@types/semver": "^7.7.1",
5656
"@types/testing-library__jest-dom": "^5.14.5",
5757
"@typescript-eslint/eslint-plugin": "^8.59.0",
@@ -84,7 +84,7 @@
8484
"postcss-import": "^14.0.2",
8585
"postcss-url": "^10.1.4",
8686
"prettier": "^2.5.1",
87-
"react-test-renderer": "^19.2.5",
87+
"react-test-renderer": "^18.3.1",
8888
"recursive-copy": "^2.0.11",
8989
"resolve": "^1.22.12",
9090
"rollup": "^4.60.2",
@@ -110,9 +110,9 @@
110110
"@types/jest": "^30.0.0",
111111
"@types/node": "^16.18.126",
112112
"@types/xml2js": "^0.4.5",
113-
"react": "^19.2.5",
114-
"react-dom": "^19.2.5",
115-
"react-native": "~0.78.2"
113+
"react": "^18.2.0",
114+
"react-dom": "^18.2.0",
115+
"react-native": "~0.77.3"
116116
},
117117
"keywords": [
118118
"typings",

packages/pluggable-widgets-tools/utils/migration.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const dependencies = [
2727
{ name: "@types/react-native", version: "remove", check: CheckType.MINOR },
2828
{ name: "@types/react-native-push-notification", version: "8.1.1", check: CheckType.MAJOR_MINOR },
2929
{ name: "@types/react-dom", version: "remove", check: CheckType.MAJOR },
30-
{ name: "@types/react-test-renderer", version: "19.0.0", check: CheckType.MAJOR },
30+
{ name: "@types/react-test-renderer", version: "18.0.0", check: CheckType.MAJOR },
3131
{ name: "@types/enzyme-adapter-react-16", version: "remove", check: CheckType.MAJOR },
3232
{ name: "@react-native-firebase/app", version: "17.3.0", check: CheckType.MAJOR_MINOR },
3333
{ name: "@react-native-firebase/messaging", version: "17.3.0", check: CheckType.MAJOR_MINOR },
@@ -50,9 +50,9 @@ const dependencies = [
5050
{ name: "react-native-webview", version: "11.26.1", check: CheckType.MAJOR_MINOR }
5151
];
5252

53-
const reactPackage = { version: "19.0.0", check: CheckType.MAJOR_MINOR };
54-
const reactDomPackage = { version: "19.0.0", check: CheckType.MAJOR_MINOR };
55-
const reactNativePackage = { version: "0.78.2", check: CheckType.MINOR };
53+
const reactPackage = { version: "18.2.0", check: CheckType.MAJOR_MINOR };
54+
const reactDomPackage = { version: "18.2.0", check: CheckType.MAJOR_MINOR };
55+
const reactNativePackage = { version: "0.72.7", check: CheckType.MINOR };
5656

5757
const resolutionsOverrides = [
5858
{ name: "react", ...reactPackage },

0 commit comments

Comments
 (0)