@pnp/cli-microsoft365-spfx-toolkit 1.7.0 → 1.9.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.
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.autocomplete = void 0;
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
  "use strict";
3
3
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
4
4
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const fs = require("fs");
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const FN002021_DEVDEP_rushstack_eslint_config_1 = require("../project-upgrade/rules/FN002021_DEVDEP_rushstack_eslint_config");
4
+ const FN001008_DEP_react_1 = require("./rules/FN001008_DEP_react");
5
+ const FN001009_DEP_react_dom_1 = require("./rules/FN001009_DEP_react_dom");
6
+ const FN001035_DEP_fluentui_react_1 = require("./rules/FN001035_DEP_fluentui_react");
7
+ const FN002013_DEVDEP_types_webpack_env_1 = require("./rules/FN002013_DEVDEP_types_webpack_env");
8
+ const FN002015_DEVDEP_types_react_1 = require("./rules/FN002015_DEVDEP_types_react");
9
+ const FN002016_DEVDEP_types_react_dom_1 = require("./rules/FN002016_DEVDEP_types_react_dom");
10
+ const FN002022_DEVDEP_typescript_1 = require("./rules/FN002022_DEVDEP_typescript");
11
+ const FN021001_PKG_spfx_deps_versions_match_project_version_1 = require("./rules/FN021001_PKG_spfx_deps_versions_match_project_version");
12
+ module.exports = [
13
+ new FN001008_DEP_react_1.FN001008_DEP_react('17'),
14
+ new FN001009_DEP_react_dom_1.FN001009_DEP_react_dom('17'),
15
+ new FN001035_DEP_fluentui_react_1.FN001035_DEP_fluentui_react('^8.106.4'),
16
+ new FN002013_DEVDEP_types_webpack_env_1.FN002013_DEVDEP_types_webpack_env('~1.15.2'),
17
+ new FN002015_DEVDEP_types_react_1.FN002015_DEVDEP_types_react('17'),
18
+ new FN002016_DEVDEP_types_react_dom_1.FN002016_DEVDEP_types_react_dom('17'),
19
+ new FN002021_DEVDEP_rushstack_eslint_config_1.FN002021_DEVDEP_rushstack_eslint_config('4.5.2'),
20
+ new FN002022_DEVDEP_typescript_1.FN002022_DEVDEP_typescript('~5.8.0'),
21
+ new FN021001_PKG_spfx_deps_versions_match_project_version_1.FN021001_PKG_spfx_deps_versions_match_project_version(true)
22
+ ];
23
+ //# sourceMappingURL=doctor-1.22.2.js.map
@@ -86,7 +86,8 @@ class SpfxProjectDoctorCommand extends base_project_command_1.BaseProjectCommand
86
86
  '1.21.0',
87
87
  '1.21.1',
88
88
  '1.22.0',
89
- '1.22.1'
89
+ '1.22.1',
90
+ '1.22.2'
90
91
  ];
91
92
  __classPrivateFieldGet(this, _SpfxProjectDoctorCommand_instances, "m", _SpfxProjectDoctorCommand_initTelemetry).call(this);
92
93
  __classPrivateFieldGet(this, _SpfxProjectDoctorCommand_instances, "m", _SpfxProjectDoctorCommand_initOptions).call(this);
@@ -1,7 +1,13 @@
1
1
  "use strict";
2
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
3
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
4
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
5
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
6
+ };
7
+ var _DependencyRule_instances, _DependencyRule_needsUpdate, _DependencyRule_getMaxVersion;
2
8
  Object.defineProperty(exports, "__esModule", { value: true });
3
9
  exports.DependencyRule = void 0;
4
- const semver_1 = require("semver");
10
+ const semver = require("semver");
5
11
  const JsonRule_1 = require("../../JsonRule");
