Skip to content

chore: Update Dependencies#2696

Merged
MSNev merged 1 commit intobetafrom
MSNev/BetaUpdateComponents
Feb 3, 2026
Merged

chore: Update Dependencies#2696
MSNev merged 1 commit intobetafrom
MSNev/BetaUpdateComponents

Conversation

@MSNev
Copy link
Collaborator

@MSNev MSNev commented Feb 3, 2026

  • @microsoft/rush
  • @nevware21/ts-utils
  • @nevware21/ts-async

- @microsoft/rush
- @nevware21/ts-utils
- @nevware21/ts-async
@MSNev MSNev requested a review from a team as a code owner February 3, 2026 22:39
@MSNev MSNev enabled auto-merge (squash) February 3, 2026 22:40
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fs */ 179896);
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:path */ 176760);
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_path__WEBPACK_IMPORTED_MODULE_0__);

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused variable node_path__WEBPACK_IMPORTED_MODULE_0___default.

Copilot Autofix

AI 1 day ago

To fix the unused variable issue, remove the creation of the unused default-import helper node_path__WEBPACK_IMPORTED_MODULE_0___default while preserving the actual import of node:path that is used. The __webpack_require__.n wrapper is only needed if the code will access node_path__WEBPACK_IMPORTED_MODULE_0___default() somewhere; if that never happens, we can delete that line without affecting functionality.

Concretely, in common/scripts/install-run-rush.js, locate the block where node:path and node:fs are imported into the Webpack bundle entry:

/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:path */ 176760);
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_path__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:fs */ 973024);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_1__);

Remove only the line that assigns node_path__WEBPACK_IMPORTED_MODULE_0___default, leaving the raw node_path__WEBPACK_IMPORTED_MODULE_0__ import and the node:fs imports untouched. No new methods, imports, or definitions are required, and existing behavior remains the same because the unused helper was never referenced.

Suggested changeset 1
common/scripts/install-run-rush.js

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/common/scripts/install-run-rush.js b/common/scripts/install-run-rush.js
--- a/common/scripts/install-run-rush.js
+++ b/common/scripts/install-run-rush.js
@@ -112,7 +112,6 @@
   \************************************************/
 __webpack_require__.r(__webpack_exports__);
 /* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:path */ 176760);
-/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_path__WEBPACK_IMPORTED_MODULE_0__);
 /* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:fs */ 973024);
 /* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_1__);
 // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
EOF
@@ -112,7 +112,6 @@
\************************************************/
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:path */ 176760);
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_path__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:fs */ 973024);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_1__);
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
Copilot is powered by AI and may make mistakes. Always verify output.
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:path */ 176760);
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_path__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:fs */ 973024);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_1__);

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused variable node_fs__WEBPACK_IMPORTED_MODULE_1___default.

Copilot Autofix

AI 1 day ago

In general, to fix an unused-variable issue, either remove the declaration if the value is truly never used, or update the code to use it where it was intended. Here, node_fs__WEBPACK_IMPORTED_MODULE_1___default is declared but never used, while node_fs__WEBPACK_IMPORTED_MODULE_1__ is used for readFileSync. The best non‑behavior‑changing fix is to remove the unused default helper variable and keep the namespace import intact.

Concretely, in common/scripts/install-run-rush.js, we adjust the import section around lines 114–117 so that we only define node_fs__WEBPACK_IMPORTED_MODULE_1__ (the object we actually use) and drop the node_fs__WEBPACK_IMPORTED_MODULE_1___default = ... line. We leave the node:path import unchanged because both its namespace and default helpers might be used elsewhere in the file; the only change is to the unused node_fs__WEBPACK_IMPORTED_MODULE_1___default variable.

Suggested changeset 1
common/scripts/install-run-rush.js

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/common/scripts/install-run-rush.js b/common/scripts/install-run-rush.js
--- a/common/scripts/install-run-rush.js
+++ b/common/scripts/install-run-rush.js
@@ -114,7 +114,6 @@
 /* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:path */ 176760);
 /* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_path__WEBPACK_IMPORTED_MODULE_0__);
 /* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:fs */ 973024);
-/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_1__);
 // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
 // See LICENSE in the project root for license information.
 /* eslint-disable no-console */
EOF
@@ -114,7 +114,6 @@
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:path */ 176760);
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_path__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:fs */ 973024);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_1__);
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
/* eslint-disable no-console */
Copilot is powered by AI and may make mistakes. Always verify output.
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! path */ 16928);
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:fs */ 973024);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_0__);

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused variable node_fs__WEBPACK_IMPORTED_MODULE_0___default.

Copilot Autofix

AI 1 day ago

In general, to fix an unused-variable issue you either remove the variable declaration (and any associated initializer) or start using the variable if it was meant to be used. Here, node_fs__WEBPACK_IMPORTED_MODULE_0___default is an automatically created alias for a default import of node:fs, but the code appears to use only the namespace import node_fs__WEBPACK_IMPORTED_MODULE_0__. The safest minimal fix is to remove the unused alias assignment while leaving the working namespace import intact.

Concretely, in common/scripts/install-run.js, in the npmrcUtilities.js section around lines 84–87, we will remove the line that defines node_fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_0__); and leave the rest unchanged. No new methods or imports are needed, and existing behavior will be preserved since the removed variable was never used.

Suggested changeset 1
common/scripts/install-run.js

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/common/scripts/install-run.js b/common/scripts/install-run.js
--- a/common/scripts/install-run.js
+++ b/common/scripts/install-run.js
@@ -82,11 +82,11 @@
 /* harmony export */   trimNpmrcFileLines: () => (/* binding */ trimNpmrcFileLines)
 /* harmony export */ });
 /* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:fs */ 973024);
-/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_0__);
 /* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:path */ 176760);
 /* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(node_path__WEBPACK_IMPORTED_MODULE_1__);
 // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
 // See LICENSE in the project root for license information.
+// See LICENSE in the project root for license information.
 // IMPORTANT - do not use any non-built-in libraries in this file
 
 
EOF
@@ -82,11 +82,11 @@
/* harmony export */ trimNpmrcFileLines: () => (/* binding */ trimNpmrcFileLines)
/* harmony export */ });
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:fs */ 973024);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:path */ 176760);
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(node_path__WEBPACK_IMPORTED_MODULE_1__);
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
// See LICENSE in the project root for license information.
// IMPORTANT - do not use any non-built-in libraries in this file


Copilot is powered by AI and may make mistakes. Always verify output.
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:fs */ 973024);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:path */ 176760);
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(node_path__WEBPACK_IMPORTED_MODULE_1__);

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused variable node_path__WEBPACK_IMPORTED_MODULE_1___default.

Copilot Autofix

AI 1 day ago

In general, unused variables should be removed to improve readability and avoid confusion. Here, the unused symbol is node_path__WEBPACK_IMPORTED_MODULE_1___default, created by the line assigning __webpack_require__.n(...). To fix this without changing functionality, we should stop binding the result of __webpack_require__.n(node_path__WEBPACK_IMPORTED_MODULE_1__) to a variable that is never read. Since the import of node:path itself (node_path__WEBPACK_IMPORTED_MODULE_1__) is presumably still used elsewhere, we leave that line unchanged.

Concretely, in common/scripts/install-run.js, within the npmrcUtilities.js module header, remove the line that assigns to node_path__WEBPACK_IMPORTED_MODULE_1___default and keep the rest as-is. No additional methods, definitions, or imports are required.

Suggested changeset 1
common/scripts/install-run.js

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/common/scripts/install-run.js b/common/scripts/install-run.js
--- a/common/scripts/install-run.js
+++ b/common/scripts/install-run.js
@@ -84,7 +84,6 @@
 /* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:fs */ 973024);
 /* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_0__);
 /* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:path */ 176760);
-/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(node_path__WEBPACK_IMPORTED_MODULE_1__);
 // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
 // See LICENSE in the project root for license information.
 // IMPORTANT - do not use any non-built-in libraries in this file
EOF
@@ -84,7 +84,6 @@
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:fs */ 973024);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:path */ 176760);
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(node_path__WEBPACK_IMPORTED_MODULE_1__);
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
// IMPORTANT - do not use any non-built-in libraries in this file
Copilot is powered by AI and may make mistakes. Always verify output.
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! path */ 16928);
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var node_child_process__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:child_process */ 731421);
/* harmony import */ var node_child_process__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_child_process__WEBPACK_IMPORTED_MODULE_0__);

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused variable node_child_process__WEBPACK_IMPORTED_MODULE_0___default.

Copilot Autofix

AI 1 day ago

In general, the best fix for an unused variable created by an import is to remove the unused binding while keeping any needed side effects of the import. Here, the only unused element is the locally scoped variable node_child_process__WEBPACK_IMPORTED_MODULE_0___default; the side‑effectful require call is already associated with node_child_process__WEBPACK_IMPORTED_MODULE_0__, which we must preserve. We therefore should eliminate just the extra __default variable assignment line and leave the rest of the imports untouched.

Concretely, in common/scripts/install-run.js, around lines 355–362, we will remove the line that declares and initializes node_child_process__WEBPACK_IMPORTED_MODULE_0___default while keeping the existing /* harmony import */ line for node_child_process__WEBPACK_IMPORTED_MODULE_0__ and all subsequent imports (node_fs__WEBPACK_IMPORTED_MODULE_1__, node_os__WEBPACK_IMPORTED_MODULE_2__, node_path__WEBPACK_IMPORTED_MODULE_3__, etc.) unchanged. No new methods, imports, or definitions are required.

Suggested changeset 1
common/scripts/install-run.js

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/common/scripts/install-run.js b/common/scripts/install-run.js
--- a/common/scripts/install-run.js
+++ b/common/scripts/install-run.js
@@ -353,7 +353,6 @@
 /* harmony export */   runWithErrorAndStatusCode: () => (/* binding */ runWithErrorAndStatusCode)
 /* harmony export */ });
 /* harmony import */ var node_child_process__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:child_process */ 731421);
-/* harmony import */ var node_child_process__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_child_process__WEBPACK_IMPORTED_MODULE_0__);
 /* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:fs */ 973024);
 /* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_1__);
 /* harmony import */ var node_os__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! node:os */ 848161);
EOF
@@ -353,7 +353,6 @@
/* harmony export */ runWithErrorAndStatusCode: () => (/* binding */ runWithErrorAndStatusCode)
/* harmony export */ });
/* harmony import */ var node_child_process__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:child_process */ 731421);
/* harmony import */ var node_child_process__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_child_process__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:fs */ 973024);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var node_os__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! node:os */ 848161);
Copilot is powered by AI and may make mistakes. Always verify output.
/* harmony import */ var node_child_process__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:child_process */ 731421);
/* harmony import */ var node_child_process__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_child_process__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:fs */ 973024);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_1__);

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused variable node_fs__WEBPACK_IMPORTED_MODULE_1___default.

Copilot Autofix

AI 1 day ago

In general, the correct fix for an unused variable in bundled code is to remove the declaration (and any immediately associated initialization) while leaving all actually used imports and logic intact. This preserves behavior and reduces noise and potential confusion.

Here, the pattern is:

/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:fs */ 973024);
(/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_1__);)

CodeQL reports the node_fs__WEBPACK_IMPORTED_MODULE_1___default variable as unused. The underlying node_fs__WEBPACK_IMPORTED_MODULE_1__ import is presumably still used and must remain. The best minimal fix is to remove just the unused default-helper declaration line that assigns node_fs__WEBPACK_IMPORTED_MODULE_1___default, leaving the original import line for node_fs__WEBPACK_IMPORTED_MODULE_1__ untouched and leaving all subsequent code unchanged.

Concretely, in common/scripts/install-run.js, within the ./lib-esnext/scripts/install-run.js section around lines 355–362, delete the line that declares node_fs__WEBPACK_IMPORTED_MODULE_1___default. No new imports, methods, or definitions are required.

Suggested changeset 1
common/scripts/install-run.js

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/common/scripts/install-run.js b/common/scripts/install-run.js
--- a/common/scripts/install-run.js
+++ b/common/scripts/install-run.js
@@ -355,7 +355,6 @@
 /* harmony import */ var node_child_process__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:child_process */ 731421);
 /* harmony import */ var node_child_process__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_child_process__WEBPACK_IMPORTED_MODULE_0__);
 /* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:fs */ 973024);
-/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_1__);
 /* harmony import */ var node_os__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! node:os */ 848161);
 /* harmony import */ var node_os__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(node_os__WEBPACK_IMPORTED_MODULE_2__);
 /* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! node:path */ 176760);
EOF
@@ -355,7 +355,6 @@
/* harmony import */ var node_child_process__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:child_process */ 731421);
/* harmony import */ var node_child_process__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_child_process__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:fs */ 973024);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var node_os__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! node:os */ 848161);
/* harmony import */ var node_os__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(node_os__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! node:path */ 176760);
Copilot is powered by AI and may make mistakes. Always verify output.
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:fs */ 973024);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var node_os__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! node:os */ 848161);
/* harmony import */ var node_os__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(node_os__WEBPACK_IMPORTED_MODULE_2__);

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused variable node_os__WEBPACK_IMPORTED_MODULE_2___default.

Copilot Autofix

AI 1 day ago

In general, to fix an unused-variable/import issue you either (a) remove the unused binding, or (b) actually use it if it was meant to be used. Here, the generated code imports the Node os module twice: once as the module itself (node_os__WEBPACK_IMPORTED_MODULE_2__) and once as a default-wrapper helper (node_os__WEBPACK_IMPORTED_MODULE_2___default = __webpack_require__.n(...)). Only the second binding is reported unused.

