arui-scripts 19.1.0 → 20.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/.turbo/turbo-test.log +6 -6
- package/CHANGELOG.md +17 -0
- package/README.md +1 -1
- package/build/configs/server-externals-exemptions.js +0 -1
- package/build/configs/util/get-polyfills.d.ts +1 -1
- package/build/configs/util/get-polyfills.js +1 -14
- package/build/configs/webpack.client.js +1 -38
- package/build/tsconfig-local.tsbuildinfo +1 -1
- package/docs/modules.md +1 -2
- package/docs/settings.md +1 -1
- package/package.json +2 -2
package/.turbo/turbo-test.log
CHANGED
|
@@ -5,19 +5,19 @@ ts-jest[versions] (WARN) Version 29.7.0 of jest installed has not been tested wi
|
|
|
5
5
|
ts-jest[versions] (WARN) Version 5.6.3 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=4.3.0 <5.0.0-0). Please do not report issues in ts-jest if you are using unsupported versions.
|
|
6
6
|
ts-jest[versions] (WARN) Version 5.6.3 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=4.3.0 <5.0.0-0). Please do not report issues in ts-jest if you are using unsupported versions.
|
|
7
7
|
ts-jest[versions] (WARN) Version 5.6.3 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=4.3.0 <5.0.0-0). Please do not report issues in ts-jest if you are using unsupported versions.
|
|
8
|
-
PASS src/plugins/postcss-global-variables/utils/__tests__/add-global-variable.tests.ts (
|
|
9
|
-
PASS src/configs/app-configs/__tests__/update-with-presets.tests.ts (
|
|
10
|
-
PASS src/configs/util/__tests__/get-polyfills.tests.ts
|
|
8
|
+
PASS src/plugins/postcss-global-variables/utils/__tests__/add-global-variable.tests.ts (26.801 s)
|
|
9
|
+
PASS src/configs/app-configs/__tests__/update-with-presets.tests.ts (26.854 s)
|
|
11
10
|
PASS src/configs/util/__tests__/apply-overrides.tests.ts
|
|
12
11
|
PASS src/configs/app-configs/__tests__/update-with-package.tests.ts
|
|
13
12
|
PASS src/configs/app-configs/__tests__/update-with-env.tests.ts
|
|
13
|
+
PASS src/configs/util/__tests__/get-polyfills.tests.ts
|
|
14
14
|
PASS src/plugins/postcss-global-variables/utils/__tests__/parse-variables.tests.ts
|
|
15
15
|
PASS src/plugins/postcss-global-variables/utils/__tests__/get-media-query-name.tests.ts
|
|
16
16
|
PASS src/configs/app-configs/__tests__/validate-settings-keys.tests.ts
|
|
17
|
-
PASS src/configs/util/__tests__/find-plugin.tests.ts (29.
|
|
17
|
+
PASS src/configs/util/__tests__/find-plugin.tests.ts (29.103 s)
|
|
18
18
|
|
|
19
19
|
Test Suites: 10 passed, 10 total
|
|
20
|
-
Tests:
|
|
20
|
+
Tests: 24 passed, 24 total
|
|
21
21
|
Snapshots: 0 total
|
|
22
|
-
Time: 30.
|
|
22
|
+
Time: 30.177 s
|
|
23
23
|
Ran all test suites.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# [15.3.0](https://github.com/core-ds/arui-scripts/compare/v15.2.0...v15.3.0) (2023-06-30)
|
|
2
2
|
|
|
3
|
+
## 20.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#335](https://github.com/core-ds/arui-scripts/pull/335) [`2562b34`](https://github.com/core-ds/arui-scripts/commit/2562b34f0670d174a572215df610ddfd0d64be41) Thanks [@dmitrbrvsk](https://github.com/dmitrbrvsk)! - 1. Удалено подключение полифилов из arui-feather. 2. arui-feather удален из списка `serverExternalsExemptions`.
|
|
8
|
+
|
|
9
|
+
Если вы по какой-то причине хотите вернуть это поведение:
|
|
10
|
+
|
|
11
|
+
1. Вы можете использовать настройку `clientPolyfillsEntry`, передав туда путь до файла с полифилами (`./node_modules/arui-feather/polyfills.js`)
|
|
12
|
+
2. Вы можете использовать оверрайд для `serverExternalsExemptions` и добавить туда regex для feather: `/^arui-feather/`.
|
|
13
|
+
|
|
14
|
+
- [#346](https://github.com/core-ds/arui-scripts/pull/346) [`bf3072e`](https://github.com/core-ds/arui-scripts/commit/bf3072e164d19179c05523900036a9841497cdcb) Thanks [@heymdall-legal](https://github.com/heymdall-legal)! - Изменены настройки минификации js кода. Минифицированный код больше НЕ поддерживает старые версии браузеров (safari 10, ie, chrome < 49).
|
|
15
|
+
|
|
16
|
+
Для большинства проектов это изменение не принесёт никаких проблем, но позволит сократить объем минифицированного кода на 5%.
|
|
17
|
+
|
|
18
|
+
Если вам по каким либо причинам нужно изменить это поведение - вы можете воспользоваться механизмом оверрайдов.
|
|
19
|
+
|
|
3
20
|
## 19.1.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.serverExternalsExemptions = void 0;
|
|
4
4
|
const apply_overrides_1 = require("./util/apply-overrides");
|
|
5
5
|
exports.serverExternalsExemptions = (0, apply_overrides_1.applyOverrides)('serverExternalsExemptions', [
|
|
6
|
-
/^arui-feather/,
|
|
7
6
|
/^arui-ft-private/,
|
|
8
7
|
/^arui-private/,
|
|
9
8
|
/^alfaform-core-ui/,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AppConfigs } from '../app-configs/types';
|
|
2
|
-
export declare function getPolyfills(config: AppConfigs
|
|
2
|
+
export declare function getPolyfills(config: AppConfigs): string[];
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getPolyfills = getPolyfills;
|
|
4
|
-
|
|
5
|
-
// на данный момент jest не дает возможности мокать require.resolve https://github.com/facebook/jest/issues/9543
|
|
6
|
-
function getPolyfills(config, requireResolve = require.resolve) {
|
|
4
|
+
function getPolyfills(config) {
|
|
7
5
|
const polyfills = [];
|
|
8
6
|
if (config.clientPolyfillsEntry && Array.isArray(config.clientPolyfillsEntry)) {
|
|
9
7
|
polyfills.push(...config.clientPolyfillsEntry);
|
|
@@ -11,16 +9,5 @@ function getPolyfills(config, requireResolve = require.resolve) {
|
|
|
11
9
|
else if (config.clientPolyfillsEntry) {
|
|
12
10
|
polyfills.push(config.clientPolyfillsEntry);
|
|
13
11
|
}
|
|
14
|
-
else {
|
|
15
|
-
// Для сохранения обратной совместимости нам надо добавлять полифилы из физера только тогда, когда пользователь
|
|
16
|
-
// не задал свои кастомные полифилы.
|
|
17
|
-
try {
|
|
18
|
-
const aruiPolyfills = requireResolve('arui-feather/polyfills');
|
|
19
|
-
polyfills.push(aruiPolyfills);
|
|
20
|
-
}
|
|
21
|
-
catch (error) {
|
|
22
|
-
// just ignore it
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
12
|
return polyfills;
|
|
26
13
|
}
|
|
@@ -58,44 +58,7 @@ function getMinimizeConfig(mode) {
|
|
|
58
58
|
return {
|
|
59
59
|
minimize: true,
|
|
60
60
|
minimizer: [
|
|
61
|
-
new terser_webpack_plugin_1.default(
|
|
62
|
-
terserOptions: {
|
|
63
|
-
parse: {
|
|
64
|
-
// we want terser to parse ecma 8 code. However, we don't want it
|
|
65
|
-
// to apply any minfication steps that turns valid ecma 5 code
|
|
66
|
-
// into invalid ecma 5 code. This is why the 'compress' and 'output'
|
|
67
|
-
// sections only apply transformations that are ecma 5 safe
|
|
68
|
-
// https://github.com/facebook/create-react-app/pull/4234
|
|
69
|
-
ecma: 2017,
|
|
70
|
-
},
|
|
71
|
-
compress: {
|
|
72
|
-
ecma: 5,
|
|
73
|
-
// Disabled because of an issue with Uglify breaking seemingly valid code:
|
|
74
|
-
// https://github.com/facebook/create-react-app/issues/2376
|
|
75
|
-
// Pending further investigation:
|
|
76
|
-
// https://github.com/mishoo/UglifyJS2/issues/2011
|
|
77
|
-
comparisons: false,
|
|
78
|
-
// Disabled because of an issue with Terser breaking valid code:
|
|
79
|
-
// https://github.com/facebook/create-react-app/issues/5250
|
|
80
|
-
// Pending futher investigation:
|
|
81
|
-
// https://github.com/terser-js/terser/issues/120
|
|
82
|
-
inline: 2,
|
|
83
|
-
},
|
|
84
|
-
mangle: {
|
|
85
|
-
safari10: true,
|
|
86
|
-
},
|
|
87
|
-
output: {
|
|
88
|
-
ecma: 5,
|
|
89
|
-
comments: false,
|
|
90
|
-
// Turned on because emoji and regex is not minified properly using default
|
|
91
|
-
// https://github.com/facebook/create-react-app/issues/2488
|
|
92
|
-
ascii_only: true,
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
// Use multi-process parallel running to improve the build speed
|
|
96
|
-
// Default number of concurrent runs: os.cpus().length - 1
|
|
97
|
-
parallel: true,
|
|
98
|
-
}),
|
|
61
|
+
new terser_webpack_plugin_1.default(),
|
|
99
62
|
new css_minimizer_webpack_plugin_1.default(),
|
|
100
63
|
].filter(Boolean),
|
|
101
64
|
};
|