Skip to content

fix(deps): update dependency js-yaml to v5 - #733

Open
mrbro-bot[bot] wants to merge 1 commit into
mainfrom
renovate/js-yaml-5.x
Open

fix(deps): update dependency js-yaml to v5#733
mrbro-bot[bot] wants to merge 1 commit into
mainfrom
renovate/js-yaml-5.x

Conversation

@mrbro-bot

@mrbro-bot mrbro-bot Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence OpenSSF Code Search
js-yaml ^4.3.1^5.0.0 age confidence OpenSSF Scorecard GitHub Code Search for "js-yaml"

Release Notes

nodeca/js-yaml (js-yaml)

v5.3.0

Compare Source

This release focuses on reworking the documentation and making small
architectural improvements before moving forward.

Added
  • Added completely new documentation.
  • Exported DUMP_SCHEMA, the default schema used by the dumper.
  • Added YAMLException.throwAt() for throwing an error at a source position.
Changed
  • Changed flat constant exports to grouped exports: EVENT_ID, SCALAR_STYLE,
    COLLECTION_STYLE, and CHOMPING_MODE, along with their value types. The old
    exports are still preserved, but deprecated.
  • Made identify mandatory for custom tag definitions. Use
    identify: () => false for load-only tags.
Deprecated
  • Deprecated flat constant exports. Use grouped ones instead.
Removed
  • Removed the MERGE_KEY export (not used anymore after last fixes).
Fixed
  • Validate << sequence items at merge time, so aliased merge sources are
    checked too.
  • Resolve << outside of a mapping key as the plain string '<<', matching
    v4, instead of leaking an internal symbol into the result.

v5.2.3

Compare Source

Fixed
  • Prevent prototype fallback when resolving tags and mapping entries, #​782.
  • Resolve !!timestamp years 0000-0099 correctly, #​775.
  • Preserve implicit null mapping values before document markers and reject
    unpaired mapping event streams, #​784.
  • Preserve folded scalar values with tab-indented lines when round-tripping a
    parsed AST through present(); dump() and loading are unaffected, #​780.

v5.2.2

Compare Source

Fixed
  • Quote flow scalars where a colon precedes a flow indicator, #​773.
Security
  • Avoid exponential parsing time for nested flow sequence pairs.

v5.2.1

Compare Source

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).

v5.2.0

Compare Source

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)

v5.1.0

Compare Source

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.

v5.0.0

Compare Source

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
    tagBeforeAnchor.
  • Added formal data layers (events and AST) for modular data pipelines.
    • Added low-level parser (to events), presenter and visitor APIs.
  • Added the YAML Test Suite to the
    test set.
Changed
  • See the migration guide for upgrade notes.
  • Rewritten in TypeScript and reorganized the public API around flat named
    exports.
  • Reduced the set of exported schemas:
    • YAML 1.2 schemas: CORE_SCHEMA (loader default), JSON_SCHEMA,
      FAILSAFE_SCHEMA.
    • YAML11_SCHEMA, a combination of all YAML 1.1 tags (YAML 1.1 does not
      specify a schema, only "types").
  • load/dump default behaviour is now specified exactly via schemas:
    • load uses CORE_SCHEMA, without !!merge by default.
    • dump uses YAML11_SCHEMA + CORE_SCHEMA for the quoting check, to
      guarantee backward compatibility by default.
  • !!set is now loaded as a JavaScript Set.
  • Replaced the Type API with a tags API. Similar, but more precise and
    simpler. See examples for details. Tags can be defined via
    defineScalarTag(), defineSequenceTag() and defineMappingTag(), or as a
    spread + override of an existing tag.
  • Renamed Schema.extend() to Schema.withTags().
  • Expanded YAML 1.2 conformance and improved handling of directives, document
    markers, block keys, multiline scalars, tag syntax and other things.
  • load() now throws on empty input instead of returning undefined.
  • Moved browser builds to the js-yaml/browser export.
  • Deprecated the loadAll signature with an iterator (still works, but is a
    candidate for removal).
