Skip to content

Commit 4299144

Browse files
committed
Revert React version for 10.24
1 parent 5e0aef0 commit 4299144

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
@@ -30,8 +30,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
3030

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

33-
- 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`.
34-
3533
- **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.
3634

3735
- 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
@@ -49,8 +49,8 @@
4949
"@testing-library/react": "^16.3.2",
5050
"@testing-library/react-native": "^13.3.3",
5151
"@testing-library/user-event": "^14.6.1",
52-
"@types/react": "^19.0.0",
53-
"@types/react-dom": "^19.0.0",
52+
"@types/react": "^18.2.0",
53+
"@types/react-dom": "^18.2.0",
5454
"@types/semver": "^7.7.1",
5555
"@types/testing-library__jest-dom": "^5.14.5",
5656
"@typescript-eslint/eslint-plugin": "^8.59.0",
@@ -83,7 +83,7 @@
8383
"postcss-import": "^14.0.2",
8484
"postcss-url": "^10.1.0",
8585
"prettier": "^2.5.1",
86-
"react-test-renderer": "^19.2.5",
86+
"react-test-renderer": "^18.3.1",
8787
"recursive-copy": "^2.0.11",
8888
"resolve": "^1.22.12",
8989
"rollup": "^4.60.2",
@@ -109,9 +109,9 @@
109109
"@types/jest": "^30.0.0",
110110
"@types/node": "^16.18.126",
111111
"@types/xml2js": "^0.4.5",
112-
"react": "^19.2.5",
113-
"react-dom": "^19.2.5",
114-
"react-native": "~0.78.2"
112+
"react": "^18.2.0",
113+
"react-dom": "^18.2.0",
114+
"react-native": "~0.77.3"
115115
},
116116
"keywords": [
117117
"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)