@rebilly/framepay-react 13.42.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 CHANGED
@@ -1,6 +1,6 @@
1
- ## [13.42.0](https://github.com/Rebilly/rebilly/compare/framepay-react-v13.41.0...framepay-react-v13.42.0) (2026-01-08)
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
- * Upgrade ESLint and Prettier ([#17793](https://github.com/Rebilly/rebilly/issues/17793)) ([8883216](https://github.com/Rebilly/rebilly/commit/88832162761efa08569e6dcc03366f727eebd96a))
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,10 +1,14 @@
1
1
  {
2
2
  "name": "@rebilly/framepay-react",
3
- "version": "13.42.0",
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",
7
7
  "types": "build/index.d.ts",
8
+ "targets": {
9
+ "main": false,
10
+ "types": false
11
+ },
8
12
  "repository": "https://github.com/Rebilly/rebilly",
9
13
  "license": "MIT",
10
14
  "keywords": [
@@ -37,13 +41,13 @@
37
41
  "clean-react-alias": "cross-env REACT_VERSION=clean node ./test/e2e/switch-react-version",
38
42
  "dotenv": "node ./env.js",
39
43
  "build": "cross-env NODE_ENV=production tsc -p tsconfig.json",
40
- "build:e2e": "cross-env NODE_ENV=production run-s dotenv build clean:e2e && parcel build ./test/e2e/fixtures/* --no-minify --no-cache --out-dir test/e2e/build",
41
- "dev:e2e": "cross-env NODE_ENV=development && run-s dotenv && parcel ./test/e2e/fixtures/* --no-cache --out-dir test/e2e/build",
44
+ "build:e2e": "cross-env NODE_ENV=production run-s dotenv build clean:e2e && parcel build ./test/e2e/fixtures/* --no-optimize --no-cache --no-scope-hoist --dist-dir test/e2e/build",
45
+ "dev:e2e": "cross-env NODE_ENV=development && run-s dotenv && parcel ./test/e2e/fixtures/* --no-cache --dist-dir test/e2e/build",
42
46
  "serve:e2e": "run-s dotenv build:* && node test/e2e/local-server.mjs",
43
47
  "serve:e2e:no-build": "node test/e2e/local-server.mjs",
44
48
  "test:unit": "jest --config ./test/unit/jest.config.js",
45
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'",
46
- "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",
47
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",
48
52
  "test:e2e:react-16": "cross-env REACT_VERSION=16 run-s set-react-16 dotenv build:e2e clean-react-alias test:e2e:base",
49
53
  "test:e2e:react-17": "cross-env REACT_VERSION=17 run-s set-react-17 dotenv build:e2e clean-react-alias test:e2e:base",
@@ -69,14 +73,14 @@
69
73
  "@fluffy-spoon/substitute": "^1.89.0",
70
74
  "@rebilly/eslint-config": "*",
71
75
  "@small-tech/auto-encrypt-localhost": "^8.4.0",
72
- "@testing-library/cypress": "^10.0.3",
76
+ "@testing-library/cypress": "^10.1.0",
73
77
  "@testing-library/react": "^15.0.7",
74
78
  "@types/jest": "^29.5.1",
75
79
  "@types/node": "^22.15.30",
76
80
  "@types/react": "^19.2.7",
77
81
  "core-js": "^3.42.0",
78
82
  "cross-env": "^10.1.0",
79
- "cypress": "^13.17.0",
83
+ "cypress": "^15.8.2",
80
84
  "cypress-iframe": "^1.0.1",
81
85
  "dotenv": "^16.5.0",
82
86
  "eslint-plugin-react": "^7.37.5",
@@ -85,12 +89,12 @@
85
89
  "jest": "^29.5.0",
86
90
  "jest-environment-jsdom": "^29.7.0",
87
91
  "npm-run-all": "^4.1.5",
88
- "parcel-bundler": "^1.12.5",
92
+ "parcel": "^2.0.0",
89
93
  "portfinder": "^1.0.35",
90
94
  "prop-types": "^15.0.0",
91
95
  "react": "^19.2.1",
92
96
  "react-dom": "^19.2.1",
93
- "react-dom-19": "npm:react-dom@19.2.1",
97
+ "react-dom-19": "npm:react-dom@^19.2.1",
94
98
  "scheduler": "^0.26.0",
95
99
  "start-server-and-test": "^2.0.11",
96
100
  "ts-jest": "^29.3.2",
@@ -8,7 +8,7 @@
8
8
 
9
9
  <body>
10
10
  <div id="app"></div>
11
- <script src="apple-pay.js"></script>
11
+ <script type="module" src="apple-pay.js"></script>
12
12
  <script src="nav.js"></script>
13
13
  </body>
14
14
 
@@ -6,7 +6,7 @@
6
6
  </head>
7
7
  <body>
8
8
  <div id="app"></div>
9
- <script src="bank-separate.js"></script>
9
+ <script type="module" src="bank-separate.js"></script>
10
10
  <script src="nav.js"></script>
11
11
  </body>
12
12
  </html>
@@ -6,7 +6,7 @@
6
6
  </head>
7
7
  <body>
8
8
  <div id="app"></div>
9
- <script src="card-separate-brands.js"></script>
9
+ <script type="module" src="card-separate-brands.js"></script>
10
10
  <script src="nav.js"></script>
11
11
  </body>
12
12
  </html>
@@ -1,12 +1,15 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
+
3
4
  <head>
4
- <meta charset="utf-8"/>
5
+ <meta charset="utf-8" />
5
6
  <title>Test Card Page Separate Fields</title>
6
7
  </head>
8
+
7
9
  <body>
8
- <div id="app"></div>
9
- <script src="card-separate-rebilly-fields.js"></script>
10
- <script src="nav.js"></script>
10
+ <div id="app"></div>
11
+ <script type="module" src="card-separate-rebilly-fields.js"></script>
12
+ <script src="nav.js"></script>
11
13
  </body>
14
+
12
15
  </html>
@@ -6,7 +6,7 @@
6
6
  </head>
7
7
  <body>
8
8
  <div id="app"></div>
9
- <script src="card-separate.js"></script>
9
+ <script type="module" src="card-separate.js"></script>
10
10
  <script src="nav.js"></script>
11
11
  </body>
12
12
  </html>
@@ -6,7 +6,7 @@
6
6
  </head>
7
7
  <body>
8
8
  <div id="app"></div>
9
- <script src="checkout-combined.js"></script>
9
+ <script type="module" src="checkout-combined.js"></script>
10
10
  <script src="nav.js"></script>
11
11
  </body>
12
12
  </html>
@@ -8,7 +8,7 @@
8
8
 
9
9
  <body>
10
10
  <div id="app"></div>
11
- <script src="google-pay.js"></script>
11
+ <script type="module" src="google-pay.js"></script>
12
12
  <script src="nav.js"></script>
13
13
  </body>
14
14
 
@@ -6,7 +6,7 @@
6
6
  </head>
7
7
  <body>
8
8
  <div id="app"></div>
9
- <script src="iban.js"></script>
9
+ <script type="module" src="iban.js"></script>
10
10
  <script src="nav.js"></script>
11
11
  </body>
12
12
  </html>
@@ -8,8 +8,8 @@
8
8
 
9
9
  <body>
10
10
  <div id="app"></div>
11
- <script src="inject-metadata.js"></script>
11
+ <script type="module" src="inject-metadata.js"></script>
12
12
  <script src="nav.js"></script>
13
13
  </body>
14
14
 
15
- </html>
15
+ </html>
@@ -6,7 +6,7 @@
6
6
  </head>
7
7
  <body>
8
8
  <div id="app"></div>
9
- <script src="multiple-methods.js"></script>
9
+ <script type="module" src="multiple-methods.js"></script>
10
10
  <script src="nav.js"></script>
11
11
  </body>
12
12
  </html>
@@ -8,7 +8,7 @@
8
8
 
9
9
  <body>
10
10
  <div id="app"></div>
11
- <script src="paypal.js"></script>
11
+ <script type="module" src="paypal.js"></script>
12
12
  <script src="nav.js"></script>
13
13
  </body>
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  <body>
10
10
  <div id="app"></div>
11
- <script src="samsung-pay.js"></script>
11
+ <script type="module" src="samsung-pay.js"></script>
12
12
  <script src="nav.js"></script>
13
13
  </body>
14
14
 
@@ -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');