Removed
  • Removed deprecated safeLoad(), safeLoadAll() and safeDump() exports.
  • Removed DEFAULT_SCHEMA and the nested types export.
  • Removed loader options onWarning, legacy and listener.
  • Removed dumper options styles, replacer, noCompatMode, condenseFlow,
    quotingType and forceQuotes. Renamed noArrayIndent to seqNoIndent.
    Formatting and representation are now configured through presenter options,
    schemas and tag definitions. See migration guide on how to replace.
  • Removed support for importing internal files from lib/.

Configuration

📅 Schedule: (in timezone America/Phoenix)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

@mrbro-bot mrbro-bot Bot added dependencies Dependency updates or security alerts javascript major Major version changes renovate Renovate bot updates labels Jul 31, 2026
@mrbro-bot mrbro-bot Bot added renovate Renovate bot updates major Major version changes javascript labels Jul 31, 2026
@mrbro-bot
mrbro-bot Bot requested a review from marcusrbrown July 31, 2026 19:28
@mrbro-bot

mrbro-bot Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor Author

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: undefined
Command failed: bun run postupgrade
$ bun run build && bun run agent-browser:build
$ bun run clean && bun build src/index.ts src/cli.ts --outdir dist --target bun --splitting --external @opencode-ai/plugin --external js-yaml && bun build src/pi.ts --outdir dist --target node --external @earendil-works/pi-coding-agent --external typebox && tsc --emitDeclarationOnly
$ rimraf dist
1 | import yaml from 'js-yaml'
           ^
error: No matching export in "node_modules/.bun/js-yaml@5.2.2/node_modules/js-yaml/dist/js-yaml.mjs" for import "default"
    at /tmp/renovate/repos/github/marcusrbrown/systematic/src/lib/frontmatter.ts:1:8
error: script "build" exited with code 1
error: script "postupgrade" exited with code 1

@mrbro-bot
mrbro-bot Bot force-pushed the renovate/js-yaml-5.x branch 13 times, most recently from ff4ee4f to 8896446 Compare August 1, 2026 05:20
@mrbro-bot mrbro-bot Bot removed the javascript label Aug 1, 2026
@mrbro-bot
mrbro-bot Bot force-pushed the renovate/js-yaml-5.x branch 4 times, most recently from 8eb78ec to 1026e27 Compare August 3, 2026 04:26
@mrbro-bot
mrbro-bot Bot force-pushed the renovate/js-yaml-5.x branch from ec05dd7 to 2a31196 Compare August 7, 2026 13:51
@mrbro-bot
mrbro-bot Bot force-pushed the renovate/js-yaml-5.x branch 12 times, most recently from e6a0540 to db3e76b Compare August 13, 2026 17:21
marcusrbrown pushed a commit that referenced this pull request Aug 13, 2026
…-5p4m-2wfm-xmqj) (#760)

Direct dependency js-yaml resolved to 4.3.0, which is affected by
GHSA-5p4m-2wfm-xmqj / CVE-2026-59870 (High, CVSS 7.5): O(n^2) key-uniqueness
scan in !!omap resolution allows a small malicious YAML document to block
the event loop for seconds. js-yaml is used directly in
src/lib/frontmatter.ts to parse skill/agent/command frontmatter.

4.3.1 contains the fix (Set-based key tracking, same approach as the 5.x
line) and satisfies the existing ^4.1.1 semver range in package.json, so
no source changes are required. This is a lockfile-scoped patch bump,
independent of the pending major-version PR #733 (js-yaml v5), which
additionally requires an import-shape fix for the dropped default export
and is left to Renovate/category-1 repair.

Verified: typecheck, lint, bun test tests/unit (1827 pass), build,
content-integrity, and the ESM default-export smoke test all pass on
this branch.
@mrbro-bot
mrbro-bot Bot force-pushed the renovate/js-yaml-5.x branch 14 times, most recently from 797cdf6 to f40252b Compare August 16, 2026 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dependency updates or security alerts major Major version changes renovate Renovate bot updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant