commerce-sdk-isomorphic 3.4.0 → 4.0.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/README.md +27 -7
- package/lib/index.cjs.d.ts +51483 -28554
- package/lib/index.cjs.js +1 -1
- package/lib/index.esm.d.ts +51483 -28554
- package/lib/index.esm.js +1 -1
- package/package.json +11 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "commerce-sdk-isomorphic",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Salesforce Commerce SDK Isomorphic",
|
|
6
6
|
"bugs": {
|
|
@@ -24,18 +24,20 @@
|
|
|
24
24
|
"build:lib": "rollup -c",
|
|
25
25
|
"check:size": "npm-pack-all --output commerce-sdk-isomorphic-with-deps.tgz && bundlesize",
|
|
26
26
|
"check:types": "tsc --noEmit",
|
|
27
|
+
"ci": "rm -rf node_modules && yarn install",
|
|
27
28
|
"clean": "rm -rf build lib src/lib commerce-sdk-isomorphic-with-deps.tgz",
|
|
28
29
|
"depcheck": "depcheck",
|
|
29
|
-
"diffApis": "raml-toolkit diff --dir temp/oldApis apis -f console -o temp/diffApis.txt",
|
|
30
|
-
"doc": "yarn run doc:generate",
|
|
30
|
+
"diffApis": "raml-toolkit diff --dir ./temp/oldApis ./apis -f console -o temp/diffApis.txt -s oas",
|
|
31
|
+
"doc": "yarn run generateVersionTable && yarn run doc:generate",
|
|
31
32
|
"doc:generate": "typedoc --mode modules src/lib/** --external-modulemap \".*/src/lib/([\\w]+)\" --exclude \"src/lib/index.ts\"",
|
|
32
33
|
"eject": "react-scripts eject",
|
|
33
34
|
"fix": "yarn run lint -- --fix",
|
|
34
35
|
"fix:style": "yarn run lint:style -- --fix",
|
|
36
|
+
"generateVersionTable": "ts-node --compiler-options '{\"module\": \"commonjs\", \"target\": \"ES6\" }' ./scripts/generateVersionTable.ts",
|
|
35
37
|
"lint": "eslint --ext js,jsx,ts,tsx .",
|
|
36
38
|
"lint:style": "stylelint ./src/",
|
|
37
39
|
"prepare": "snyk protect",
|
|
38
|
-
"renderTemplates": "ts-node --compiler-options '{\"module\": \"commonjs\", \"target\": \"ES6\" }' ./scripts/generate.ts",
|
|
40
|
+
"renderTemplates": "PACKAGE_VERSION=$(node -p \"require('./package.json').version\") ts-node --compiler-options '{\"module\": \"commonjs\", \"target\": \"ES6\" }' ./scripts/generate-oas.ts",
|
|
39
41
|
"start": "HTTPS=true react-scripts start",
|
|
40
42
|
"pretest": "yarn run lint && yarn run lint:style && depcheck && yarn run check:size",
|
|
41
43
|
"test": "yarn run check:types && yarn run test:unit && CI=true yarn run test:react",
|
|
@@ -73,6 +75,7 @@
|
|
|
73
75
|
"scripts/**/*.{js,jsx,ts,tsx}",
|
|
74
76
|
"!scripts/generate.ts",
|
|
75
77
|
"!scripts/updateApis.ts",
|
|
78
|
+
"!scripts/generateVersionTable.ts",
|
|
76
79
|
"!<rootDir>/node_modules/"
|
|
77
80
|
],
|
|
78
81
|
"coverageReporters": [
|
|
@@ -108,14 +111,13 @@
|
|
|
108
111
|
"@babel/preset-env": "7.18.6",
|
|
109
112
|
"@babel/preset-react": "7.18.6",
|
|
110
113
|
"@babel/preset-typescript": "^7.18.6",
|
|
111
|
-
"@commerce-apps/raml-toolkit": "0.
|
|
114
|
+
"@commerce-apps/raml-toolkit": "^0.8.0",
|
|
112
115
|
"@rollup/plugin-babel": "5.3.1",
|
|
113
116
|
"@rollup/plugin-commonjs": "13.0.2",
|
|
114
117
|
"@rollup/plugin-node-resolve": "8.4.0",
|
|
115
118
|
"@testing-library/jest-dom": "5.16.4",
|
|
116
119
|
"@testing-library/react": "10.4.9",
|
|
117
120
|
"@types/fs-extra": "^9.0.13",
|
|
118
|
-
"@types/handlebars-helpers": "^0.5.3",
|
|
119
121
|
"@types/node-fetch": "^2.6.2",
|
|
120
122
|
"@types/react-dom": "^16.9.16",
|
|
121
123
|
"@types/seedrandom": "^3.0.8",
|
|
@@ -136,7 +138,7 @@
|
|
|
136
138
|
"eslint-plugin-react": "7.30.1",
|
|
137
139
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
138
140
|
"fs-extra": "^9.1.0",
|
|
139
|
-
"handlebars
|
|
141
|
+
"handlebars": "4.7.7",
|
|
140
142
|
"husky": "4.3.8",
|
|
141
143
|
"jest-environment-jsdom-sixteen": "1.0.3",
|
|
142
144
|
"lint-staged": "10.5.4",
|
|
@@ -177,11 +179,11 @@
|
|
|
177
179
|
"bundlesize": [
|
|
178
180
|
{
|
|
179
181
|
"path": "lib/**/*.js",
|
|
180
|
-
"maxSize": "
|
|
182
|
+
"maxSize": "53 kB"
|
|
181
183
|
},
|
|
182
184
|
{
|
|
183
185
|
"path": "commerce-sdk-isomorphic-with-deps.tgz",
|
|
184
|
-
"maxSize": "
|
|
186
|
+
"maxSize": "1096 kB"
|
|
185
187
|
}
|
|
186
188
|
],
|
|
187
189
|
"proxy": "https://SHORTCODE.api.commercecloud.salesforce.com"
|