@rebilly/framepay-react 2.0.0 → 2.0.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 +1 -0
- package/README.md +7 -6
- package/package.json +15 -17
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
## [2.0.1](https://github.com/Rebilly/rebilly/compare/framepay-react-v2.0.0...framepay-react-v2.0.1) (2023-03-15)
|
package/README.md
CHANGED
|
@@ -35,10 +35,11 @@ This package is a wrapper for [FramePay](https://rebilly.github.io/framepay-docs
|
|
|
35
35
|
- [Incorrect](#incorrect)
|
|
36
36
|
- [Correct](#correct)
|
|
37
37
|
- [Developer instructions](#developer-instructions)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
- [Prerequisites](#prerequisites)
|
|
39
|
+
- [Project setup](#project-setup)
|
|
40
|
+
- [Manual preview](#manual-preview)
|
|
41
|
+
- [How to run unit tests?](#how-to-run-unit-tests)
|
|
42
|
+
- [How to run E2E tests?](#how-to-run-e2e-tests)
|
|
42
43
|
|
|
43
44
|
### FramePay documentation
|
|
44
45
|
For more information on FramePay see its [official documentation](https://www.rebilly.com/docs/dev-docs/framepay/).
|
|
@@ -344,5 +345,5 @@ Unit tests can be run using the `test:unit` command.
|
|
|
344
345
|
#### How to run E2E tests?
|
|
345
346
|
- Ensure you are running the preview examples, otherwise all E2E tests will fail
|
|
346
347
|
- Run one of the following commands:
|
|
347
|
-
- `test:
|
|
348
|
-
- `test:
|
|
348
|
+
- `test:e2e:run` - runs all tests headlessly
|
|
349
|
+
- `test:e2e:open` - opens GUI which allows you to interact with each test visually
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebilly/framepay-react",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.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",
|
|
7
7
|
"types": "build/index.d.ts",
|
|
8
|
-
"repository": "https://github.com/Rebilly/
|
|
8
|
+
"repository": "https://github.com/Rebilly/rebilly",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"keywords": [
|
|
11
11
|
"framepay",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
],
|
|
18
18
|
"files": [
|
|
19
19
|
"build",
|
|
20
|
-
"types"
|
|
20
|
+
"types",
|
|
21
|
+
"CHANGELOG.md"
|
|
21
22
|
],
|
|
22
23
|
"scripts": {
|
|
23
24
|
"set-react-14": "cross-env REACT_VERSION=0.14.0 node ./test/e2e/switch-react-version",
|
|
@@ -35,21 +36,19 @@
|
|
|
35
36
|
"fix": "run-s fix:*",
|
|
36
37
|
"fix:prettier": "prettier \"src/**/*.ts\" \"src/**/*.tsx\" \"test/**/*.ts\" \"test/**/*.tsx\" \"./*.json\" --write",
|
|
37
38
|
"fix:tslint": "tslint --fix --project .",
|
|
38
|
-
"
|
|
39
|
+
"lint:no-fix": "tslint --project . && prettier \"src/**/*.ts\" \"src/**/*.tsx\" \"test/**/*.ts\" \"test/**/*.tsx\" \"./*.json\" --list-different",
|
|
39
40
|
"test:unit": "jest --config ./test/unit/jest.config.js",
|
|
40
|
-
"test:
|
|
41
|
-
"test:
|
|
42
|
-
"test:
|
|
43
|
-
"test:
|
|
44
|
-
"test:
|
|
45
|
-
"test:
|
|
46
|
-
"test:
|
|
47
|
-
"test:
|
|
48
|
-
"test:
|
|
41
|
+
"test:e2e:base": "START_SERVER_AND_TEST_INSECURE=1 start-server-and-test serve:e2e:no-build https-get://localhost:8000 test:e2e:run",
|
|
42
|
+
"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",
|
|
43
|
+
"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",
|
|
44
|
+
"test:e2e:react-16": "cross-env REACT_VERSION=16 run-s set-react-16 dotenv build:e2e clean-react-alias test:e2e:base",
|
|
45
|
+
"test:e2e:react-17": "cross-env REACT_VERSION=17 run-s set-react-17 dotenv build:e2e clean-react-alias test:e2e:base",
|
|
46
|
+
"test:e2e:react-18": "cross-env REACT_VERSION=18 run-s set-react-18 dotenv build:e2e clean-react-alias test:e2e:base",
|
|
47
|
+
"test:e2e": "run-s test:e2e:react-*",
|
|
48
|
+
"test:e2e:open": "cypress open",
|
|
49
|
+
"test:e2e:run": "cypress run",
|
|
49
50
|
"watch": "run-s build && run-p \"build -- --w\"",
|
|
50
|
-
"clean:e2e": "rm -rf test/e2e/build"
|
|
51
|
-
"precommit": "run-s fix",
|
|
52
|
-
"prepush": "run-s fix"
|
|
51
|
+
"clean:e2e": "rm -rf test/e2e/build"
|
|
53
52
|
},
|
|
54
53
|
"peerDependencies": {
|
|
55
54
|
"react": "^0.14.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0",
|
|
@@ -72,7 +71,6 @@
|
|
|
72
71
|
"cypress-iframe": "^1.0.1",
|
|
73
72
|
"dotenv": "^7.0.0",
|
|
74
73
|
"express": "^4.16.4",
|
|
75
|
-
"husky": "^1.3.1",
|
|
76
74
|
"jest": "^29.3.1",
|
|
77
75
|
"jest-environment-jsdom": "^29.3.1",
|
|
78
76
|
"npm-run-all": "^4.1.5",
|