Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/dependency-overrides.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Dependency override rationale

The overrides in `package.json` are intentionally narrow and should be revisited when the upstream packages move their dependency ranges.

## Security fixes

- `axios` is pinned to `1.18.1` to incorporate the security update from the open Dependabot update, Ref: #228. It is consumed transitively by the OpenTelemetry Jaeger remote sampler.
- `@opentelemetry/propagator-jaeger` is pinned to `2.10.0` because the current OpenTelemetry SDK pins `2.8.0`, which is affected by `GHSA-45rx-2jwx-cxfr`. Version `2.10.0` aligns with the existing `@opentelemetry/core` override.
- `brace-expansion` is overridden only below `glob@10.5.0` and its `minimatch` dependency at `2.1.4`. This fixes the vulnerable 2.x subtree while preserving the separate `5.0.9` subtree required by ESLint's `minimatch` 10 dependency.

## Deferred major updates

- TypeScript remains on the TypeScript 6 line. The current `typescript-eslint` packages require a TypeScript version below `6.1.0`, and TypeScript 7 does not provide the JavaScript compiler API they need. Ref: #214.
- `js-yaml` remains pinned to `4.3.1`. Current GraphQL Mesh utilities use v4 APIs removed in js-yaml 5, including `DEFAULT_SCHEMA.extend` and `Type`. Ref: #190.

Do not use `npm audit fix --force` for these dependencies. Its proposed gateway downgrade would be a breaking runtime change. Re-evaluate the deferred updates when the upstream consumers publish compatible releases.
46 changes: 36 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,17 @@
"typescript": "^6.0.0"
},
"overrides": {
"axios": "1.18.1",
"@grpc/grpc-js": "1.14.4",
"@opentelemetry/core": "2.10.0",
"@opentelemetry/propagator-jaeger": "2.10.0",
"fast-uri": "4.1.2",
"form-data": "4.0.6",
"glob@10.5.0": {
"minimatch": {
"brace-expansion": "2.1.4"
}
},
"js-yaml": "4.3.1",
"protobufjs": "8.7.1",
"uuid": "14.0.1"
Expand Down
Loading