@skyux/packages 11.1.0 → 11.2.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/package.json +48 -48
- package/src/schematics/migrations/migration-collection.json +7 -2
- package/src/schematics/migrations/update-11/remove-deprecation-eslint-plugin/remove-deprecation-eslint-plugin.schematic.d.ts +5 -0
- package/src/schematics/migrations/update-11/remove-deprecation-eslint-plugin/remove-deprecation-eslint-plugin.schematic.js +101 -0
- package/src/schematics/migrations/update-11/remove-deprecation-eslint-plugin/remove-deprecation-eslint-plugin.schematic.js.map +1 -0
- package/src/version.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/packages",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.2.0",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"description": "Handles the `ng update` command for SKY UX component libraries.",
|
|
6
6
|
"keywords": [
|
|
@@ -35,55 +35,55 @@
|
|
|
35
35
|
"ng-update": {
|
|
36
36
|
"migrations": "./src/schematics/migrations/migration-collection.json",
|
|
37
37
|
"packageGroup": {
|
|
38
|
-
"@skyux/packages": "11.
|
|
38
|
+
"@skyux/packages": "11.2.0",
|
|
39
39
|
"@blackbaud/angular-tree-component": "^1.0.0",
|
|
40
|
-
"@skyux-sdk/eslint-config": "11.
|
|
41
|
-
"@skyux-sdk/prettier-schematics": "11.
|
|
42
|
-
"@skyux-sdk/testing": "11.
|
|
43
|
-
"@skyux/a11y": "11.
|
|
44
|
-
"@skyux/action-bars": "11.
|
|
45
|
-
"@skyux/ag-grid": "11.
|
|
46
|
-
"@skyux/angular-tree-component": "11.
|
|
47
|
-
"@skyux/animations": "11.
|
|
48
|
-
"@skyux/assets": "11.
|
|
49
|
-
"@skyux/autonumeric": "11.
|
|
50
|
-
"@skyux/avatar": "11.
|
|
51
|
-
"@skyux/colorpicker": "11.
|
|
52
|
-
"@skyux/config": "11.
|
|
53
|
-
"@skyux/core": "11.
|
|
54
|
-
"@skyux/data-manager": "11.
|
|
55
|
-
"@skyux/datetime": "11.
|
|
56
|
-
"@skyux/errors": "11.
|
|
57
|
-
"@skyux/flyout": "11.
|
|
58
|
-
"@skyux/forms": "11.
|
|
59
|
-
"@skyux/grids": "11.
|
|
60
|
-
"@skyux/help-inline": "11.
|
|
61
|
-
"@skyux/i18n": "11.
|
|
40
|
+
"@skyux-sdk/eslint-config": "11.2.0",
|
|
41
|
+
"@skyux-sdk/prettier-schematics": "11.2.0",
|
|
42
|
+
"@skyux-sdk/testing": "11.2.0",
|
|
43
|
+
"@skyux/a11y": "11.2.0",
|
|
44
|
+
"@skyux/action-bars": "11.2.0",
|
|
45
|
+
"@skyux/ag-grid": "11.2.0",
|
|
46
|
+
"@skyux/angular-tree-component": "11.2.0",
|
|
47
|
+
"@skyux/animations": "11.2.0",
|
|
48
|
+
"@skyux/assets": "11.2.0",
|
|
49
|
+
"@skyux/autonumeric": "11.2.0",
|
|
50
|
+
"@skyux/avatar": "11.2.0",
|
|
51
|
+
"@skyux/colorpicker": "11.2.0",
|
|
52
|
+
"@skyux/config": "11.2.0",
|
|
53
|
+
"@skyux/core": "11.2.0",
|
|
54
|
+
"@skyux/data-manager": "11.2.0",
|
|
55
|
+
"@skyux/datetime": "11.2.0",
|
|
56
|
+
"@skyux/errors": "11.2.0",
|
|
57
|
+
"@skyux/flyout": "11.2.0",
|
|
58
|
+
"@skyux/forms": "11.2.0",
|
|
59
|
+
"@skyux/grids": "11.2.0",
|
|
60
|
+
"@skyux/help-inline": "11.2.0",
|
|
61
|
+
"@skyux/i18n": "11.2.0",
|
|
62
62
|
"@skyux/icons": "^7.8.0",
|
|
63
|
-
"@skyux/indicators": "11.
|
|
64
|
-
"@skyux/inline-form": "11.
|
|
65
|
-
"@skyux/layout": "11.
|
|
66
|
-
"@skyux/list-builder": "11.
|
|
67
|
-
"@skyux/list-builder-common": "11.
|
|
68
|
-
"@skyux/list-builder-view-checklist": "11.
|
|
69
|
-
"@skyux/list-builder-view-grids": "11.
|
|
70
|
-
"@skyux/lists": "11.
|
|
71
|
-
"@skyux/lookup": "11.
|
|
72
|
-
"@skyux/modals": "11.
|
|
73
|
-
"@skyux/navbar": "11.
|
|
74
|
-
"@skyux/pages": "11.
|
|
75
|
-
"@skyux/phone-field": "11.
|
|
76
|
-
"@skyux/popovers": "11.
|
|
77
|
-
"@skyux/progress-indicator": "11.
|
|
78
|
-
"@skyux/router": "11.
|
|
79
|
-
"@skyux/select-field": "11.
|
|
80
|
-
"@skyux/split-view": "11.
|
|
81
|
-
"@skyux/tabs": "11.
|
|
82
|
-
"@skyux/text-editor": "11.
|
|
83
|
-
"@skyux/theme": "11.
|
|
84
|
-
"@skyux/tiles": "11.
|
|
85
|
-
"@skyux/toast": "11.
|
|
86
|
-
"@skyux/validation": "11.
|
|
63
|
+
"@skyux/indicators": "11.2.0",
|
|
64
|
+
"@skyux/inline-form": "11.2.0",
|
|
65
|
+
"@skyux/layout": "11.2.0",
|
|
66
|
+
"@skyux/list-builder": "11.2.0",
|
|
67
|
+
"@skyux/list-builder-common": "11.2.0",
|
|
68
|
+
"@skyux/list-builder-view-checklist": "11.2.0",
|
|
69
|
+
"@skyux/list-builder-view-grids": "11.2.0",
|
|
70
|
+
"@skyux/lists": "11.2.0",
|
|
71
|
+
"@skyux/lookup": "11.2.0",
|
|
72
|
+
"@skyux/modals": "11.2.0",
|
|
73
|
+
"@skyux/navbar": "11.2.0",
|
|
74
|
+
"@skyux/pages": "11.2.0",
|
|
75
|
+
"@skyux/phone-field": "11.2.0",
|
|
76
|
+
"@skyux/popovers": "11.2.0",
|
|
77
|
+
"@skyux/progress-indicator": "11.2.0",
|
|
78
|
+
"@skyux/router": "11.2.0",
|
|
79
|
+
"@skyux/select-field": "11.2.0",
|
|
80
|
+
"@skyux/split-view": "11.2.0",
|
|
81
|
+
"@skyux/tabs": "11.2.0",
|
|
82
|
+
"@skyux/text-editor": "11.2.0",
|
|
83
|
+
"@skyux/theme": "11.2.0",
|
|
84
|
+
"@skyux/tiles": "11.2.0",
|
|
85
|
+
"@skyux/toast": "11.2.0",
|
|
86
|
+
"@skyux/validation": "11.2.0",
|
|
87
87
|
"ag-grid-angular": "^32.1.0",
|
|
88
88
|
"ag-grid-community": "^32.1.0",
|
|
89
89
|
"ag-grid-enterprise": "^32.1.0",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schematics": {
|
|
3
3
|
"noop": {
|
|
4
|
-
"version": "11.
|
|
4
|
+
"version": "11.2.0",
|
|
5
5
|
"factory": "./noop/noop.schematic",
|
|
6
6
|
"description": "Update all SKY UX component packages"
|
|
7
7
|
},
|
|
8
8
|
"workspace-check": {
|
|
9
|
-
"version": "11.
|
|
9
|
+
"version": "11.2.0",
|
|
10
10
|
"factory": "./update-11/workspace-check/workspace-check.schematic",
|
|
11
11
|
"description": "Log warnings if the workspace is not configured correctly."
|
|
12
12
|
},
|
|
@@ -54,6 +54,11 @@
|
|
|
54
54
|
"version": "11.0.0",
|
|
55
55
|
"factory": "./update-11/remove-old-compat-stylesheets/remove-old-compat-stylesheets.schematic",
|
|
56
56
|
"description": "Remove backward compatible stylesheets for older versions of SKY UX."
|
|
57
|
+
},
|
|
58
|
+
"remove-deprecation-eslint-plugin": {
|
|
59
|
+
"version": "11.2.0",
|
|
60
|
+
"factory": "./update-11/remove-deprecation-eslint-plugin/remove-deprecation-eslint-plugin.schematic",
|
|
61
|
+
"description": "Remove ESLint deprecation plugin which is not compatible with ESLint 9."
|
|
57
62
|
}
|
|
58
63
|
}
|
|
59
64
|
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = removeDeprecationPlugin;
|
|
4
|
+
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
5
|
+
const dependencies_1 = require("@schematics/angular/utility/dependencies");
|
|
6
|
+
const json_file_1 = require("../../../utility/json-file");
|
|
7
|
+
const visit_project_files_1 = require("../../../utility/visit-project-files");
|
|
8
|
+
function modifyCodeComments(tree) {
|
|
9
|
+
(0, visit_project_files_1.visitProjectFiles)(tree, '', (path, entry) => {
|
|
10
|
+
if (!path.endsWith('.ts')) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
const content = entry?.content.toString();
|
|
14
|
+
if (!content) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
const recorder = tree.beginUpdate(path);
|
|
18
|
+
if (content.includes('deprecation/deprecation')) {
|
|
19
|
+
const instances = content.matchAll(/\bdeprecation\/deprecation\b/g);
|
|
20
|
+
for (const instance of instances) {
|
|
21
|
+
recorder.remove(instance.index, instance[0].length);
|
|
22
|
+
recorder.insertRight(instance.index, '@typescript-eslint/no-deprecated');
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
tree.commitUpdate(recorder);
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
function switchRuleReference(eslintConfig, rules, overrideIndex) {
|
|
29
|
+
if (rules) {
|
|
30
|
+
const deprecationRule = rules['deprecation/deprecation'];
|
|
31
|
+
if (deprecationRule) {
|
|
32
|
+
rules['@typescript-eslint/no-deprecated'] = deprecationRule;
|
|
33
|
+
delete rules['deprecation/deprecation'];
|
|
34
|
+
if (overrideIndex !== undefined) {
|
|
35
|
+
eslintConfig.modify(['overrides', overrideIndex, 'rules'], rules);
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
eslintConfig.modify(['rules'], rules);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
function removePluginReference(eslintConfig, plugins, overrideIndex) {
|
|
44
|
+
if (plugins) {
|
|
45
|
+
plugins = plugins.filter((plugin) => plugin !== 'deprecation');
|
|
46
|
+
if (overrideIndex !== undefined) {
|
|
47
|
+
eslintConfig.modify(['overrides', overrideIndex, 'plugins'], plugins);
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
eslintConfig.modify(['plugins'], plugins);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Remove the deprecation ESLint plugin as it is not compatible with ESLint 9. A new compatible rule is now set using `@typescript/eslint`
|
|
56
|
+
*/
|
|
57
|
+
function removeDeprecationPlugin() {
|
|
58
|
+
return (tree, context) => {
|
|
59
|
+
if ((0, dependencies_1.getPackageJsonDependency)(tree, '@skyux-sdk/eslint-config') !== null) {
|
|
60
|
+
const packageJsonPath = '/package.json';
|
|
61
|
+
const filePath = '/.eslintrc.json';
|
|
62
|
+
let eslintConfig;
|
|
63
|
+
try {
|
|
64
|
+
eslintConfig = new json_file_1.JsonFile(tree, filePath);
|
|
65
|
+
const overrides = eslintConfig.get(['overrides']);
|
|
66
|
+
if (overrides) {
|
|
67
|
+
overrides.forEach((_, index) => {
|
|
68
|
+
if (eslintConfig) {
|
|
69
|
+
const overridesRules = eslintConfig?.get([
|
|
70
|
+
'overrides',
|
|
71
|
+
index,
|
|
72
|
+
'rules',
|
|
73
|
+
]);
|
|
74
|
+
switchRuleReference(eslintConfig, overridesRules, index);
|
|
75
|
+
const overridePlugins = eslintConfig?.get([
|
|
76
|
+
'overrides',
|
|
77
|
+
index,
|
|
78
|
+
'plugins',
|
|
79
|
+
]);
|
|
80
|
+
removePluginReference(eslintConfig, overridePlugins, index);
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
const baseRules = eslintConfig.get(['rules']);
|
|
85
|
+
if (baseRules) {
|
|
86
|
+
switchRuleReference(eslintConfig, baseRules);
|
|
87
|
+
}
|
|
88
|
+
const basePlugins = eslintConfig.get(['plugins']);
|
|
89
|
+
if (basePlugins) {
|
|
90
|
+
removePluginReference(eslintConfig, basePlugins);
|
|
91
|
+
}
|
|
92
|
+
modifyCodeComments(tree);
|
|
93
|
+
}
|
|
94
|
+
finally {
|
|
95
|
+
(0, dependencies_1.removePackageJsonDependency)(tree, 'eslint-plugin-deprecation', packageJsonPath);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=remove-deprecation-eslint-plugin.schematic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-deprecation-eslint-plugin.schematic.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/packages/src/schematics/migrations/update-11/remove-deprecation-eslint-plugin/remove-deprecation-eslint-plugin.schematic.ts"],"names":[],"mappings":";;AA6EA,0CAwDC;AApID,4DAA0E;AAC1E,2EAGkD;AAElD,0DAAsD;AACtD,8EAAyE;AAEzE,SAAS,kBAAkB,CAAC,IAAU;IACpC,IAAA,uCAAiB,EAAC,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;QAC1C,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YAC1B,OAAO;QACT,CAAC;QACD,MAAM,OAAO,GAAG,KAAK,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO;QACT,CAAC;QAED,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAExC,IAAI,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC,EAAE,CAAC;YAChD,MAAM,SAAS,GAAG,OAAO,CAAC,QAAQ,CAAC,+BAA+B,CAAC,CAAC;YACpE,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;gBACjC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;gBACpD,QAAQ,CAAC,WAAW,CAClB,QAAQ,CAAC,KAAK,EACd,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