Skip to content

Bump js-yaml from ^4.2.0 to ^5.0.0#4451

Merged
nickrolfe merged 2 commits into
mainfrom
nickrolfe-bump-js-yaml-to-v5
Jul 10, 2026
Merged

Bump js-yaml from ^4.2.0 to ^5.0.0#4451
nickrolfe merged 2 commits into
mainfrom
nickrolfe-bump-js-yaml-to-v5

Conversation

@nickrolfe

@nickrolfe nickrolfe commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

js-yaml v5 is rewritten in TypeScript and ships its own type declarations, so @types/js-yaml is no longer needed.

nickrolfe and others added 2 commits July 10, 2026 10:30
js-yaml v5 is rewritten in TypeScript and ships its own type
declarations, so @types/js-yaml is no longer needed.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@nickrolfe nickrolfe marked this pull request as ready for review July 10, 2026 12:31
@nickrolfe nickrolfe requested a review from a team as a code owner July 10, 2026 12:31
Copilot AI review requested due to automatic review settings July 10, 2026 12:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the extensions/ql-vscode extension to use js-yaml v5 (which now ships its own TypeScript declarations), and adjusts qlpack YAML loading to preserve the existing “empty/whitespace file => empty object” semantics without invoking the YAML parser on blank input.

Changes:

  • Bump js-yaml dependency from ^4.2.0 to ^5.0.0.
  • Remove @types/js-yaml from devDependencies (now provided by js-yaml itself).
  • Avoid calling js-yaml.load for whitespace-only qlpack files, while still normalizing empty/undefined parses to {} before schema validation.
Show a summary per file
File Description
extensions/ql-vscode/src/packaging/qlpack-file-loader.ts Skips YAML parsing for blank/whitespace files and continues to normalize empty content to {} before AJV validation.
extensions/ql-vscode/package.json Updates js-yaml to v5 and removes @types/js-yaml.
extensions/ql-vscode/package-lock.json Locks js-yaml to v5.x and removes @types/js-yaml from the resolved dependency tree.

Review details

Tip

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

Files not reviewed (1)
  • extensions/ql-vscode/package-lock.json: Generated file
  • Files reviewed: 2/3 changed files
  • Comments generated: 0
  • Review effort level: Low

@nickrolfe

Copy link
Copy Markdown
Contributor Author

I took one of the fixes from #4438, which seems to be enough to get CI checks to pass.

@nickrolfe nickrolfe requested a review from josefs July 10, 2026 12:53
@josefs

josefs commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

LGTM. Sorry for dropping the ball on #4438 .

@nickrolfe nickrolfe merged commit c4229ed into main Jul 10, 2026
33 checks passed
@nickrolfe nickrolfe deleted the nickrolfe-bump-js-yaml-to-v5 branch July 10, 2026 13:21
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.

3 participants