@pnp/cli-microsoft365-spfx-toolkit 1.10.0 → 1.12.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.
Files changed (22) hide show
  1. package/.eslintcache +1 -1
  2. package/dist/m365/spfx/commands/SpfxCompatibilityMatrix.js +661 -0
  3. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.23.0.js +21 -0
  4. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.23.2.js +21 -0
  5. package/dist/m365/spfx/commands/project/project-doctor.js +9 -1
  6. package/dist/m365/spfx/commands/project/project-upgrade/rules/DependencyRule.js +11 -5
  7. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002021_DEVDEP_rushstack_eslint_config.js +2 -2
  8. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002032_DEVDEP_typescript_eslint_parser.js +2 -2
  9. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002035_DEVDEP_types_heft_jest.js +2 -2
  10. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002036_DEVDEP_types_jest.js +14 -0
  11. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015008_FILE_eslintrc_js.js +1 -1
  12. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015016_FILE_eslint_config_js.js +14 -0
  13. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN027001_OVERRIDES_rushstack_heft.js +38 -0
  14. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.22.0.js +2 -2
  15. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.23.0.js +94 -0
  16. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.23.2.js +57 -0
  17. package/dist/m365/spfx/commands/project/project-upgrade.js +26 -7
  18. package/dist/m365/spfx/commands/spfx-doctor.js +53 -676
  19. package/dist/utils/packageManager.js +38 -7
  20. package/npm-shrinkwrap.json +12 -13
  21. package/package.json +2 -2
  22. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021009_PKG_overrides_rushstack_heft.js +0 -49
@@ -87,7 +87,9 @@ class SpfxProjectDoctorCommand extends base_project_command_1.BaseProjectCommand
87
87
  '1.21.1',
88
88
  '1.22.0',
89
89
  '1.22.1',
90
- '1.22.2'
90
+ '1.22.2',
91
+ '1.23.0',
92
+ '1.23.2'
91
93
  ];
92
94
  __classPrivateFieldGet(this, _SpfxProjectDoctorCommand_instances, "m", _SpfxProjectDoctorCommand_initTelemetry).call(this);
93
95
  __classPrivateFieldGet(this, _SpfxProjectDoctorCommand_instances, "m", _SpfxProjectDoctorCommand_initOptions).call(this);
@@ -321,6 +323,8 @@ ${f.resolution}
321
323
  const packagesDepExact = [];
322
324
  const packagesDepUn = [];
323
325
  const packagesDevUn = [];
326
+ const packagesOverride = [];
327
+ const packagesOverrideRemove = [];
324
328
  findings.forEach(f => {
325
329
  packageManager_1.packageManager.mapPackageManagerCommand({
326
330
  command: f.resolution,
@@ -328,6 +332,8 @@ ${f.resolution}
328
332
  packagesDepExact,
329
333
  packagesDepUn,
330
334
  packagesDevUn,
335
+ packagesOverride,
336
+ packagesOverrideRemove,
331
337
  packageMgr: this.packageManager
332
338
  });
333
339
  });
@@ -336,6 +342,8 @@ ${f.resolution}
336
342
  packagesDevExact,
337
343
  packagesDepUn,
338
344
  packagesDevUn,
345
+ packagesOverride,
346
+ packagesOverrideRemove,
339
347
  packageMgr: this.packageManager
340
348
  });
