Files
a64e60fe21 Upgrade dependencies for eng/tools npm packages (#39292)
The npm-managed packages under `eng/tools` (outside the pnpm workspace)
had stale dependencies and lockfiles carrying known-vulnerable
transitive packages. This refreshes their dependencies and lockfiles.

### Packages impacted by this PR

- `@azure-tools/analyze-deps`
- `@azure-tools/dependency-testing`
- `@azure-tools/eng-package-utils`
- `generate-doc`
- `@azure-tools/versioning`
- `eng/tools/js-sdk-release-tools`

### Issues associated with this PR


### Describe the problem that is addressed by this PR

Dependencies for the `eng/tools` packages (not covered by pnpm/turbo)
were out of date, and their lockfiles included transitive packages with
published advisories (e.g. `brace-expansion`, `tar`, `simple-git`).

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?

- **Minor/patch upgrades only (chosen):** Bumped dependencies within
existing major ranges (`semver`, `tar`, `prettier`, `handlebars`,
`typedoc`, `@pnpm/*`, `@types/yargs`, `cross-spawn`, etc.), then
refreshed lockfiles via `npm install` and ran `npm audit fix`. All
packages now report 0 vulnerabilities.
- **`@types/node` and `typescript` floors deliberately held** at the
repo-wide standard (`^22.0.0` / `~6.0.2`, matching `engines.node >= 22`
and the workspace catalog) rather than jumping to `26` / `7`.
- **`js-sdk-release-tools`** keeps `@azure-tools/js-sdk-release-tools`
pinned at `2.16.12` (tracks the in-repo `js-sdk-release-tools-src`
source); only its transitive deps were patched via audit fix.
- Rejected full major upgrades (`argparse` 3, `js-yaml` 5, TS 7,
`@types/node` 26) to avoid breaking these tools.

### Are there test cases added in this PR? _(If not, why?)_

No — dependency/lockfile-only change. Pre-existing `tsc` typecheck
errors in these JS tool packages are unchanged by the upgrade (identical
exit code before and after).

### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR need any fixes in the SDK Generator? _(If so, create
an Issue in the
[typespec-azure](https://github.com/Azure/typespec-azure) repository and
link it here)_
- [ ] Added a changelog (if necessary)

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: jeremymeng <[email protected]>
2026-07-15 14:45:46 -07:00

37 lines
1.1 KiB
JSON

{
"name": "@azure-tools/dependency-testing",
"version": "1.0.0",
"description": "Utilities for min/max dependency testing",
"type": "module",
"scripts": {
"build": "npm run format && npm run typecheck",
"typecheck": "tsc",
"test": "echo \"Error: no test specified\" && exit 1",
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"./**/*.{js,json}\""
},
"repository": {
"type": "git",
"url": "git+https://github.com/Azure/azure-sdk-for-js.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js#readme",
"dependencies": {
"cross-spawn": "^7.0.6",
"semver": "^7.8.5",
"yargs": "^18.0.0",
"@azure-tools/eng-package-utils": "file:../eng-package-utils",
"@pnpm/config": "^1004.11.6",
"@pnpm/catalogs.resolver": "^1100.0.0"
},
"devDependencies": {
"@types/yargs": "^17.0.35",
"@types/node": "^22.0.0",
"prettier": "^3.9.5",
"typescript": "~6.0.2"
}
}