|
| 1 | +TEMPORARY - REVERT BEFORE MERGE (see TEMP-REVERT-BEFORE-MERGE.md in the repo root). |
| 2 | + |
| 3 | +This patch targets the unreleased MxKevinBeqo/widgets-tools#moo/MOO-2499-rn-088 branch, used only to test |
| 4 | +the React Native 0.88 upgrade. Once @mendix/pluggable-widgets-tools is released, restore this patch to its |
| 5 | +pre-branch content and remove the package.json hunk, which only widens engines.node from ^22.18.0 so the |
| 6 | +tools run on the Node 24 this repo uses. |
| 7 | + |
1 | 8 | diff --git a/configs/rollup-plugin-collect-dependencies.mjs b/configs/rollup-plugin-collect-dependencies.mjs |
2 | 9 | index d45c737..9246919 100644 |
3 | 10 | --- a/configs/rollup-plugin-collect-dependencies.mjs |
@@ -58,65 +65,31 @@ index d45c737..9246919 100644 |
58 | 65 | }); |
59 | 66 | } |
60 | 67 |
|
61 | | -diff --git a/configs/rollup.config.native.mjs b/configs/rollup.config.native.mjs |
62 | | -index 62c5c82..927c8e7 100644 |
63 | | ---- a/configs/rollup.config.native.mjs |
64 | | -+++ b/configs/rollup.config.native.mjs |
65 | | -@@ -52,9 +52,9 @@ const nativeExternal = [ |
66 | | - /^react($|\/)/, |
67 | | - /^react-native-gesture-handler($|\/)/, |
68 | | - /^react-native-reanimated($|\/)/, |
69 | | -- /^react-native-fast-image($|\/)/, |
70 | | -+ /^react-native-worklets($|\/)/, |
71 | | - /^react-native-svg($|\/)/, |
72 | | -- /^react-native-vector-icons($|\/)/, |
73 | | -+ /^@react-native-vector-icons\/common($|\/)/, |
74 | | - /^@?react-navigation($|\/)/, |
75 | | - /^react-native-safe-area-context($|\/)/, |
76 | | - /^@d11\/react-native-fast-image($|\/)/ |
77 | | -@@ -222,7 +222,7 @@ export default async args => { |
78 | | - }) |
79 | | - : null, |
80 | | - image(), |
81 | | -- production ? terser({ mangle: false }) : null, |
82 | | -+ production ? terser({ mangle: false, compress: { directives: false } }) : null, |
83 | | - // We need to create .mpk and copy results to test project after bundling is finished. |
84 | | - // In case of a regular build is it is on `writeBundle` of the last config we define |
85 | | - // (since rollup processes configs sequentially). But in watch mode rollup re-bundles only |
86 | | -diff --git a/configs/tsconfig.base.json b/configs/tsconfig.base.json |
87 | | -index 62627fd..0b8f2d5 100644 |
88 | | ---- a/configs/tsconfig.base.json |
89 | | -+++ b/configs/tsconfig.base.json |
90 | | -@@ -6,7 +6,7 @@ |
91 | | - "target": "es6", |
92 | | - "lib": ["esnext", "dom"], |
93 | | - "types": ["jest", "node"], |
94 | | -- "moduleResolution": "node", |
95 | | -+ "moduleResolution": "bundler", |
96 | | - "declaration": false, |
97 | | - "noLib": false, |
98 | | - "forceConsistentCasingInFileNames": true, |
| 68 | +diff --git a/package.json b/package.json |
| 69 | +index f7a38e3..8f2d448 100644 |
| 70 | +--- a/package.json |
| 71 | ++++ b/package.json |
| 72 | +@@ -3,7 +3,7 @@ |
| 73 | + "version": "11.15.0", |
| 74 | + "description": "Mendix Pluggable Widgets Tools", |
| 75 | + "engines": { |
| 76 | +- "node": "^22.18.0" |
| 77 | ++ "node": ">=22.18.0" |
| 78 | + }, |
| 79 | + "main": "dist/index.js", |
| 80 | + "types": "dist/index.d.ts", |
99 | 81 | diff --git a/test-config/jest.native.config.js b/test-config/jest.native.config.js |
100 | | -index 9424f7f..088669c 100644 |
| 82 | +index 7d697f9..088669c 100644 |
101 | 83 | --- a/test-config/jest.native.config.js |
102 | 84 | +++ b/test-config/jest.native.config.js |
103 | | -@@ -3,7 +3,7 @@ const { join } = require("path"); |
104 | | - const projectDir = process.cwd(); |
105 | | - |
106 | | - module.exports = { |
107 | | -- preset: "react-native", |
108 | | -+ preset: "@react-native/jest-preset", |
109 | | - testRunner: "jest-jasmine2", |
110 | | - clearMocks: true, |
111 | | - haste: { |
112 | | -@@ -16,12 +16,13 @@ module.exports = { |
| 85 | +@@ -16,13 +16,13 @@ module.exports = { |
113 | 86 | ...(hasDependency("react-native-gesture-handler") ? ["react-native-gesture-handler/jestSetup.js"] : []) |
114 | 87 | ], |
115 | 88 | testMatch: ["<rootDir>/**/*.spec.{js,jsx,ts,tsx}"], |
116 | 89 | - transformIgnorePatterns: ["node_modules/(?!(.*react-native.*|victory-)/)"], |
117 | 90 | + transformIgnorePatterns: ["node_modules/(?!(.*react-native.*|victory-|@shopify/flash-list)/)"], |
118 | 91 | transform: { |
119 | | -+ "^.+\\.(ttf|otf|woff2?|eot)$": require.resolve("@react-native/jest-preset/jest/assetFileTransformer.js"), |
| 92 | + "^.+\\.(ttf|otf|woff2?|eot)$": require.resolve("@react-native/jest-preset/jest/assetFileTransformer.js"), |
120 | 93 | "^.+\\.tsx?$": [ |
121 | 94 | "ts-jest", |
122 | 95 | { |
|
0 commit comments