Skip to content

build(deps): bump js-yaml from 4.2.0 to 5.2.1#2789

Merged
madhavilosetty-intel merged 2 commits into
mainfrom
dependabot/npm_and_yarn/js-yaml-5.2.1
Jul 9, 2026
Merged

build(deps): bump js-yaml from 4.2.0 to 5.2.1#2789
madhavilosetty-intel merged 2 commits into
mainfrom
dependabot/npm_and_yarn/js-yaml-5.2.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 2, 2026

Copy link
Copy Markdown
Contributor

Bumps js-yaml from 4.2.0 to 5.2.1.

Changelog

Sourced from js-yaml's changelog.

[5.2.1] - 2026-07-02

Fixed

  • Add Map support to !!omap (should work when realMapTag used)

Security

  • Remove quadratic complexity from !!omap addItem. Regression from v5 (usually not critical, because YAML11_SCHEMA is not default anymore).

4.3.0, 3.15.0 - 2026-06-27

Security

  • Backported maxTotalMergeKeys option.

[5.2.0] - 2026-06-26

Added

  • Added maxTotalMergeKeys (10000) loader option to limit the total number of keys processed by YAML merge (<<) across one load() / loadAll() call.
  • Added maxAliases (-1) loader option to limit the number of YAML aliases per document.

Removed

  • maxMergeSeqLength replaced with maxTotalMergeKeys for limiting YAML merge processing.

Fixed

  • Round-trip of integers with exponential form (>= 1e21)

[5.1.0] - 2026-06-23

Added

  • Collection tags can finalize an incrementally populated carrier into a different result value.

Changed

  • [breaking] quoteStyle now selects the preferred quote style; use the restored forceQuotes option to force quoting non-key strings.

[5.0.0] - 2026-06-20

Added

  • Added named exports for schemas, tags, parser events and AST utilities.
  • Reworked JSON_SCHEMA and CORE_SCHEMA with spec-compliant scalar resolution rules, and added YAML11_SCHEMA.
  • Added realMapTag for lossless mappings with non-string and complex keys. Object-based mappings now reject complex keys instead of stringifying them.
  • Added dump() transform option for changing the generated AST before rendering.
  • Added dump() options seqInlineFirst, flowBracketPadding, flowSkipCommaSpace, flowSkipColonSpace, quoteFlowKeys, quoteStyle and

... (truncated)

Commits
  • ac16b42 5.2.1 released
  • 4a864e5 Deps bump
  • 39f3211 !!omap: add Map support and remove quadratic complexity
  • ff17f1e Changelog update
  • 8ed15f1 deps bump
  • 1a562dc Fix changelog link
  • c28ed5e 5.2.0 released
  • 125cd5a Add maxAliases option
  • 3105455 Replace maxMergeSeqLengthoption with maxTotalMergeKeys (more robust)
  • 39d00d6 numbers: Drop boxed numbers support, simplify .identify() checks, clarify rou...
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jul 2, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/js-yaml-5.2.1 branch from 9a87678 to 0477692 Compare July 6, 2026 06:11
dependabot Bot and others added 2 commits July 8, 2026 16:37
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.2.0 to 5.2.1.
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](nodeca/js-yaml@4.2.0...5.2.1)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 5.2.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
js-yaml v5 is ESM-only and dropped its default export, exposing only
flat named exports. The profile export route imported the default
(`import yaml from 'js-yaml'`), so `yaml.dump()` threw and the export
endpoint returned 500. Switch to named imports (`dump`/`load`) in the
route and its test.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

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 upgrades the js-yaml dependency from 4.2.0 to 5.2.1 and updates the only in-repo call sites to use the v5+ named exports API (dump / load) in the profile export route and its test.

Changes:

  • Bump js-yaml to ^5.2.1 (and update lockfile resolution).
  • Update src/routes/admin/profiles/export.ts to use import { dump } from 'js-yaml'.
  • Update src/routes/admin/profiles/export.test.ts to use import { load } from 'js-yaml'.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
src/routes/admin/profiles/export.ts Switch YAML serialization call to the dump named export required by newer js-yaml APIs.
src/routes/admin/profiles/export.test.ts Switch YAML parsing helper to the load named export to match the upgraded dependency.
package.json Bump js-yaml dependency range from ^4.2.0 to ^5.2.1.
package-lock.json Update resolved js-yaml package metadata to 5.2.1 (tarball, integrity, bin entry).

@sinchubhat

Copy link
Copy Markdown
Contributor

Tested, able to export profile.

@madhavilosetty-intel
madhavilosetty-intel merged commit 095e5d4 into main Jul 9, 2026
10 checks passed
@madhavilosetty-intel
madhavilosetty-intel deleted the dependabot/npm_and_yarn/js-yaml-5.2.1 branch July 9, 2026 17:13
@RosieAMT

Copy link
Copy Markdown

🎉 This PR is included in version 2.39.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants