@rebilly/framepay-react 13.105.0 → 13.107.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -2
- package/package.json +1 -1
- package/tests/e2e/switch-react-version.js +62 -15
- package/tests/e2e/assets/README.md +0 -10
- package/tests/e2e/assets/prop-types.js +0 -849
- package/tests/e2e/assets/react-15.0.0.js +0 -19309
- package/tests/e2e/assets/react-16.js +0 -3318
- package/tests/e2e/assets/react-17.js +0 -3357
- package/tests/e2e/assets/react-18.js +0 -3342
- package/tests/e2e/assets/react-dom-15.0.0.js +0 -42
- package/tests/e2e/assets/react-dom-16.js +0 -25147
- package/tests/e2e/assets/react-dom-17.js +0 -26292
- package/tests/e2e/assets/react-dom-18.js +0 -29869
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [13.
|
|
1
|
+
## [13.107.0](https://github.com/Rebilly/rebilly/compare/framepay-react-v13.106.0...framepay-react-v13.107.0) (2026-05-11)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Features
|
|
5
5
|
|
|
6
|
-
* **
|
|
6
|
+
* **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#21235](https://github.com/Rebilly/rebilly/issues/21235)) ([fc94234](https://github.com/Rebilly/rebilly/commit/fc9423440c2d939d342a97c39acc0ac1f9bc1977))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebilly/framepay-react",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.107.0",
|
|
4
4
|
"description": "A React wrapper for Rebilly's FramePay offering out-of-the-box support for Redux and other common React features",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"author": "Rebilly",
|
|
@@ -14,6 +14,37 @@ const backupPath = './package.json.backup';
|
|
|
14
14
|
const lockfilePath = '../../../pnpm-lock.yaml';
|
|
15
15
|
const lockfileBackupPath = '../../../pnpm-lock.yaml.backup';
|
|
16
16
|
|
|
17
|
+
// Maps REACT_VERSION env values to the npm semver ranges to install.
|
|
18
|
+
// React versions older than 16 are pinned exactly because they ship as
|
|
19
|
+
// pre-release-style 0.x or first-major releases without patch families
|
|
20
|
+
// we want to roll forward to.
|
|
21
|
+
const versionMap = {
|
|
22
|
+
'0.14.0': {
|
|
23
|
+
react: '0.14.0',
|
|
24
|
+
'react-dom': '0.14.0',
|
|
25
|
+
'prop-types': '0.2.0',
|
|
26
|
+
jsxRuntime: 'classic',
|
|
27
|
+
},
|
|
28
|
+
'15.0.0': {
|
|
29
|
+
react: '15.0.0',
|
|
30
|
+
'react-dom': '15.0.0',
|
|
31
|
+
jsxRuntime: 'classic',
|
|
32
|
+
},
|
|
33
|
+
'16': {
|
|
34
|
+
react: '^16',
|
|
35
|
+
'react-dom': '^16',
|
|
36
|
+
jsxRuntime: 'classic',
|
|
37
|
+
},
|
|
38
|
+
'17': {
|
|
39
|
+
react: '^17',
|
|
40
|
+
'react-dom': '^17',
|
|
41
|
+
},
|
|
42
|
+
'18': {
|
|
43
|
+
react: '^18',
|
|
44
|
+
'react-dom': '^18',
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
|
|
17
48
|
function runInstallCommand() {
|
|
18
49
|
execSync('pnpm install --no-frozen-lockfile', { stdio: 'inherit' });
|
|
19
50
|
}
|
|
@@ -51,28 +82,44 @@ if (clean) {
|
|
|
51
82
|
restoreFiles();
|
|
52
83
|
runInstallCommand();
|
|
53
84
|
} else {
|
|
85
|
+
const config = versionMap[version];
|
|
86
|
+
|
|
87
|
+
if (!config) {
|
|
88
|
+
console.error(
|
|
89
|
+
`>>> Unknown REACT_VERSION "${version}". Supported: ${Object.keys(
|
|
90
|
+
versionMap
|
|
91
|
+
).join(', ')} <<<`
|
|
92
|
+
);
|
|
93
|
+
process.exit(1);
|
|
94
|
+
}
|
|
95
|
+
|
|
54
96
|
backupFiles();
|
|
55
97
|
|
|
56
98
|
const pkg = require('../../package');
|
|
57
99
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
100
|
+
// Drop any prior react-related aliases so the npm packages are used
|
|
101
|
+
// instead of the local UMD bundles previously shipped under
|
|
102
|
+
// tests/e2e/assets.
|
|
103
|
+
if (pkg.alias) {
|
|
104
|
+
delete pkg.alias.react;
|
|
105
|
+
delete pkg.alias['react-dom'];
|
|
106
|
+
delete pkg.alias['prop-types'];
|
|
107
|
+
}
|
|
63
108
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
pkg
|
|
70
|
-
|
|
71
|
-
}
|
|
109
|
+
pkg.devDependencies = pkg.devDependencies || {};
|
|
110
|
+
pkg.devDependencies.react = config.react;
|
|
111
|
+
pkg.devDependencies['react-dom'] = config['react-dom'];
|
|
112
|
+
|
|
113
|
+
if (config['prop-types']) {
|
|
114
|
+
pkg.dependencies = pkg.dependencies || {};
|
|
115
|
+
pkg.dependencies['prop-types'] = config['prop-types'];
|
|
72
116
|
}
|
|
73
117
|
|
|
74
|
-
|
|
75
|
-
|
|
118
|
+
if (config.jsxRuntime) {
|
|
119
|
+
pkg['@parcel/transformer-js'] = {
|
|
120
|
+
jsxRuntime: config.jsxRuntime,
|
|
121
|
+
};
|
|
122
|
+
}
|
|
76
123
|
|
|
77
124
|
console.log(`>>> REACT_VERSION ${version} <<<`);
|
|
78
125
|
fs.writeFileSync(packageJsonPath, JSON.stringify(pkg, null, 4), 'utf8');
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# UMD Builds for React Versions
|
|
2
|
-
|
|
3
|
-
This folder contains UMD builds of various React versions. These builds are toggled
|
|
4
|
-
using scripts defined in the `package.json` file (e.g., `set-react-*`).
|
|
5
|
-
|
|
6
|
-
## React 19
|
|
7
|
-
|
|
8
|
-
React 19 removed support for [UMD builds](https://react.dev/blog/2024/04/25/react-19-upgrade-guide#umd-builds-removed).
|
|
9
|
-
|
|
10
|
-
For react 19 we are using the npm version in the package.json.
|