6
12
  class DependencyRule extends JsonRule_1.JsonRule {
7
13
  constructor(packageName, packageVersion, isDevDep = false, isOptional = false, add = true) {
@@ -11,6 +17,7 @@ class DependencyRule extends JsonRule_1.JsonRule {
11
17
  this.isDevDep = isDevDep;
12
18
  this.isOptional = isOptional;
13
19
  this.add = add;
20
+ _DependencyRule_instances.add(this);
14
21
  }
15
22
  get title() {
16
23
  return this.packageName;
@@ -42,23 +49,13 @@ class DependencyRule extends JsonRule_1.JsonRule {
42
49
  }
43
50
  const projectDependencies = this.isDevDep ? project.packageJson.devDependencies : project.packageJson.dependencies;
44
51
  const versionEntry = projectDependencies ? projectDependencies[this.packageName] : '';
45
- const packageVersion = (0, semver_1.valid)(versionEntry);
46
- const versionRange = (0, semver_1.validRange)(versionEntry);
47
52
  if (this.add) {
48
53
  let jsonProperty = this.isDevDep ? 'devDependencies' : 'dependencies';
49
54
  if (versionEntry) {
50
55
  jsonProperty += `.${this.packageName}`;
51
- if (packageVersion) {
52
- if ((0, semver_1.lt)(packageVersion, this.packageVersion)) {
53
- const node = this.getAstNodeFromFile(project.packageJson, jsonProperty);
54
- this.addFindingWithPosition(findings, node);
55
- }
56
- }
57
- else {
58
- if (versionRange) {
59
- const node = this.getAstNodeFromFile(project.packageJson, jsonProperty);
60
- this.addFindingWithPosition(findings, node);
61
- }
56
+ if (__classPrivateFieldGet(this, _DependencyRule_instances, "m", _DependencyRule_needsUpdate).call(this, this.packageVersion, versionEntry)) {
57
+ const node = this.getAstNodeFromFile(project.packageJson, jsonProperty);
58
+ this.addFindingWithPosition(findings, node);
62
59
  }
63
60
  }
64
61
  else {
@@ -82,4 +79,49 @@ class DependencyRule extends JsonRule_1.JsonRule {
82
79
  }
83
80
  }
84
81
  exports.DependencyRule = DependencyRule;
82
+ _DependencyRule_instances = new WeakSet(), _DependencyRule_needsUpdate = function _DependencyRule_needsUpdate(ruleVersion, currentVersion) {
83
+ try {
84
+ // Get minimum versions for both
85
+ const ruleMin = semver.minVersion(ruleVersion);
86
+ const currentMin = semver.minVersion(currentVersion);
87
+ // Check if ranges overlap
88
+ const rangesOverlap = semver.intersects(ruleVersion, currentVersion);
89
+ if (rangesOverlap) {
90
+ // Even if they overlap, update if rule requires a higher minimum version
91
+ if (ruleMin && currentMin && semver.gt(ruleMin, currentMin)) {
92
+ return true;
93
+ }
94
+ return false;
95
+ }
96
+ // Ranges don't overlap - check if rule range is greater
97
+ // Get the maximum version that satisfies the current range
98
+ const currentMax = __classPrivateFieldGet(this, _DependencyRule_instances, "m", _DependencyRule_getMaxVersion).call(this, currentVersion);
99
+ // If rule's minimum is greater than current's maximum, update is needed
100
+ return !!(ruleMin && currentMax && semver.gt(ruleMin, currentMax));
101
+ }
102
+ catch (_a) {
103
+ return false;
104
+ }
105
+ }, _DependencyRule_getMaxVersion = function _DependencyRule_getMaxVersion(range) {
106
+ const rangeObj = new semver.Range(range);
107
+ // If it's a specific version (no range operators), return it
108
+ if (semver.valid(range)) {
109
+ return semver.parse(range);
110
+ }
111
+ // For ranges, get the highest version from the set
112
+ // Check the range set to find upper bounds
113
+ let maxVer = null;
114
+ for (const comparatorSet of rangeObj.set) {
115
+ for (const comparator of comparatorSet) {
116
+ if (comparator.operator === '<' || comparator.operator === '<=') {
117
+ const ver = comparator.semver;
118
+ if (!maxVer || semver.gt(ver, maxVer)) {
119
+ maxVer = ver;
120
+ }
121
+ }
122
+ }
123
+ }
124
+ // If no upper bound found, use minVersion as fallback
125
+ return maxVer || semver.minVersion(range);
126
+ };
85
127
  //# sourceMappingURL=DependencyRule.js.map
@@ -1,57 +1,57 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const FN001001_DEP_microsoft_sp_core_library_js_1 = require("./rules/FN001001_DEP_microsoft_sp_core_library.js");
4
- const FN001002_DEP_microsoft_sp_lodash_subset_js_1 = require("./rules/FN001002_DEP_microsoft_sp_lodash_subset.js");
5
- const FN001003_DEP_microsoft_sp_office_ui_fabric_core_js_1 = require("./rules/FN001003_DEP_microsoft_sp_office_ui_fabric_core.js");
6
- const FN001004_DEP_microsoft_sp_webpart_base_js_1 = require("./rules/FN001004_DEP_microsoft_sp_webpart_base.js");
7
- const FN001011_DEP_microsoft_sp_dialog_js_1 = require("./rules/FN001011_DEP_microsoft_sp_dialog.js");
8
- const FN001012_DEP_microsoft_sp_application_base_js_1 = require("./rules/FN001012_DEP_microsoft_sp_application_base.js");
9
- const FN001013_DEP_microsoft_decorators_js_1 = require("./rules/FN001013_DEP_microsoft_decorators.js");
10
- const FN001014_DEP_microsoft_sp_listview_extensibility_js_1 = require("./rules/FN001014_DEP_microsoft_sp_listview_extensibility.js");
11
- const FN001021_DEP_microsoft_sp_property_pane_js_1 = require("./rules/FN001021_DEP_microsoft_sp_property_pane.js");
12
- const FN001023_DEP_microsoft_sp_component_base_js_1 = require("./rules/FN001023_DEP_microsoft_sp_component_base.js");
13
- const FN001024_DEP_microsoft_sp_diagnostics_js_1 = require("./rules/FN001024_DEP_microsoft_sp_diagnostics.js");
14
- const FN001025_DEP_microsoft_sp_dynamic_data_js_1 = require("./rules/FN001025_DEP_microsoft_sp_dynamic_data.js");
15
- const FN001026_DEP_microsoft_sp_extension_base_js_1 = require("./rules/FN001026_DEP_microsoft_sp_extension_base.js");
16
- const FN001027_DEP_microsoft_sp_http_js_1 = require("./rules/FN001027_DEP_microsoft_sp_http.js");
17
- const FN001028_DEP_microsoft_sp_list_subscription_js_1 = require("./rules/FN001028_DEP_microsoft_sp_list_subscription.js");
18
- const FN001029_DEP_microsoft_sp_loader_js_1 = require("./rules/FN001029_DEP_microsoft_sp_loader.js");
19
- const FN001030_DEP_microsoft_sp_module_interfaces_js_1 = require("./rules/FN001030_DEP_microsoft_sp_module_interfaces.js");
20
- const FN001031_DEP_microsoft_sp_odata_types_js_1 = require("./rules/FN001031_DEP_microsoft_sp_odata_types.js");
21
- const FN001032_DEP_microsoft_sp_page_context_js_1 = require("./rules/FN001032_DEP_microsoft_sp_page_context.js");
22
- const FN001034_DEP_microsoft_sp_adaptive_card_extension_base_js_1 = require("./rules/FN001034_DEP_microsoft_sp_adaptive_card_extension_base.js");
23
- const FN002002_DEVDEP_microsoft_sp_module_interfaces_js_1 = require("./rules/FN002002_DEVDEP_microsoft_sp_module_interfaces.js");
24
- const FN002022_DEVDEP_microsoft_eslint_plugin_spfx_js_1 = require("./rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx.js");
25
- const FN002023_DEVDEP_microsoft_eslint_config_spfx_js_1 = require("./rules/FN002023_DEVDEP_microsoft_eslint_config_spfx.js");
26
- const FN002030_DEVDEP_microsoft_spfx_web_build_rig_js_1 = require("./rules/FN002030_DEVDEP_microsoft_spfx_web_build_rig.js");
27
- const FN002034_DEVDEP_microsoft_spfx_heft_plugins_js_1 = require("./rules/FN002034_DEVDEP_microsoft_spfx_heft_plugins.js");
28
- const FN010001_YORC_version_js_1 = require("./rules/FN010001_YORC_version.js");
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
29
  module.exports = [
30
- new FN001001_DEP_microsoft_sp_core_library_js_1.FN001001_DEP_microsoft_sp_core_library('1.22.1'),
31
- new FN001002_DEP_microsoft_sp_lodash_subset_js_1.FN001002_DEP_microsoft_sp_lodash_subset('1.22.1'),
32
- new FN001003_DEP_microsoft_sp_office_ui_fabric_core_js_1.FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.22.1'),
33
- new FN001004_DEP_microsoft_sp_webpart_base_js_1.FN001004_DEP_microsoft_sp_webpart_base('1.22.1'),
34
- new FN001011_DEP_microsoft_sp_dialog_js_1.FN001011_DEP_microsoft_sp_dialog('1.22.1'),
35
- new FN001012_DEP_microsoft_sp_application_base_js_1.FN001012_DEP_microsoft_sp_application_base('1.22.1'),
36
- new FN001014_DEP_microsoft_sp_listview_extensibility_js_1.FN001014_DEP_microsoft_sp_listview_extensibility('1.22.1'),
37
- new FN001021_DEP_microsoft_sp_property_pane_js_1.FN001021_DEP_microsoft_sp_property_pane('1.22.1'),
38
- new FN001023_DEP_microsoft_sp_component_base_js_1.FN001023_DEP_microsoft_sp_component_base('1.22.1'),
39
- new FN001024_DEP_microsoft_sp_diagnostics_js_1.FN001024_DEP_microsoft_sp_diagnostics('1.22.1'),
40
- new FN001025_DEP_microsoft_sp_dynamic_data_js_1.FN001025_DEP_microsoft_sp_dynamic_data('1.22.1'),
41
- new FN001026_DEP_microsoft_sp_extension_base_js_1.FN001026_DEP_microsoft_sp_extension_base('1.22.1'),
42
- new FN001027_DEP_microsoft_sp_http_js_1.FN001027_DEP_microsoft_sp_http('1.22.1'),
43
- new FN001028_DEP_microsoft_sp_list_subscription_js_1.FN001028_DEP_microsoft_sp_list_subscription('1.22.1'),
44
- new FN001029_DEP_microsoft_sp_loader_js_1.FN001029_DEP_microsoft_sp_loader('1.22.1'),
45
- new FN001030_DEP_microsoft_sp_module_interfaces_js_1.FN001030_DEP_microsoft_sp_module_interfaces('1.22.1'),
46
- new FN001031_DEP_microsoft_sp_odata_types_js_1.FN001031_DEP_microsoft_sp_odata_types('1.22.1'),
47
- new FN001032_DEP_microsoft_sp_page_context_js_1.FN001032_DEP_microsoft_sp_page_context('1.22.1'),
48
- new FN001013_DEP_microsoft_decorators_js_1.FN001013_DEP_microsoft_decorators('1.22.1'),
49
- new FN001034_DEP_microsoft_sp_adaptive_card_extension_base_js_1.FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.22.1'),
50
- new FN002002_DEVDEP_microsoft_sp_module_interfaces_js_1.FN002002_DEVDEP_microsoft_sp_module_interfaces('1.22.1'),
51
- new FN002022_DEVDEP_microsoft_eslint_plugin_spfx_js_1.FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.22.1'),
52
- new FN002023_DEVDEP_microsoft_eslint_config_spfx_js_1.FN002023_DEVDEP_microsoft_eslint_config_spfx('1.22.1'),
53
- new FN002030_DEVDEP_microsoft_spfx_web_build_rig_js_1.FN002030_DEVDEP_microsoft_spfx_web_build_rig('1.22.1'),
54
- new FN002034_DEVDEP_microsoft_spfx_heft_plugins_js_1.FN002034_DEVDEP_microsoft_spfx_heft_plugins('1.22.1'),
55
- new FN010001_YORC_version_js_1.FN010001_YORC_version('1.22.1')
30
+ new FN001001_DEP_microsoft_sp_core_library_1.FN001001_DEP_microsoft_sp_core_library('1.22.1'),
31
+ new FN001002_DEP_microsoft_sp_lodash_subset_1.FN001002_DEP_microsoft_sp_lodash_subset('1.22.1'),
32
+ new FN001003_DEP_microsoft_sp_office_ui_fabric_core_1.FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.22.1'),
33
+ new FN001004_DEP_microsoft_sp_webpart_base_1.FN001004_DEP_microsoft_sp_webpart_base('1.22.1'),
34
+ new FN001011_DEP_microsoft_sp_dialog_1.FN001011_DEP_microsoft_sp_dialog('1.22.1'),
35
+ new FN001012_DEP_microsoft_sp_application_base_1.FN001012_DEP_microsoft_sp_application_base('1.22.1'),
36
+ new FN001014_DEP_microsoft_sp_listview_extensibility_1.FN001014_DEP_microsoft_sp_listview_extensibility('1.22.1'),
37
+ new FN001021_DEP_microsoft_sp_property_pane_1.FN001021_DEP_microsoft_sp_property_pane('1.22.1'),
38
+ new FN001023_DEP_microsoft_sp_component_base_1.FN001023_DEP_microsoft_sp_component_base('1.22.1'),
39
+ new FN001024_DEP_microsoft_sp_diagnostics_1.FN001024_DEP_microsoft_sp_diagnostics('1.22.1'),
40
+ new FN001025_DEP_microsoft_sp_dynamic_data_1.FN001025_DEP_microsoft_sp_dynamic_data('1.22.1'),
41
+ new FN001026_DEP_microsoft_sp_extension_base_1.FN001026_DEP_microsoft_sp_extension_base('1.22.1'),
42
+ new FN001027_DEP_microsoft_sp_http_1.FN001027_DEP_microsoft_sp_http('1.22.1'),
43
+ new FN001028_DEP_microsoft_sp_list_subscription_1.FN001028_DEP_microsoft_sp_list_subscription('1.22.1'),
44
+ new FN001029_DEP_microsoft_sp_loader_1.FN001029_DEP_microsoft_sp_loader('1.22.1'),
45
+ new FN001030_DEP_microsoft_sp_module_interfaces_1.FN001030_DEP_microsoft_sp_module_interfaces('1.22.1'),
46
+ new FN001031_DEP_microsoft_sp_odata_types_1.FN001031_DEP_microsoft_sp_odata_types('1.22.1'),
47
+ new FN001032_DEP_microsoft_sp_page_context_1.FN001032_DEP_microsoft_sp_page_context('1.22.1'),
48
+ new FN001013_DEP_microsoft_decorators_1.FN001013_DEP_microsoft_decorators('1.22.1'),
49
+ new FN001034_DEP_microsoft_sp_adaptive_card_extension_base_1.FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.22.1'),
50
+ new FN002002_DEVDEP_microsoft_sp_module_interfaces_1.FN002002_DEVDEP_microsoft_sp_module_interfaces('1.22.1'),
51
+ new FN002022_DEVDEP_microsoft_eslint_plugin_spfx_1.FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.22.1'),
52
+ new FN002023_DEVDEP_microsoft_eslint_config_spfx_1.FN002023_DEVDEP_microsoft_eslint_config_spfx('1.22.1'),
53
+ new FN002030_DEVDEP_microsoft_spfx_web_build_rig_1.FN002030_DEVDEP_microsoft_spfx_web_build_rig('1.22.1'),
54
+ new FN002034_DEVDEP_microsoft_spfx_heft_plugins_1.FN002034_DEVDEP_microsoft_spfx_heft_plugins('1.22.1'),
55
+ new FN010001_YORC_version_1.FN010001_YORC_version('1.22.1')
56
56
  ];
57
57
  //# sourceMappingURL=upgrade-1.22.1.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.22.2'),
31
+ new FN001002_DEP_microsoft_sp_lodash_subset_1.FN001002_DEP_microsoft_sp_lodash_subset('1.22.2'),
32
+ new FN001003_DEP_microsoft_sp_office_ui_fabric_core_1.FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.22.2'),
33
+ new FN001004_DEP_microsoft_sp_webpart_base_1.FN001004_DEP_microsoft_sp_webpart_base('1.22.2'),
34
+ new FN001011_DEP_microsoft_sp_dialog_1.FN001011_DEP_microsoft_sp_dialog('1.22.2'),
35
+ new FN001012_DEP_microsoft_sp_application_base_1.FN001012_DEP_microsoft_sp_application_base('1.22.2'),
36
+ new FN001014_DEP_microsoft_sp_listview_extensibility_1.FN001014_DEP_microsoft_sp_listview_extensibility('1.22.2'),
37
+ new FN001021_DEP_microsoft_sp_property_pane_1.FN001021_DEP_microsoft_sp_property_pane('1.22.2'),
38
+ new FN001023_DEP_microsoft_sp_component_base_1.FN001023_DEP_microsoft_sp_component_base('1.22.2'),
39
+ new FN001024_DEP_microsoft_sp_diagnostics_1.FN001024_DEP_microsoft_sp_diagnostics('1.22.2'),
40
+ new FN001025_DEP_microsoft_sp_dynamic_data_1.FN001025_DEP_microsoft_sp_dynamic_data('1.22.2'),
41
+ new FN001026_DEP_microsoft_sp_extension_base_1.FN001026_DEP_microsoft_sp_extension_base('1.22.2'),
42
+ new FN001027_DEP_microsoft_sp_http_1.FN001027_DEP_microsoft_sp_http('1.22.2'),
43
+ new FN001028_DEP_microsoft_sp_list_subscription_1.FN001028_DEP_microsoft_sp_list_subscription('1.22.2'),
44
+ new FN001029_DEP_microsoft_sp_loader_1.FN001029_DEP_microsoft_sp_loader('1.22.2'),
45
+ new FN001030_DEP_microsoft_sp_module_interfaces_1.FN001030_DEP_microsoft_sp_module_interfaces('1.22.2'),
46
+ new FN001031_DEP_microsoft_sp_odata_types_1.FN001031_DEP_microsoft_sp_odata_types('1.22.2'),
47
+ new FN001032_DEP_microsoft_sp_page_context_1.FN001032_DEP_microsoft_sp_page_context('1.22.2'),
48
+ new FN001013_DEP_microsoft_decorators_1.FN001013_DEP_microsoft_decorators('1.22.2'),
49
+ new FN001034_DEP_microsoft_sp_adaptive_card_extension_base_1.FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.22.2'),
50
+ new FN002002_DEVDEP_microsoft_sp_module_interfaces_1.FN002002_DEVDEP_microsoft_sp_module_interfaces('1.22.2'),
51
+ new FN002022_DEVDEP_microsoft_eslint_plugin_spfx_1.FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.22.2'),
52
+ new FN002023_DEVDEP_microsoft_eslint_config_spfx_1.FN002023_DEVDEP_microsoft_eslint_config_spfx('1.22.2'),
53
+ new FN002030_DEVDEP_microsoft_spfx_web_build_rig_1.FN002030_DEVDEP_microsoft_spfx_web_build_rig('1.22.2'),
54
+ new FN002034_DEVDEP_microsoft_spfx_heft_plugins_1.FN002034_DEVDEP_microsoft_spfx_heft_plugins('1.22.2'),
55
+ new FN010001_YORC_version_1.FN010001_YORC_version('1.22.2')
56
+ ];
57
+ //# sourceMappingURL=upgrade-1.22.2.js.map
@@ -88,7 +88,8 @@ class SpfxProjectUpgradeCommand extends base_project_command_1.BaseProjectComman
88
88
  '1.21.0',
89
89
  '1.21.1',
90
90
  '1.22.0',
91
- '1.22.1'
91
+ '1.22.1',
92
+ '1.22.2'
92
93
  ];
93
94
  __classPrivateFieldGet(this, _SpfxProjectUpgradeCommand_instances, "m", _SpfxProjectUpgradeCommand_initTelemetry).call(this);
94
95
  __classPrivateFieldGet(this, _SpfxProjectUpgradeCommand_instances, "m", _SpfxProjectUpgradeCommand_initOptions).call(this);
@@ -608,8 +608,8 @@ class SpfxDoctorCommand extends base_project_command_1.BaseProjectCommand {
608
608
  fix: 'npm i -g gulp-cli@3'
609
609
  },
610
610
  node: {
611
- range: '>=22.14.0 < 23.0.0',
612
- fix: 'Install Node.js >=22.14.0 < 23.0.0'
611
+ range: '>=22.14.0 <23.0.0',
612
+ fix: 'Install Node.js >=22.14.0 <23.0.0'
613
613
  },
614
614
  sp: SharePointVersion.SPO,
615
615
  yo: {
@@ -623,8 +623,8 @@ class SpfxDoctorCommand extends base_project_command_1.BaseProjectCommand {
623
623
  fix: 'npm i -g gulp-cli@3'
624
624
  },
625
625
  node: {
626
- range: '>=22.14.0 < 23.0.0',
627
- fix: 'Install Node.js >=22.14.0 < 23.0.0'
626
+ range: '>=22.14.0 <23.0.0',
627
+ fix: 'Install Node.js >=22.14.0 <23.0.0'
628
628
  },
629
629
  sp: SharePointVersion.SPO,
630
630
  yo: {
@@ -638,8 +638,8 @@ class SpfxDoctorCommand extends base_project_command_1.BaseProjectCommand {
638
638
  fix: 'npm i -g @rushstack/heft@1'
639
639
  },
640
640
  node: {
641
- range: '>=22.14.0 < 23.0.0',
642
- fix: 'Install Node.js >=22.14.0 < 23.0.0'
641
+ range: '>=22.14.0 <23.0.0',
642
+ fix: 'Install Node.js >=22.14.0 <23.0.0'
643
643
  },
644
644
  sp: SharePointVersion.SPO,
645
645
  yo: {
@@ -653,8 +653,23 @@ class SpfxDoctorCommand extends base_project_command_1.BaseProjectCommand {
653
653
  fix: 'npm i -g @rushstack/heft@1'
654
654
  },
655
655
  node: {
656
- range: '>=22.14.0 < 23.0.0',
657
- fix: 'Install Node.js >=22.14.0 < 23.0.0'
656
+ range: '>=22.14.0 <23.0.0',
657
+ fix: 'Install Node.js >=22.14.0 <23.0.0'
658
+ },
659
+ sp: SharePointVersion.SPO,
660
+ yo: {
661
+ range: '^4 || ^5 || ^6',
662
+ fix: 'npm i -g yo@6'
663
+ }
664
+ },
665
+ '1.22.2': {
666
+ heft: {
667
+ range: '^1',
668
+ fix: 'npm i -g @rushstack/heft@1'
669
+ },
670
+ node: {
671
+ range: '>=22.14.0 <23.0.0',
672
+ fix: 'Install Node.js >=22.14.0 <23.0.0'
658
673
  },
659
674
  sp: SharePointVersion.SPO,
660
675
  yo: {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365-spfx-toolkit",
3
- "version": "1.7.0",
3
+ "version": "1.9.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@pnp/cli-microsoft365-spfx-toolkit",
9
- "version": "1.7.0",
9
+ "version": "1.9.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@azure/msal-common": "^13.2.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365-spfx-toolkit",
3
- "version": "1.7.0",
3
+ "version": "1.9.0",
4
4
  "description": "CommonJS version of CLI for Microsoft 365 for SPFx Toolkit",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",