341
349
  if (this.packageManager === 'npm') {
@@ -10,22 +10,28 @@ exports.DependencyRule = void 0;
10
10
  const semver = require("semver");
11
11
  const JsonRule_1 = require("../../JsonRule");
12
12
  class DependencyRule extends JsonRule_1.JsonRule {
13
- constructor(packageName, packageVersion, isDevDep = false, isOptional = false, add = true) {
13
+ constructor(packageName, packageVersion, isDevDep = false, isOptional = false, add = true, isOverride = false) {
14
14
  super();
15
15
  this.packageName = packageName;
16
16
  this.packageVersion = packageVersion;
17
17
  this.isDevDep = isDevDep;
18
18
  this.isOptional = isOptional;
19
19
  this.add = add;
20
+ this.isOverride = isOverride;
20
21
  _DependencyRule_instances.add(this);
21
22
  }
22
23
  get title() {
23
24
  return this.packageName;
24
25
  }
25
26
  get description() {
26
- return `${(this.add ? 'Upgrade' : 'Remove')} SharePoint Framework ${(this.isDevDep ? 'dev ' : '')}dependency package ${this.packageName}`;
27
+ return `${(this.add ? 'Upgrade' : 'Remove')} SharePoint Framework ${(this.isOverride ? 'override ' : this.isDevDep ? 'dev ' : '')}dependency package ${this.packageName}`;
27
28
  }
28
29
  get resolution() {
30
+ if (this.isOverride) {
31
+ return this.add ?
32
+ `override overrides.${this.packageName}=${this.packageVersion}` :
33
+ `removeOverride overrides.${this.packageName}`;
34
+ }
29
35
  return this.add ?
30
36
  `${(this.isDevDep ? 'installDev' : 'install')} ${this.packageName}@${this.packageVersion}` :
31
37
  `${(this.isDevDep ? 'uninstallDev' : 'uninstall')} ${this.packageName}`;
@@ -47,10 +53,10 @@ class DependencyRule extends JsonRule_1.JsonRule {
47
53
  if (!project.packageJson) {
48
54
  return;
49
55
  }
50
- const projectDependencies = this.isDevDep ? project.packageJson.devDependencies : project.packageJson.dependencies;
56
+ const projectDependencies = this.isOverride ? project.packageJson.overrides : this.isDevDep ? project.packageJson.devDependencies : project.packageJson.dependencies;
51
57
  const versionEntry = projectDependencies ? projectDependencies[this.packageName] : '';
52
58
  if (this.add) {
53
- let jsonProperty = this.isDevDep ? 'devDependencies' : 'dependencies';
59
+ let jsonProperty = this.isOverride ? 'overrides' : this.isDevDep ? 'devDependencies' : 'dependencies';
54
60
  if (versionEntry) {
55
61
  jsonProperty += `.${this.packageName}`;
56
62
  if (__classPrivateFieldGet(this, _DependencyRule_instances, "m", _DependencyRule_needsUpdate).call(this, this.packageVersion, versionEntry)) {
@@ -70,7 +76,7 @@ class DependencyRule extends JsonRule_1.JsonRule {
70
76
  }
71
77
  }
72
78
  else {
73
- const jsonProperty = `${(this.isDevDep ? 'devDependencies' : 'dependencies')}.${this.packageName}`;
79
+ const jsonProperty = `${(this.isOverride ? 'overrides' : this.isDevDep ? 'devDependencies' : 'dependencies')}.${this.packageName}`;
74
80
  if (versionEntry) {
75
81
  const node = this.getAstNodeFromFile(project.packageJson, jsonProperty);
76
82
  this.addFindingWithPosition(findings, node);
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FN002021_DEVDEP_rushstack_eslint_config = void 0;
4
4
  const DependencyRule_1 = require("./DependencyRule");
5
5
  class FN002021_DEVDEP_rushstack_eslint_config extends DependencyRule_1.DependencyRule {
6
- constructor(packageVersion) {
7
- super('@rushstack/eslint-config', packageVersion, true);
6
+ constructor(packageVersion, add = true) {
7
+ super('@rushstack/eslint-config', packageVersion, true, false, add);
8
8
  }
9
9
  get id() {
10
10
  return 'FN002021';
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FN002032_DEVDEP_typescript_eslint_parser = void 0;
4
4
  const DependencyRule_1 = require("./DependencyRule");
5
5
  class FN002032_DEVDEP_typescript_eslint_parser extends DependencyRule_1.DependencyRule {
6
- constructor(packageVersion) {
7
- super('@typescript-eslint/parser', packageVersion, true);
6
+ constructor(packageVersion, add = true) {
7
+ super('@typescript-eslint/parser', packageVersion, true, false, add);
8
8
  }
9
9
  get id() {
10
10
  return 'FN002032';
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FN002035_DEVDEP_types_heft_jest = void 0;
4
4
  const DependencyRule_1 = require("./DependencyRule");
5
5
  class FN002035_DEVDEP_types_heft_jest extends DependencyRule_1.DependencyRule {
6
- constructor(packageVersion) {
7
- super('@types/heft-jest', packageVersion, true);
6
+ constructor(packageVersion, add = true) {
7
+ super('@types/heft-jest', packageVersion, true, false, add);
8
8
  }
9
9
  get id() {
10
10
  return 'FN002035';
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FN002036_DEVDEP_types_jest = void 0;
4
+ const DependencyRule_js_1 = require("./DependencyRule.js");
5
+ class FN002036_DEVDEP_types_jest extends DependencyRule_js_1.DependencyRule {
6
+ constructor(packageVersion) {
7
+ super('@types/jest', packageVersion, true);
8
+ }
9
+ get id() {
10
+ return 'FN002036';
11
+ }
12
+ }
13
+ exports.FN002036_DEVDEP_types_jest = FN002036_DEVDEP_types_jest;
14
+ //# sourceMappingURL=FN002036_DEVDEP_types_jest.js.map
@@ -11,7 +11,7 @@ class FN015008_FILE_eslintrc_js extends FileAddRemoveRule_1.FileAddRemoveRule {
11
11
  return 'FN015008';
12
12
  }
13
13
  visit(project, notifications) {
14
- if (spfx_1.spfx.isReactProject(project)) {
14
+ if (spfx_1.spfx.isReactProject(project) && this.contents) {
15
15
  this.contents = this.contents.replace('@microsoft/eslint-config-spfx/lib/profiles/default', '@microsoft/eslint-config-spfx/lib/profiles/react');
16
16
  }
17
17
  super.visit(project, notifications);
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FN015016_FILE_eslint_config_js = void 0;
4
+ const FileAddRemoveRule_1 = require("./FileAddRemoveRule");
5
+ class FN015016_FILE_eslint_config_js extends FileAddRemoveRule_1.FileAddRemoveRule {
6
+ constructor(add, contents) {
7
+ super('./eslint.config.js', add, contents);
8
+ }
9
+ get id() {
10
+ return 'FN015016';
11
+ }
12
+ }
13
+ exports.FN015016_FILE_eslint_config_js = FN015016_FILE_eslint_config_js;
14
+ //# sourceMappingURL=FN015016_FILE_eslint_config_js.js.map
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FN027001_OVERRIDES_rushstack_heft = void 0;
4
+ const DependencyRule_js_1 = require("./DependencyRule.js");
5
+ class FN027001_OVERRIDES_rushstack_heft extends DependencyRule_js_1.DependencyRule {
6
+ constructor(version) {
7
+ super('@rushstack/heft', version, false, false, true, true);
8
+ }
9
+ get id() {
10
+ return 'FN027001';
11
+ }
12
+ visit(project, findings) {
13
+ var _a, _b;
14
+ // If an override entry for the package already exists in package.json,
15
+ // emit an extra finding to remove the existing override first. This avoids
16
+ // having to use a separate remove-override rule (e.g. FN027002) in the upgrade scripts.
17
+ if (((_b = (_a = project.packageJson) === null || _a === void 0 ? void 0 : _a.overrides) === null || _b === void 0 ? void 0 : _b[this.packageName]) &&
18
+ project.packageJson.overrides[this.packageName] !== this.packageVersion) {
19
+ const node = this.getAstNodeFromFile(project.packageJson, `overrides.${this.packageName}`);
20
+ findings.push({
21
+ id: `${this.id}_REMOVE`,
22
+ title: this.packageName,
23
+ description: `Remove existing SharePoint Framework override dependency package ${this.packageName}`,
24
+ occurrences: [{
25
+ file: this.file,
26
+ resolution: `removeOverride overrides.${this.packageName}`,
27
+ position: this.getPositionFromNode(node)
28
+ }],
29
+ resolutionType: 'cmd',
30
+ severity: 'Required',
31
+ supersedes: []
32
+ });
33
+ }
34
+ super.visit(project, findings);
35
+ }
36
+ }
37
+ exports.FN027001_OVERRIDES_rushstack_heft = FN027001_OVERRIDES_rushstack_heft;
38
+ //# sourceMappingURL=FN027001_OVERRIDES_rushstack_heft.js.map
@@ -50,7 +50,7 @@ const FN021005_PKG_scripts_test_1 = require("./rules/FN021005_PKG_scripts_test")
50
50
  const FN021006_PKG_scripts_clean_1 = require("./rules/FN021006_PKG_scripts_clean");
51
51
  const FN021007_PKG_scripts_start_1 = require("./rules/FN021007_PKG_scripts_start");
52
52
  const FN021008_PKG_scripts_eject_webpack_1 = require("./rules/FN021008_PKG_scripts_eject_webpack");
53
- const FN021009_PKG_overrides_rushstack_heft_1 = require("./rules/FN021009_PKG_overrides_rushstack_heft");
53
+ const FN027001_OVERRIDES_rushstack_heft_1 = require("./rules/FN027001_OVERRIDES_rushstack_heft");
54
54
  const FN023003_GITIGNORE_libdts_1 = require("./rules/FN023003_GITIGNORE_libdts");
55
55
  const FN023004_GITIGNORE_libcommonjs_1 = require("./rules/FN023004_GITIGNORE_libcommonjs");
56
56
  const FN023005_GITIGNORE_libesm_1 = require("./rules/FN023005_GITIGNORE_libesm");
@@ -153,7 +153,7 @@ module.exports = [
153
153
  new FN021006_PKG_scripts_clean_1.FN021006_PKG_scripts_clean('heft clean'),
154
154
  new FN021007_PKG_scripts_start_1.FN021007_PKG_scripts_start('heft start --clean'),
155
155
  new FN021008_PKG_scripts_eject_webpack_1.FN021008_PKG_scripts_eject_webpack('heft eject-webpack'),
156
- new FN021009_PKG_overrides_rushstack_heft_1.FN021009_PKG_overrides_rushstack_heft('1.1.2'),
156
+ new FN027001_OVERRIDES_rushstack_heft_1.FN027001_OVERRIDES_rushstack_heft('1.1.2'),
157
157
  new FN023003_GITIGNORE_libdts_1.FN023003_GITIGNORE_libdts(),
158
158
  new FN023004_GITIGNORE_libcommonjs_1.FN023004_GITIGNORE_libcommonjs(),
159
159
  new FN023005_GITIGNORE_libesm_1.FN023005_GITIGNORE_libesm(),
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const FN001001_DEP_microsoft_sp_core_library_1 = require("./rules/FN001001_DEP_microsoft_sp_core_library");
4
+ const FN001002_DEP_microsoft_sp_lodash_subset_1 = require("./rules/FN001002_DEP_microsoft_sp_lodash_subset");
5
+ const FN001003_DEP_microsoft_sp_office_ui_fabric_core_1 = require("./rules/FN001003_DEP_microsoft_sp_office_ui_fabric_core");
6
+ const FN001004_DEP_microsoft_sp_webpart_base_1 = require("./rules/FN001004_DEP_microsoft_sp_webpart_base");
7
+ const FN001011_DEP_microsoft_sp_dialog_1 = require("./rules/FN001011_DEP_microsoft_sp_dialog");
8
+ const FN001012_DEP_microsoft_sp_application_base_1 = require("./rules/FN001012_DEP_microsoft_sp_application_base");
9
+ const FN001013_DEP_microsoft_decorators_1 = require("./rules/FN001013_DEP_microsoft_decorators");
10
+ const FN001014_DEP_microsoft_sp_listview_extensibility_1 = require("./rules/FN001014_DEP_microsoft_sp_listview_extensibility");
11
+ const FN001021_DEP_microsoft_sp_property_pane_1 = require("./rules/FN001021_DEP_microsoft_sp_property_pane");
12
+ const FN001023_DEP_microsoft_sp_component_base_1 = require("./rules/FN001023_DEP_microsoft_sp_component_base");
13
+ const FN001024_DEP_microsoft_sp_diagnostics_1 = require("./rules/FN001024_DEP_microsoft_sp_diagnostics");
14
+ const FN001025_DEP_microsoft_sp_dynamic_data_1 = require("./rules/FN001025_DEP_microsoft_sp_dynamic_data");
15
+ const FN001026_DEP_microsoft_sp_extension_base_1 = require("./rules/FN001026_DEP_microsoft_sp_extension_base");
16
+ const FN001027_DEP_microsoft_sp_http_1 = require("./rules/FN001027_DEP_microsoft_sp_http");
17
+ const FN001028_DEP_microsoft_sp_list_subscription_1 = require("./rules/FN001028_DEP_microsoft_sp_list_subscription");
18
+ const FN001029_DEP_microsoft_sp_loader_1 = require("./rules/FN001029_DEP_microsoft_sp_loader");
19
+ const FN001030_DEP_microsoft_sp_module_interfaces_1 = require("./rules/FN001030_DEP_microsoft_sp_module_interfaces");
20
+ const FN001031_DEP_microsoft_sp_odata_types_1 = require("./rules/FN001031_DEP_microsoft_sp_odata_types");
21
+ const FN001032_DEP_microsoft_sp_page_context_1 = require("./rules/FN001032_DEP_microsoft_sp_page_context");
22
+ const FN001034_DEP_microsoft_sp_adaptive_card_extension_base_1 = require("./rules/FN001034_DEP_microsoft_sp_adaptive_card_extension_base");
23
+ const FN002002_DEVDEP_microsoft_sp_module_interfaces_1 = require("./rules/FN002002_DEVDEP_microsoft_sp_module_interfaces");
24
+ const FN002021_DEVDEP_rushstack_eslint_config_1 = require("./rules/FN002021_DEVDEP_rushstack_eslint_config");
25
+ const FN002022_DEVDEP_microsoft_eslint_plugin_spfx_1 = require("./rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx");
26
+ const FN002023_DEVDEP_microsoft_eslint_config_spfx_1 = require("./rules/FN002023_DEVDEP_microsoft_eslint_config_spfx");
27
+ const FN002024_DEVDEP_eslint_1 = require("./rules/FN002024_DEVDEP_eslint");
28
+ const FN002025_DEVDEP_eslint_plugin_react_hooks_1 = require("./rules/FN002025_DEVDEP_eslint_plugin_react_hooks");
29
+ const FN002030_DEVDEP_microsoft_spfx_web_build_rig_1 = require("./rules/FN002030_DEVDEP_microsoft_spfx_web_build_rig");
30
+ const FN002031_DEVDEP_rushstack_heft_1 = require("./rules/FN002031_DEVDEP_rushstack_heft");
31
+ const FN002032_DEVDEP_typescript_eslint_parser_1 = require("./rules/FN002032_DEVDEP_typescript_eslint_parser");
32
+ const FN002034_DEVDEP_microsoft_spfx_heft_plugins_1 = require("./rules/FN002034_DEVDEP_microsoft_spfx_heft_plugins");
33
+ const FN002035_DEVDEP_types_heft_jest_1 = require("./rules/FN002035_DEVDEP_types_heft_jest");
34
+ const FN002036_DEVDEP_types_jest_1 = require("./rules/FN002036_DEVDEP_types_jest");
35
+ const FN010001_YORC_version_1 = require("./rules/FN010001_YORC_version");
36
+ const FN015008_FILE_eslintrc_js_1 = require("./rules/FN015008_FILE_eslintrc_js");
37
+ const FN015016_FILE_eslint_config_js_1 = require("./rules/FN015016_FILE_eslint_config_js");
38
+ const FN022001_SCSS_remove_fabric_react_1 = require("./rules/FN022001_SCSS_remove_fabric_react");
39
+ const FN022002_SCSS_add_fabric_react_1 = require("./rules/FN022002_SCSS_add_fabric_react");
40
+ const FN027001_OVERRIDES_rushstack_heft_1 = require("./rules/FN027001_OVERRIDES_rushstack_heft");
41
+ module.exports = [
42
+ new FN001001_DEP_microsoft_sp_core_library_1.FN001001_DEP_microsoft_sp_core_library('1.23.0'),
43
+ new FN001002_DEP_microsoft_sp_lodash_subset_1.FN001002_DEP_microsoft_sp_lodash_subset('1.23.0'),
44
+ new FN001003_DEP_microsoft_sp_office_ui_fabric_core_1.FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.23.0'),
45
+ new FN001004_DEP_microsoft_sp_webpart_base_1.FN001004_DEP_microsoft_sp_webpart_base('1.23.0'),
46
+ new FN001011_DEP_microsoft_sp_dialog_1.FN001011_DEP_microsoft_sp_dialog('1.23.0'),
47
+ new FN001012_DEP_microsoft_sp_application_base_1.FN001012_DEP_microsoft_sp_application_base('1.23.0'),
48
+ new FN001014_DEP_microsoft_sp_listview_extensibility_1.FN001014_DEP_microsoft_sp_listview_extensibility('1.23.0'),
49
+ new FN001021_DEP_microsoft_sp_property_pane_1.FN001021_DEP_microsoft_sp_property_pane('1.23.0'),
50
+ new FN001023_DEP_microsoft_sp_component_base_1.FN001023_DEP_microsoft_sp_component_base('1.23.0'),
51
+ new FN001024_DEP_microsoft_sp_diagnostics_1.FN001024_DEP_microsoft_sp_diagnostics('1.23.0'),
52
+ new FN001025_DEP_microsoft_sp_dynamic_data_1.FN001025_DEP_microsoft_sp_dynamic_data('1.23.0'),
53
+ new FN001026_DEP_microsoft_sp_extension_base_1.FN001026_DEP_microsoft_sp_extension_base('1.23.0'),
54
+ new FN001027_DEP_microsoft_sp_http_1.FN001027_DEP_microsoft_sp_http('1.23.0'),
55
+ new FN001028_DEP_microsoft_sp_list_subscription_1.FN001028_DEP_microsoft_sp_list_subscription('1.23.0'),
56
+ new FN001029_DEP_microsoft_sp_loader_1.FN001029_DEP_microsoft_sp_loader('1.23.0'),
57
+ new FN001030_DEP_microsoft_sp_module_interfaces_1.FN001030_DEP_microsoft_sp_module_interfaces('1.23.0'),
58
+ new FN001031_DEP_microsoft_sp_odata_types_1.FN001031_DEP_microsoft_sp_odata_types('1.23.0'),
59
+ new FN001032_DEP_microsoft_sp_page_context_1.FN001032_DEP_microsoft_sp_page_context('1.23.0'),
60
+ new FN001013_DEP_microsoft_decorators_1.FN001013_DEP_microsoft_decorators('1.23.0'),
61
+ new FN001034_DEP_microsoft_sp_adaptive_card_extension_base_1.FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.23.0'),
62
+ new FN002002_DEVDEP_microsoft_sp_module_interfaces_1.FN002002_DEVDEP_microsoft_sp_module_interfaces('1.23.0'),
63
+ new FN002022_DEVDEP_microsoft_eslint_plugin_spfx_1.FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.23.0'),
64
+ new FN002023_DEVDEP_microsoft_eslint_config_spfx_1.FN002023_DEVDEP_microsoft_eslint_config_spfx('1.23.0'),
65
+ new FN002030_DEVDEP_microsoft_spfx_web_build_rig_1.FN002030_DEVDEP_microsoft_spfx_web_build_rig('1.23.0'),
66
+ new FN002034_DEVDEP_microsoft_spfx_heft_plugins_1.FN002034_DEVDEP_microsoft_spfx_heft_plugins('1.23.0'),
67
+ new FN010001_YORC_version_1.FN010001_YORC_version('1.23.0'),
68
+ new FN002031_DEVDEP_rushstack_heft_1.FN002031_DEVDEP_rushstack_heft('1.2.17'),
69
+ new FN027001_OVERRIDES_rushstack_heft_1.FN027001_OVERRIDES_rushstack_heft('1.2.17'),
70
+ new FN002025_DEVDEP_eslint_plugin_react_hooks_1.FN002025_DEVDEP_eslint_plugin_react_hooks('5.2.0'),
71
+ new FN002024_DEVDEP_eslint_1.FN002024_DEVDEP_eslint('9.37.0'),
72
+ new FN015016_FILE_eslint_config_js_1.FN015016_FILE_eslint_config_js(true, `const spfxProfile = require('@microsoft/eslint-config-spfx/lib/flat-profiles/react');
73
+
74
+ module.exports = [
75
+ ...spfxProfile,
76
+ {
77
+ files: ['**/*.ts', '**/*.tsx'],
78
+ languageOptions: {
79
+ parserOptions: {
80
+ tsconfigRootDir: __dirname,
81
+ project: './tsconfig.json'
82
+ }
83
+ }
84
+ }
85
+ ];`),
86
+ new FN015008_FILE_eslintrc_js_1.FN015008_FILE_eslintrc_js(false),
87
+ new FN002021_DEVDEP_rushstack_eslint_config_1.FN002021_DEVDEP_rushstack_eslint_config('4.5.2', false),
88
+ new FN002032_DEVDEP_typescript_eslint_parser_1.FN002032_DEVDEP_typescript_eslint_parser('8.46.2', false),
89
+ new FN002035_DEVDEP_types_heft_jest_1.FN002035_DEVDEP_types_heft_jest('1.0.2', false),
90
+ new FN002036_DEVDEP_types_jest_1.FN002036_DEVDEP_types_jest('30.0.0'),
91
+ new FN022001_SCSS_remove_fabric_react_1.FN022001_SCSS_remove_fabric_react('~@fluentui/react/dist/sass/References.scss'),
92
+ new FN022002_SCSS_add_fabric_react_1.FN022002_SCSS_add_fabric_react('pkg:@fluentui/react/dist/sass/References.scss')
93
+ ];
94
+ //# sourceMappingURL=upgrade-1.23.0.js.map
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const FN001001_DEP_microsoft_sp_core_library_1 = require("./rules/FN001001_DEP_microsoft_sp_core_library");
4
+ const FN001002_DEP_microsoft_sp_lodash_subset_1 = require("./rules/FN001002_DEP_microsoft_sp_lodash_subset");
5
+ const FN001003_DEP_microsoft_sp_office_ui_fabric_core_1 = require("./rules/FN001003_DEP_microsoft_sp_office_ui_fabric_core");
6
+ const FN001004_DEP_microsoft_sp_webpart_base_1 = require("./rules/FN001004_DEP_microsoft_sp_webpart_base");
7
+ const FN001011_DEP_microsoft_sp_dialog_1 = require("./rules/FN001011_DEP_microsoft_sp_dialog");
8
+ const FN001012_DEP_microsoft_sp_application_base_1 = require("./rules/FN001012_DEP_microsoft_sp_application_base");
9
+ const FN001013_DEP_microsoft_decorators_1 = require("./rules/FN001013_DEP_microsoft_decorators");
10
+ const FN001014_DEP_microsoft_sp_listview_extensibility_1 = require("./rules/FN001014_DEP_microsoft_sp_listview_extensibility");
11
+ const FN001021_DEP_microsoft_sp_property_pane_1 = require("./rules/FN001021_DEP_microsoft_sp_property_pane");
12
+ const FN001023_DEP_microsoft_sp_component_base_1 = require("./rules/FN001023_DEP_microsoft_sp_component_base");
13
+ const FN001024_DEP_microsoft_sp_diagnostics_1 = require("./rules/FN001024_DEP_microsoft_sp_diagnostics");
14
+ const FN001025_DEP_microsoft_sp_dynamic_data_1 = require("./rules/FN001025_DEP_microsoft_sp_dynamic_data");
15
+ const FN001026_DEP_microsoft_sp_extension_base_1 = require("./rules/FN001026_DEP_microsoft_sp_extension_base");
16
+ const FN001027_DEP_microsoft_sp_http_1 = require("./rules/FN001027_DEP_microsoft_sp_http");
17
+ const FN001028_DEP_microsoft_sp_list_subscription_1 = require("./rules/FN001028_DEP_microsoft_sp_list_subscription");
18
+ const FN001029_DEP_microsoft_sp_loader_1 = require("./rules/FN001029_DEP_microsoft_sp_loader");
19
+ const FN001030_DEP_microsoft_sp_module_interfaces_1 = require("./rules/FN001030_DEP_microsoft_sp_module_interfaces");
20
+ const FN001031_DEP_microsoft_sp_odata_types_1 = require("./rules/FN001031_DEP_microsoft_sp_odata_types");
21
+ const FN001032_DEP_microsoft_sp_page_context_1 = require("./rules/FN001032_DEP_microsoft_sp_page_context");
22
+ const FN001034_DEP_microsoft_sp_adaptive_card_extension_base_1 = require("./rules/FN001034_DEP_microsoft_sp_adaptive_card_extension_base");
23
+ const FN002002_DEVDEP_microsoft_sp_module_interfaces_1 = require("./rules/FN002002_DEVDEP_microsoft_sp_module_interfaces");
24
+ const FN002022_DEVDEP_microsoft_eslint_plugin_spfx_1 = require("./rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx");
25
+ const FN002023_DEVDEP_microsoft_eslint_config_spfx_1 = require("./rules/FN002023_DEVDEP_microsoft_eslint_config_spfx");
26
+ const FN002030_DEVDEP_microsoft_spfx_web_build_rig_1 = require("./rules/FN002030_DEVDEP_microsoft_spfx_web_build_rig");
27
+ const FN002034_DEVDEP_microsoft_spfx_heft_plugins_1 = require("./rules/FN002034_DEVDEP_microsoft_spfx_heft_plugins");
28
+ const FN010001_YORC_version_1 = require("./rules/FN010001_YORC_version");
29
+ module.exports = [
30
+ new FN001001_DEP_microsoft_sp_core_library_1.FN001001_DEP_microsoft_sp_core_library('1.23.2'),
31
+ new FN001002_DEP_microsoft_sp_lodash_subset_1.FN001002_DEP_microsoft_sp_lodash_subset('1.23.2'),
32
+ new FN001003_DEP_microsoft_sp_office_ui_fabric_core_1.FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.23.2'),
33
+ new FN001004_DEP_microsoft_sp_webpart_base_1.FN001004_DEP_microsoft_sp_webpart_base('1.23.2'),
34
+ new FN001011_DEP_microsoft_sp_dialog_1.FN001011_DEP_microsoft_sp_dialog('1.23.2'),
35
+ new FN001012_DEP_microsoft_sp_application_base_1.FN001012_DEP_microsoft_sp_application_base('1.23.2'),
36
+ new FN001014_DEP_microsoft_sp_listview_extensibility_1.FN001014_DEP_microsoft_sp_listview_extensibility('1.23.2'),
37
+ new FN001021_DEP_microsoft_sp_property_pane_1.FN001021_DEP_microsoft_sp_property_pane('1.23.2'),
38
+ new FN001023_DEP_microsoft_sp_component_base_1.FN001023_DEP_microsoft_sp_component_base('1.23.2'),
39
+ new FN001024_DEP_microsoft_sp_diagnostics_1.FN001024_DEP_microsoft_sp_diagnostics('1.23.2'),
40
+ new FN001025_DEP_microsoft_sp_dynamic_data_1.FN001025_DEP_microsoft_sp_dynamic_data('1.23.2'),
41
+ new FN001026_DEP_microsoft_sp_extension_base_1.FN001026_DEP_microsoft_sp_extension_base('1.23.2'),
42
+ new FN001027_DEP_microsoft_sp_http_1.FN001027_DEP_microsoft_sp_http('1.23.2'),
43
+ new FN001028_DEP_microsoft_sp_list_subscription_1.FN001028_DEP_microsoft_sp_list_subscription('1.23.2'),
44
+ new FN001029_DEP_microsoft_sp_loader_1.FN001029_DEP_microsoft_sp_loader('1.23.2'),
45
+ new FN001030_DEP_microsoft_sp_module_interfaces_1.FN001030_DEP_microsoft_sp_module_interfaces('1.23.2'),
46
+ new FN001031_DEP_microsoft_sp_odata_types_1.FN001031_DEP_microsoft_sp_odata_types('1.23.2'),
47
+ new FN001032_DEP_microsoft_sp_page_context_1.FN001032_DEP_microsoft_sp_page_context('1.23.2'),
48
+ new FN001013_DEP_microsoft_decorators_1.FN001013_DEP_microsoft_decorators('1.23.2'),
49
+ new FN001034_DEP_microsoft_sp_adaptive_card_extension_base_1.FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.23.2'),
50
+ new FN002002_DEVDEP_microsoft_sp_module_interfaces_1.FN002002_DEVDEP_microsoft_sp_module_interfaces('1.23.2'),
51
+ new FN002022_DEVDEP_microsoft_eslint_plugin_spfx_1.FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.23.2'),
52
+ new FN002023_DEVDEP_microsoft_eslint_config_spfx_1.FN002023_DEVDEP_microsoft_eslint_config_spfx('1.23.2'),
53
+ new FN002030_DEVDEP_microsoft_spfx_web_build_rig_1.FN002030_DEVDEP_microsoft_spfx_web_build_rig('1.23.2'),
54
+ new FN002034_DEVDEP_microsoft_spfx_heft_plugins_1.FN002034_DEVDEP_microsoft_spfx_heft_plugins('1.23.2'),
55
+ new FN010001_YORC_version_1.FN010001_YORC_version('1.23.2')
56
+ ];
57
+ //# sourceMappingURL=upgrade-1.23.2.js.map
@@ -89,7 +89,9 @@ class SpfxProjectUpgradeCommand extends base_project_command_1.BaseProjectComman
89
89
  '1.21.1',
90
90
  '1.22.0',
91
91
  '1.22.1',
92
- '1.22.2'
92
+ '1.22.2',
93
+ '1.23.0',
94
+ '1.23.2'
93
95
  ];
94
96
  __classPrivateFieldGet(this, _SpfxProjectUpgradeCommand_instances, "m", _SpfxProjectUpgradeCommand_initTelemetry).call(this);
95
97
  __classPrivateFieldGet(this, _SpfxProjectUpgradeCommand_instances, "m", _SpfxProjectUpgradeCommand_initOptions).call(this);
@@ -103,7 +105,7 @@ class SpfxProjectUpgradeCommand extends base_project_command_1.BaseProjectComman
103
105
  throw new Command_1.CommandError(`Couldn't find project root folder`, SpfxProjectUpgradeCommand.ERROR_NO_PROJECT_ROOT_FOLDER);
104
106
  }
105
107
  this.toVersion = args.options.toVersion ? args.options.toVersion : this.supportedVersions[this.supportedVersions.length - 1];
106
- // uncomment to support upgrading to preview releases
108
+ // Uncomment to support upgrading to preview releases
107
109
  // if (!args.options.toVersion &&
108
110
  // !args.options.preview &&
109
111
  // prerelease(this.toVersion)) {
@@ -209,7 +211,15 @@ class SpfxProjectUpgradeCommand extends base_project_command_1.BaseProjectComman
209
211
  // replace package operation tokens with command for the specific package manager
210
212
  findingsToReport.forEach(f => {
211
213
  // matches must be in this particular order to avoid false matches, eg.
212
- // uninstallDev contains install
214
+ // uninstallDev contains install, removeOverride contains override
215
+ if (f.resolution.startsWith('removeOverride')) {
216
+ f.resolution = f.resolution.replace('removeOverride', packageManager_1.packageManager.getPackageManagerCommand('removeOverride', this.packageManager));
217
+ return;
218
+ }
219
+ if (f.resolution.startsWith('override')) {
220
+ f.resolution = f.resolution.replace('override', packageManager_1.packageManager.getPackageManagerCommand('override', this.packageManager));
221
+ return;
222
+ }
213
223
  if (f.resolution.startsWith('uninstallDev')) {
214
224
  f.resolution = f.resolution.replace('uninstallDev', packageManager_1.packageManager.getPackageManagerCommand('uninstallDev', this.packageManager));
215
225
  return;
@@ -304,7 +314,9 @@ class SpfxProjectUpgradeCommand extends base_project_command_1.BaseProjectComman
304
314
  .filter((command) => command.indexOf(packageManager_1.packageManager.getPackageManagerCommand('install', this.packageManager)) === -1 &&
305
315
  command.indexOf(packageManager_1.packageManager.getPackageManagerCommand('installDev', this.packageManager)) === -1 &&
306
316
  command.indexOf(packageManager_1.packageManager.getPackageManagerCommand('uninstall', this.packageManager)) === -1 &&
307
- command.indexOf(packageManager_1.packageManager.getPackageManagerCommand('uninstallDev', this.packageManager)) === -1))).join(os.EOL), os.EOL,
317
+ command.indexOf(packageManager_1.packageManager.getPackageManagerCommand('uninstallDev', this.packageManager)) === -1 &&
318
+ command.indexOf(packageManager_1.packageManager.getPackageManagerCommand('override', this.packageManager)) === -1 &&
319
+ command.indexOf(packageManager_1.packageManager.getPackageManagerCommand('removeOverride', this.packageManager)) === -1))).join(os.EOL), os.EOL,
308
320
  os.EOL,
309
321
  Object.keys(reportData.modificationPerFile).map(file => {
310
322
  return [
@@ -365,7 +377,9 @@ ${f.resolution}
365
377
  .filter((command) => command.indexOf(packageManager_1.packageManager.getPackageManagerCommand('install', this.packageManager)) === -1 &&
366
378
  command.indexOf(packageManager_1.packageManager.getPackageManagerCommand('installDev', this.packageManager)) === -1 &&
367
379
  command.indexOf(packageManager_1.packageManager.getPackageManagerCommand('uninstall', this.packageManager)) === -1 &&
368
- command.indexOf(packageManager_1.packageManager.getPackageManagerCommand('uninstallDev', this.packageManager)) === -1))).join(os.EOL), os.EOL,
380
+ command.indexOf(packageManager_1.packageManager.getPackageManagerCommand('uninstallDev', this.packageManager)) === -1 &&
381
+ command.indexOf(packageManager_1.packageManager.getPackageManagerCommand('override', this.packageManager)) === -1 &&
382
+ command.indexOf(packageManager_1.packageManager.getPackageManagerCommand('removeOverride', this.packageManager)) === -1))).join(os.EOL), os.EOL,
369
383
  '```', os.EOL,
370
384
  os.EOL,
371
385
  '### Modify files', os.EOL,
@@ -443,16 +457,19 @@ ${f.resolution}
443
457
  const packagesDepExact = [];
444
458
  const packagesDepUn = [];
445
459
  const packagesDevUn = [];
460
+ const packagesOverride = [];
461
+ const packagesOverrideRemove = [];
446
462
  findings.forEach(f => {
447
463
  if (f.resolutionType === 'cmd') {
448
- if (f.resolution.indexOf('npm') > -1 ||
449
- f.resolution.indexOf('yarn') > -1) {
464
+ if (f.resolution.indexOf('npm') > -1) {
450
465
  packageManager_1.packageManager.mapPackageManagerCommand({
451
466
  command: f.resolution,
452
467
  packagesDevExact,
453
468
  packagesDepExact,
454
469
  packagesDepUn,
455
470
  packagesDevUn,
471
+ packagesOverride,
472
+ packagesOverrideRemove,
456
473
  packageMgr: this.packageManager
457
474
  });
458
475
  }
@@ -478,6 +495,8 @@ ${f.resolution}
478
495
  packagesDevExact,
479
496
  packagesDepUn,
480
497
  packagesDevUn,
498
+ packagesOverride,
499
+ packagesOverrideRemove,
481
500
  packageMgr: this.packageManager
482
501
  });
483
502
  if (this.packageManager === 'npm') {