@rebilly/framepay-react 13.43.0 → 13.44.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 +3 -3
- package/test/e2e/switch-react-version.js +47 -20
- package/test/e2e/assets/react-0.14.0.js +0 -18759
- package/test/e2e/assets/react-dom-0.14.0.js +0 -42
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [13.
|
|
1
|
+
## [13.44.0](https://github.com/Rebilly/rebilly/compare/framepay-react-v13.43.0...framepay-react-v13.44.0) (2026-01-12)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Features
|
|
5
5
|
|
|
6
|
-
* **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#
|
|
6
|
+
* **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#17921](https://github.com/Rebilly/rebilly/issues/17921)) ([f21ce24](https://github.com/Rebilly/rebilly/commit/f21ce24d1f6f8032ebb8f5dabbf9de747802733b))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebilly/framepay-react",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.44.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",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"serve:e2e:no-build": "node test/e2e/local-server.mjs",
|
|
48
48
|
"test:unit": "jest --config ./test/unit/jest.config.js",
|
|
49
49
|
"test:e2e:base": "START_SERVER_AND_TEST_INSECURE=1 start-server-and-test 'pnpm serve:e2e:no-build' https-get://localhost:8000 'pnpm test:e2e:run'",
|
|
50
|
-
"test:e2e:react-14": "cross-env REACT_VERSION=0.14.0 run-s set-react-14 dotenv build:e2e clean-react-alias
|
|
50
|
+
"test:e2e:react-14": "cross-env REACT_VERSION=0.14.0 run-s set-react-14 dotenv build:e2e test:e2e:base clean-react-alias",
|
|
51
51
|
"test:e2e:react-15": "cross-env REACT_VERSION=15.0.0 run-s set-react-15 dotenv build:e2e clean-react-alias test:e2e:base",
|
|
52
52
|
"test:e2e:react-16": "cross-env REACT_VERSION=16 run-s set-react-16 dotenv build:e2e clean-react-alias test:e2e:base",
|
|
53
53
|
"test:e2e:react-17": "cross-env REACT_VERSION=17 run-s set-react-17 dotenv build:e2e clean-react-alias test:e2e:base",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"prop-types": "^15.0.0",
|
|
95
95
|
"react": "^19.2.1",
|
|
96
96
|
"react-dom": "^19.2.1",
|
|
97
|
-
"react-dom-19": "npm:react-dom
|
|
97
|
+
"react-dom-19": "npm:react-dom@^19.2.1",
|
|
98
98
|
"scheduler": "^0.26.0",
|
|
99
99
|
"start-server-and-test": "^2.0.11",
|
|
100
100
|
"ts-jest": "^29.3.2",
|
|
@@ -4,37 +4,64 @@
|
|
|
4
4
|
* @type {string}
|
|
5
5
|
*/
|
|
6
6
|
const fs = require('fs');
|
|
7
|
-
const
|
|
7
|
+
const { execSync } = require('child_process');
|
|
8
8
|
|
|
9
9
|
const version = process.env.REACT_VERSION;
|
|
10
10
|
const clean = !version || version === 'clean';
|
|
11
11
|
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
};
|
|
12
|
+
const packageJsonPath = './package.json';
|
|
13
|
+
const backupPath = './package.json.backup';
|
|
14
|
+
|
|
15
|
+
function runInstallCommand() {
|
|
16
|
+
execSync('pnpm install', { stdio: 'inherit' });
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function backupPackageJson() {
|
|
20
|
+
if (!fs.existsSync(backupPath)) {
|
|
21
|
+
fs.copyFileSync(packageJsonPath, backupPath);
|
|
22
|
+
console.log('>>> Backed up package.json <<<');
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function restorePackageJson() {
|
|
27
|
+
if (fs.existsSync(backupPath)) {
|
|
28
|
+
fs.copyFileSync(backupPath, packageJsonPath);
|
|
29
|
+
fs.unlinkSync(backupPath);
|
|
30
|
+
console.log('>>> Restored package.json from backup <<<');
|
|
31
|
+
} else {
|
|
32
|
+
console.log('>>> No backup found to restore <<<');
|
|
33
|
+
}
|
|
34
|
+
}
|
|
17
35
|
|
|
18
|
-
/**
|
|
19
|
-
* Delete aliases
|
|
20
|
-
*/
|
|
21
36
|
if (clean) {
|
|
22
|
-
|
|
23
|
-
|
|
37
|
+
console.log(`>>> CLEAN REACT ALIAS <<<`);
|
|
38
|
+
restorePackageJson();
|
|
39
|
+
runInstallCommand();
|
|
40
|
+
} else {
|
|
41
|
+
backupPackageJson();
|
|
42
|
+
|
|
43
|
+
const pkg = require('../../package');
|
|
24
44
|
|
|
25
|
-
|
|
26
|
-
|
|
45
|
+
let template = {
|
|
46
|
+
'prop-types': './test/e2e/assets/prop-types.js',
|
|
47
|
+
react: `./test/e2e/assets/react-${version}.js`,
|
|
48
|
+
'react-dom': `./test/e2e/assets/react-dom-${version}.js`,
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
if (version === '0.14.0') {
|
|
52
|
+
template = {};
|
|
53
|
+
pkg['dependencies']['prop-types'] = '0.2.0';
|
|
54
|
+
pkg['devDependencies']['react'] = '0.14.0';
|
|
55
|
+
pkg['devDependencies']['react-dom'] = '0.14.0';
|
|
56
|
+
pkg['@parcel/transformer-js'] = {
|
|
57
|
+
"jsxRuntime": "classic"
|
|
27
58
|
}
|
|
28
59
|
}
|
|
29
|
-
|
|
60
|
+
|
|
30
61
|
pkg.alias = pkg.alias || {};
|
|
31
62
|
Object.assign(pkg.alias, template);
|
|
32
|
-
}
|
|
33
63
|
|
|
34
|
-
if (!clean) {
|
|
35
64
|
console.log(`>>> REACT_VERSION ${version} <<<`);
|
|
36
|
-
|
|
37
|
-
|
|
65
|
+
fs.writeFileSync(packageJsonPath, JSON.stringify(pkg, null, 4), 'utf8');
|
|
66
|
+
runInstallCommand();
|
|
38
67
|
}
|
|
39
|
-
|
|
40
|
-
fs.writeFileSync('./package.json', JSON.stringify(pkg, null, 4), 'utf8');
|