Skip to content

chore: dedupe yarn dependencies#2357

Open
dividedmind wants to merge 2 commits intomainfrom
chore/dedupe
Open

chore: dedupe yarn dependencies#2357
dividedmind wants to merge 2 commits intomainfrom
chore/dedupe

Conversation

@dividedmind
Copy link
Collaborator

@dividedmind dividedmind commented Mar 20, 2026

Required fixes to keep the build clean after deduplication:

  • @appland/client: bump @types/node ^17 → ^18 (old types lacked AbortSignal static methods, conflicting with DOM lib),
  • @appland/scanner: bump lru-cache ^6 → ^10 (drop @types/lru-cache, update to named import, tighten cache value type to NonNullable),
  • fix two prettier formatting errors surfaced by updated package types.

Also, bump minimatch to fix a GHSA.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR applies dependency and type fixes needed after Yarn dependency deduplication, primarily updating lru-cache usage in @appland/scanner and updating Node typings in @appland/client to keep TypeScript builds and formatting clean.

Changes:

  • Update @appland/scanner to lru-cache v10 (remove @types/lru-cache, switch to named import, tighten cache value typing).
  • Update @appland/client to use @types/node v18 to resolve type conflicts (notably around AbortSignal).
  • Apply Prettier/formatting fixes surfaced by updated package types.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/scanner/src/scan.ts Switch lru-cache import to v10-compatible named import.
packages/scanner/src/configuration/configurationProvider.ts Fix TypeScript indexed access typing syntax for rule.Options.
packages/scanner/src/appMapIndex.ts Switch lru-cache import and tighten cached AST type to NonNullable<QueryAST>.
packages/scanner/package.json Remove @types/lru-cache and bump lru-cache dependency to ^10.
packages/components/src/components/trace/TraceEventBlock.vue Prettier-driven selector formatting adjustment.
packages/client/package.json Bump @types/node to ^18.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Required fixes to keep the build clean after deduplication:
- @appland/client: bump @types/node ^17 → ^18 (old types lacked
  AbortSignal static methods, conflicting with DOM lib),
- @appland/scanner: bump lru-cache ^6 → ^10 (drop @types/lru-cache,
  update to named import, tighten cache value type to NonNullable),
- fix two prettier formatting errors surfaced by updated package types.
All four affected major versions updated to patched releases
via yarn up -R:
- 3.1.2 → 3.1.5,
- 5.1.6 → 5.1.9 (floor bumped in cli and scanner),
- 7.4.2 → 7.4.9,
- 9.0.4 → 9.0.9.
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.

2 participants