@rebilly/framepay-react 13.43.0 → 13.44.1

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 CHANGED
@@ -1,6 +1,6 @@
1
- ## [13.43.0](https://github.com/Rebilly/rebilly/compare/framepay-react-v13.42.0...framepay-react-v13.43.0) (2026-01-12)
1
+ ## [13.44.1](https://github.com/Rebilly/rebilly/compare/framepay-react-v13.44.0...framepay-react-v13.44.1) (2026-01-14)
2
2
 
3
3
 
4
- ### Features
4
+ ### Bug Fixes
5
5
 
6
- * **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#17865](https://github.com/Rebilly/rebilly/issues/17865)) ([17191c6](https://github.com/Rebilly/rebilly/commit/17191c66a6676ccecef26c44019de7af72ee35db))
6
+ * **recomm:** fix fragile 403 on CI ([#17968](https://github.com/Rebilly/rebilly/issues/17968)) ([a469a85](https://github.com/Rebilly/rebilly/commit/a469a852cf7d70e55593eaf61c8732c65f123349))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebilly/framepay-react",
3
- "version": "13.43.0",
3
+ "version": "13.44.1",
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 test:e2e:base",
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@19.2.1",
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 pkg = require('../../package');
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 template = {
13
- 'prop-types': './test/e2e/assets/prop-types.js',
14
- react: `./test/e2e/assets/react-${version}.js`,
15
- 'react-dom': `./test/e2e/assets/react-dom-${version}.js`,
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
- if (pkg.alias) {
23
- Object.keys(template).forEach((key) => delete pkg.alias[key]);
37
+ console.log(`>>> CLEAN REACT ALIAS <<<`);
38
+ restorePackageJson();
39
+ runInstallCommand();
40
+ } else {
41
+ backupPackageJson();
42
+
43
+ const pkg = require('../../package');
24
44
 
25
- if (!Object.keys(pkg.alias).length) {
26
- delete pkg.alias;
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
- } else {
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
- } else {
37
- console.log(`>>> CLEAN REACT ALIAS <<<`);
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');