The minimal, behavior-preserving fix is to delete the unused default-wrapper binding, leaving the actual node:os module import intact. Concretely, in common/scripts/install-run.js, replace the two-line pattern:

/* harmony import */ var node_os__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! node:os */ 848161);
(node_os__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(node_os__WEBPACK_IMPORTED_MODULE_2__));

with a single import line that only declares node_os__WEBPACK_IMPORTED_MODULE_2__. This removes node_os__WEBPACK_IMPORTED_MODULE_2___default completely, satisfying CodeQL without altering any other logic.

Suggested changeset 1
common/scripts/install-run.js

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/common/scripts/install-run.js b/common/scripts/install-run.js
--- a/common/scripts/install-run.js
+++ b/common/scripts/install-run.js
@@ -357,7 +357,6 @@
 /* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:fs */ 973024);
 /* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_1__);
 /* harmony import */ var node_os__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! node:os */ 848161);
-/* harmony import */ var node_os__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(node_os__WEBPACK_IMPORTED_MODULE_2__);
 /* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! node:path */ 176760);
 /* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(node_path__WEBPACK_IMPORTED_MODULE_3__);
 /* harmony import */ var _utilities_npmrcUtilities__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utilities/npmrcUtilities */ 832286);
EOF
@@ -357,7 +357,6 @@
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:fs */ 973024);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var node_os__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! node:os */ 848161);
/* harmony import */ var node_os__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(node_os__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! node:path */ 176760);
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(node_path__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _utilities_npmrcUtilities__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utilities/npmrcUtilities */ 832286);
Copilot is powered by AI and may make mistakes. Always verify output.
/* harmony import */ var node_os__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! node:os */ 848161);
/* harmony import */ var node_os__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(node_os__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! node:path */ 176760);
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(node_path__WEBPACK_IMPORTED_MODULE_3__);

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused variable node_path__WEBPACK_IMPORTED_MODULE_3___default.

Copilot Autofix

AI 1 day ago

In general, unused variables or imports should be removed so that every declared binding is actually needed. Here, the tool-generated line both requires the node:path module and assigns its default export to a variable that is never used: var node_path__WEBPACK_IMPORTED_MODULE_3___default = .... The best minimal fix without changing runtime behavior is to keep the __webpack_require__ call (so the module is still registered/available) but drop the unused variable binding.

Concretely, in common/scripts/install-run.js around line 361–362, replace the line that assigns __webpack_require__.n(node_path__WEBPACK_IMPORTED_MODULE_3__) to node_path__WEBPACK_IMPORTED_MODULE_3___default with a line that just calls __webpack_require__.n(node_path__WEBPACK_IMPORTED_MODULE_3__); for side effects, without assigning the result. All other imports and code remain unchanged.

Suggested changeset 1
common/scripts/install-run.js

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/common/scripts/install-run.js b/common/scripts/install-run.js
--- a/common/scripts/install-run.js
+++ b/common/scripts/install-run.js
@@ -359,7 +359,7 @@
 /* harmony import */ var node_os__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! node:os */ 848161);
 /* harmony import */ var node_os__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(node_os__WEBPACK_IMPORTED_MODULE_2__);
 /* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! node:path */ 176760);
-/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(node_path__WEBPACK_IMPORTED_MODULE_3__);
+/*#__PURE__*/__webpack_require__.n(node_path__WEBPACK_IMPORTED_MODULE_3__);
 /* harmony import */ var _utilities_npmrcUtilities__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utilities/npmrcUtilities */ 832286);
 /* harmony import */ var _utilities_executionUtilities__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utilities/executionUtilities */ 90178);
 // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
EOF
@@ -359,7 +359,7 @@
/* harmony import */ var node_os__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! node:os */ 848161);
/* harmony import */ var node_os__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(node_os__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! node:path */ 176760);
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(node_path__WEBPACK_IMPORTED_MODULE_3__);
/*#__PURE__*/__webpack_require__.n(node_path__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _utilities_npmrcUtilities__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utilities/npmrcUtilities */ 832286);
/* harmony import */ var _utilities_executionUtilities__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utilities/executionUtilities */ 90178);
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
Copilot is powered by AI and may make mistakes. Always verify output.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates three key dependencies across the Application Insights JavaScript SDK monorepo: @microsoft/rush (build tool), @nevware21/ts-utils (utility library), and @nevware21/ts-async (async utilities library). The updates are minor version increments that maintain backward compatibility.

Changes:

  • Updated @microsoft/rush from 5.153.1 to 5.166.0
  • Updated @nevware21/ts-utils from >= 0.11.8 to >= 0.12.6 across all packages
  • Updated @nevware21/ts-async from >= 0.5.4 to >= 0.5.5 across all packages

