@corva/create-app 0.120.0 → 0.121.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/lib/constants/package.js
CHANGED
|
@@ -12,8 +12,8 @@ const uiDependencies = {
|
|
|
12
12
|
'corva-convert-units': '1.10.33',
|
|
13
13
|
'highcharts': '10.3.3',
|
|
14
14
|
'highcharts-react-official': '2.2.2',
|
|
15
|
-
'lodash': '^4.
|
|
16
|
-
'mapbox
|
|
15
|
+
'lodash': '^4.18.1',
|
|
16
|
+
'mapbox-gl': '3.16.0',
|
|
17
17
|
'moment': '2.29.4',
|
|
18
18
|
'moment-timezone': '0.5.43',
|
|
19
19
|
'react': '17.0.1',
|
|
@@ -38,6 +38,7 @@ const jsUiDevDependencies = {
|
|
|
38
38
|
const tsUiDevDependencies = {
|
|
39
39
|
...jsUiDevDependencies,
|
|
40
40
|
'@tsconfig/create-react-app': '1.0.2',
|
|
41
|
+
// 4.17.7+ uses `infer X extends`, unparsable by this template's typescript 4.6.3
|
|
41
42
|
'@types/lodash': '4.17.5',
|
|
42
43
|
'@types/material-ui': '0.21.9',
|
|
43
44
|
'@types/minimatch': '3.0.5',
|
|
@@ -130,6 +131,10 @@ const uiPackage = {
|
|
|
130
131
|
moduleNameMapper: {
|
|
131
132
|
'~(.*)': '<rootDir>/src/$1',
|
|
132
133
|
'^.+\\.(css|sass|scss)$': 'identity-obj-proxy',
|
|
134
|
+
// @corva/ui's ImageViewer imports photoswipe (ESM-only); stub it so app
|
|
135
|
+
// tests can import @corva/ui without a module-resolution/ESM failure.
|
|
136
|
+
'^photoswipe/lightbox$': 'identity-obj-proxy',
|
|
137
|
+
'^photoswipe$': 'identity-obj-proxy',
|
|
133
138
|
'@corva/ui(.*)': '@corva/ui/cjs-bundle/$1',
|
|
134
139
|
},
|
|
135
140
|
watchPlugins: ['jest-watch-typeahead/filename', 'jest-watch-typeahead/testname'],
|
|
@@ -140,6 +145,7 @@ const uiPackage = {
|
|
|
140
145
|
},
|
|
141
146
|
'resolutions': {
|
|
142
147
|
'@noble/hashes': '1.8.0',
|
|
148
|
+
'lodash': '4.18.1',
|
|
143
149
|
},
|
|
144
150
|
};
|
|
145
151
|
|
|
@@ -250,11 +256,16 @@ const nodeNpmPackage = {
|
|
|
250
256
|
},
|
|
251
257
|
],
|
|
252
258
|
},
|
|
259
|
+
overrides: {
|
|
260
|
+
lodash: '4.18.1',
|
|
261
|
+
},
|
|
253
262
|
};
|
|
254
263
|
|
|
255
264
|
const nodeYarnPackage = {
|
|
256
265
|
...nodeNpmPackage,
|
|
257
266
|
scripts: nodeYarnScripts,
|
|
267
|
+
overrides: undefined,
|
|
268
|
+
resolutions: nodeNpmPackage.overrides,
|
|
258
269
|
};
|
|
259
270
|
|
|
260
271
|
const nodeTsNpmPackage = {
|
|
@@ -271,6 +282,8 @@ const nodeTsNpmPackage = {
|
|
|
271
282
|
const nodeTsYarnPackage = {
|
|
272
283
|
...nodeTsNpmPackage,
|
|
273
284
|
scripts: nodeTsYarnScripts,
|
|
285
|
+
overrides: undefined,
|
|
286
|
+
resolutions: nodeNpmPackage.overrides,
|
|
274
287
|
};
|
|
275
288
|
|
|
276
289
|
const extendWithTsConfig = (packageJson, version) => {
|
|
@@ -75,7 +75,20 @@ export async function warnIfOutdated() {
|
|
|
75
75
|
logger.write('Checking for updates...\n');
|
|
76
76
|
|
|
77
77
|
const currentVersion = await getCurrentVersion();
|
|
78
|
-
|
|
78
|
+
|
|
79
|
+
let latestVersion;
|
|
80
|
+
|
|
81
|
+
try {
|
|
82
|
+
latestVersion = await getLatestVersion();
|
|
83
|
+
} catch (caughtError) {
|
|
84
|
+
if (!(caughtError instanceof StepError)) {
|
|
85
|
+
throw caughtError;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
logger.write(' ⚠️ Skipping version check (could not reach npm registry).\n');
|
|
89
|
+
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
79
92
|
|
|
80
93
|
// Skip version check if current version is a prerelease (dev or next)
|
|
81
94
|
if (!isRegularVersion(currentVersion)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corva/create-app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.121.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Create an app to use it in CORVA.AI",
|
|
6
6
|
"keywords": [
|
|
@@ -11,8 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
|
-
"url": "https://github.com/corva-ai/create-corva-app"
|
|
15
|
-
"directory": "@corva/create-app"
|
|
14
|
+
"url": "https://github.com/corva-ai/create-corva-app"
|
|
16
15
|
},
|
|
17
16
|
"license": "MIT",
|
|
18
17
|
"type": "module",
|
|
@@ -42,6 +41,9 @@
|
|
|
42
41
|
"lint-staged": {
|
|
43
42
|
"*.js": "npm run lint:fix"
|
|
44
43
|
},
|
|
44
|
+
"resolutions": {
|
|
45
|
+
"lodash": "4.18.1"
|
|
46
|
+
},
|
|
45
47
|
"dependencies": {
|
|
46
48
|
"archiver": "^5.3.0",
|
|
47
49
|
"chalk": "^4.1.0",
|
|
@@ -78,10 +80,10 @@
|
|
|
78
80
|
"@typescript-eslint/parser": "^8.58.1",
|
|
79
81
|
"conventional-changelog-cli": "^2.1.0",
|
|
80
82
|
"eslint": "^8.2.0",
|
|
81
|
-
"eslint-plugin-jest": "^27.1.5",
|
|
82
83
|
"eslint-config-google": "^0.14.0",
|
|
83
84
|
"eslint-config-prettier": "^8.5.0",
|
|
84
85
|
"eslint-plugin-import": "^2.26.0",
|
|
86
|
+
"eslint-plugin-jest": "^27.1.5",
|
|
85
87
|
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
86
88
|
"eslint-plugin-prettier": "^4.2.1",
|
|
87
89
|
"eslint-plugin-react": "^7.32.0",
|
|
@@ -96,9 +98,6 @@
|
|
|
96
98
|
"zx": "^7.2.3"
|
|
97
99
|
},
|
|
98
100
|
"packageManager": "yarn@1.22.19+sha512.ff4579ab459bb25aa7c0ff75b62acebe576f6084b36aa842971cf250a5d8c6cd3bc9420b22ce63c7f93a0857bc6ef29291db39c3e7a23aab5adfd5a4dd6c5d71",
|
|
99
|
-
"engines": {
|
|
100
|
-
"node": ">=24 <25"
|
|
101
|
-
},
|
|
102
101
|
"standard-version": {
|
|
103
102
|
"skip": {
|
|
104
103
|
"tag": true
|
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
// learn more: https://github.com/testing-library/jest-dom
|
|
7
7
|
// eslint-disable-next-line
|
|
8
8
|
import '@testing-library/jest-dom/extend-expect';
|
|
9
|
+
import { TextEncoder, TextDecoder } from 'util';
|
|
10
|
+
|
|
11
|
+
Object.assign(global, { TextDecoder, TextEncoder });
|
|
9
12
|
|
|
10
13
|
// Set UTC timezone for tests to not use the environment timezone
|
|
11
14
|
process.env.TZ = 'UTC';
|
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
// learn more: https://github.com/testing-library/jest-dom
|
|
7
7
|
// eslint-disable-next-line
|
|
8
8
|
import '@testing-library/jest-dom/extend-expect';
|
|
9
|
+
import { TextEncoder, TextDecoder } from 'util';
|
|
10
|
+
|
|
11
|
+
Object.assign(global, { TextDecoder, TextEncoder });
|
|
9
12
|
|
|
10
13
|
// Set UTC timezone for tests to not use the environment timezone
|
|
11
14
|
process.env.TZ = 'UTC';
|