Skip to content

Fix got missing from the dependency tree (#745) - #748

Merged
KavanPrice merged 3 commits into
mainfrom
bug/got-dependency-tree
Sep 16, 2026
Merged

KavanPrice merged 3 commits into
mainfrom
bug/got-dependency-tree

Conversation

@KavanPrice

Copy link
Copy Markdown
Contributor

Fixes #745.

service-client imports got in lib/deps.js but never declared it. It
only arrived as a hoisted peer of got-fetch, which is itself optional.
npm 11.6.0 (from #743) stops resolving that edge when a lockfile is present,
so v6.9.2 shipped without got and services died on their first HTTP call.

Changes

  • lib/js-service-client/package.json: got and got-fetch are now real
    dependencies (1.6.1). got-fetch moves out of optionalDependencies
    because build_node_fetch() imports both with no fallback.
  • mk/tools/check-imports.mjs + a PR workflow: asserts lib/js-* declares
    what it imports, so this fails the build next time.
  • historian-uns: use the in-tree service client. This was pinned at 1.3.6 from npm.

@KavanPrice
KavanPrice merged commit a0a037e into main Sep 16, 2026
2 checks passed
@KavanPrice
KavanPrice deleted the bug/got-dependency-tree branch September 16, 2026 13:43
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.

got dependency not in tree

2 participants