Reviewed changes

Copilot reviewed 29 out of 30 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
rush.json Updated rushVersion to 5.166.0
package.json Updated @microsoft/rush devDependency to 5.166.0
common/scripts/install-run.js Auto-generated Rush script updated with Node.js protocol imports and improved Windows shell command handling
common/scripts/install-run-rush.js Auto-generated Rush script updated with Node.js protocol imports
common/config/rush/npm-shrinkwrap.json Updated lockfile with new dependency resolutions and integrity hashes
shared/AppInsightsCore/package.json Updated ts-utils to 0.12.6 and ts-async to 0.5.5
shared/AppInsightsCommon/package.json Updated ts-utils to 0.12.6
shared/1ds-core-js/package.json Updated ts-utils to 0.12.6 and ts-async to 0.5.5 in both dependencies and devDependencies
AISKU/package.json Updated ts-utils to 0.12.6 and ts-async to 0.5.5
AISKULight/package.json Updated ts-utils to 0.12.6 and ts-async to 0.5.5
tools/shims/package.json Updated ts-utils to 0.12.6
tools/chrome-debug-extension/package.json Updated ts-utils to 0.12.6 and ts-async to 0.5.5
common/Tests/Framework/package.json Updated ts-utils to 0.12.6 and ts-async to 0.5.5
channels/*/package.json (4 files) Updated ts-utils to 0.12.6 and ts-async to 0.5.5 across all channel packages
extensions/*/package.json (9 files) Updated ts-utils to 0.12.6 and ts-async to 0.5.5 where applicable across all extension packages
examples/*/package.json (5 files) Updated ts-utils to 0.12.6 across all example packages
Files not reviewed (1)
  • common/config/rush/npm-shrinkwrap.json: Language not supported

Comment on lines +115 to +117
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_path__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:fs */ 973024);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_1__);
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused variable node_path__WEBPACK_IMPORTED_MODULE_0___default.

Suggested change
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_path__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:fs */ 973024);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:fs */ 973024);

Copilot uses AI. Check for mistakes.
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:path */ 176760);
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_path__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:fs */ 973024);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_1__);
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused variable node_fs__WEBPACK_IMPORTED_MODULE_1___default.

Copilot uses AI. Check for mistakes.
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! path */ 16928);
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:fs */ 973024);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_0__);
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused variable node_fs__WEBPACK_IMPORTED_MODULE_0___default.

Suggested change
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_0__);

Copilot uses AI. Check for mistakes.
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:fs */ 973024);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:path */ 176760);
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(node_path__WEBPACK_IMPORTED_MODULE_1__);
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused variable node_path__WEBPACK_IMPORTED_MODULE_1___default.

Suggested change
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(node_path__WEBPACK_IMPORTED_MODULE_1__);

Copilot uses AI. Check for mistakes.
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! path */ 16928);
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var node_child_process__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:child_process */ 731421);
/* harmony import */ var node_child_process__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_child_process__WEBPACK_IMPORTED_MODULE_0__);
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused variable node_child_process__WEBPACK_IMPORTED_MODULE_0___default.

Copilot uses AI. Check for mistakes.
/* harmony import */ var node_child_process__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:child_process */ 731421);
/* harmony import */ var node_child_process__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_child_process__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:fs */ 973024);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_1__);
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused variable node_fs__WEBPACK_IMPORTED_MODULE_1___default.

Suggested change
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_1__);

Copilot uses AI. Check for mistakes.
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:fs */ 973024);
/* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(node_fs__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var node_os__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! node:os */ 848161);
/* harmony import */ var node_os__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(node_os__WEBPACK_IMPORTED_MODULE_2__);
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused variable node_os__WEBPACK_IMPORTED_MODULE_2___default.

Suggested change
/* harmony import */ var node_os__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(node_os__WEBPACK_IMPORTED_MODULE_2__);

Copilot uses AI. Check for mistakes.
/* harmony import */ var node_os__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! node:os */ 848161);
/* harmony import */ var node_os__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(node_os__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! node:path */ 176760);
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(node_path__WEBPACK_IMPORTED_MODULE_3__);
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused variable node_path__WEBPACK_IMPORTED_MODULE_3___default.

Suggested change
/* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(node_path__WEBPACK_IMPORTED_MODULE_3__);

Copilot uses AI. Check for mistakes.
@MSNev MSNev merged commit 3cf36ce into beta Feb 3, 2026
15 checks passed
@MSNev MSNev deleted the MSNev/BetaUpdateComponents branch February 3, 2026 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants