Skip to content

fix(observability-node): move @graphql-codegen/cli to devDependencies#480

Closed
Vadman97 wants to merge 1 commit intomainfrom
vkorolik/fix-lodash-audit-findings
Closed

fix(observability-node): move @graphql-codegen/cli to devDependencies#480
Vadman97 wants to merge 1 commit intomainfrom
vkorolik/fix-lodash-audit-findings

Conversation

@Vadman97
Copy link
Copy Markdown
Contributor

@Vadman97 Vadman97 commented Apr 20, 2026

Summary

  • Resolves 13 high-severity npm audit findings reported against @launchdarkly/observability-node@1.1.0 that traced back to lodash via @graphql-codegen/cli → @graphql-codegen/plugin-helpers.
  • Advisories eliminated from consumers' trees: GHSA-r5fr-rjxr-66jc, GHSA-f23m-r3pf-42rh, GHSA-xxjr-mmjv-4gpg.
  • @graphql-codegen/cli is only used by the codegen script (codegen.ts) for build-time GraphQL type generation; runtime imports come from @graphql-typed-document-node/core. Every other package in this monorepo already places it under devDependencies.

Test plan

  • yarn turbo run build --filter @launchdarkly/observability-node
  • yarn turbo run test --filter @launchdarkly/observability-node (63 tests pass)
  • Verify a downstream consumer no longer sees the three lodash advisories after publish

🤖 Generated with Claude Code


Note

Low Risk
Low risk dependency metadata change; the main impact is on build tooling availability rather than runtime behavior.

Overview
Moves @graphql-codegen/cli from dependencies to devDependencies in @launchdarkly/observability-node, so the GraphQL codegen tool is no longer installed for downstream consumers and only used during development/build.

Reviewed by Cursor Bugbot for commit 73968c0. Bugbot is set up for automated code reviews on this repo. Configure here.

@graphql-codegen/cli is only used by the codegen script (build-time
type generation from the GraphQL schema). Keeping it under dependencies
pulled lodash@4.17.x into consumers' runtime dependency trees via
@graphql-codegen/plugin-helpers, triggering 13 high-severity npm audit
findings (GHSA-r5fr-rjxr-66jc, GHSA-f23m-r3pf-42rh, GHSA-xxjr-mmjv-4gpg).

Every other package in the monorepo already places this under
devDependencies; this aligns observability-node with that pattern.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Vadman97 Vadman97 requested a review from a team as a code owner April 20, 2026 21:51
@Vadman97
Copy link
Copy Markdown
Contributor Author

superceded by #479

@Vadman97 Vadman97 closed this Apr 20, 2026
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.

1 participant