Skip to content

Commit bcdebcc

Browse files
Copilotmikeharder
andauthored
Update js-yaml dependency to ^4.2.0 (#11081)
**@mikeharder** `js-yaml` has a security fix in `4.2.0`. But since `http-client-python` only floated `~4.1.0` instead of `^4.2.0`, consumers are prevented from updating. We should always float with `^` instead of `~`, unless we have a strong reason (eg some packages allow breaking changes in minors). **@copilot** Bumps the `js-yaml` dependency to `^4.2.0` in the http-client-python and http-client-java packages, widening the range to allow patch and minor updates within the 4.x line. ### Changes - **`packages/http-client-python/package.json`**: `~4.1.0` → `^4.2.0` - **`packages/http-client-java/package.json`**: `~4.2.0` → `^4.2.0` - **Lock files**: refreshed `js-yaml` resolution in both `package-lock.json` files (now `4.2.0`) - **Changelog**: added a chronus `dependencies` entry covering both packages Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com> Co-authored-by: Mike Harder <mharder@microsoft.com>
1 parent fe4d1e1 commit bcdebcc

5 files changed

Lines changed: 25 additions & 7 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
changeKind: dependencies
3+
packages:
4+
- "@typespec/http-client-python"
5+
- "@typespec/http-client-java"
6+
---
7+
8+
Update `js-yaml` dependency to `^4.2.0`

packages/http-client-java/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/http-client-java/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
},
6666
"dependencies": {
6767
"@autorest/codemodel": "~4.20.1",
68-
"js-yaml": "~4.2.0",
68+
"js-yaml": "^4.2.0",
6969
"lodash": "~4.18.1"
7070
},
7171
"devDependencies": {

packages/http-client-python/package-lock.json

Lines changed: 14 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/http-client-python/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
]
9696
},
9797
"dependencies": {
98-
"js-yaml": "~4.1.0",
98+
"js-yaml": "^4.2.0",
9999
"marked": "^15.0.6",
100100
"pyodide": "0.26.2",
101101
"semver": "~7.6.2",

0 commit comments

Comments
 (0)