Packages

yaml

2.9.1 · 11 Sep 2026ISC330.2M / weekRepositoryHomepagenpmAtom feed

Upgrading yaml From 1.9.0 to 2.9.1

39 releases in betweennotes for 38

Other targets from 1.9.0Newest 1.x, Clears its advisory1.10.3
  1. 1.9.0yours
  2. 6 releases
  3. 2.0.0major
  4. 7 releases
  5. 2.2.2security
  6. 15 releases
  7. 2.7.0breaking
  8. 6 releases
  9. 2.9.0security
  10. 2.9.1target
31+
changes to make
1
advisory fixed
67+
new
28+
fixes

Counted from 38 of 39 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking2.7.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0

Security

Fixes 1 advisory affecting 1.9.0

  • Up to now, I've considered these as security vulnerabilities, and in fact it's the only category of error for which yaml CVEs have been issued so far.

    2.9.0
  • Starting from this release, I'll be considering such errors as bugs, but not vulnerabilities.

    2.9.0
  • Corner case failure in error pretty-printer (CVE-2023-2251)

    2.2.2

Release by release

  1. 2.9.1nothing new or fixed in the note

  2. 2.9.0

    Security fix11 May 20262 fixes
    • Security

      Up to now, I've considered these as security vulnerabilities, and in fact it's the only category of error for which yaml CVEs have been issued so far.

    • Security

      Starting from this release, I'll be considering such errors as bugs, but not vulnerabilities.

    • Fixed

      Avoid calling Array.prototype.push.apply() with large source array

    • Fixed

      lexer: Avoid recursive calls that may exhaust the call stack

  3. 2.8.4

    2 May 20261 fix
    • Fixed

      Handle invalid unicode escapes

  4. 2.8.3

    21 Mar 20261 new
    • New

      Add trailingComma ToString option for multiline flow formatting

  5. 2.8.2

    30 Nov 20251 fix
    • Fixed

      Do not double newlines for empty map values

  6. 2.8.1nothing new or fixed in the note

  7. 2.8.0

    15 May 20253 new
    • New

      Add node cache for faster alias resolution

    • New

      Add --merge option to CLI tool

    • New

      Allow empty string as plain scalar representation, for failsafe schema

  8. 2.7.1

    29 Mar 20251 fix
    • Fixed

      Do not allow seq with single-line collection value on same line with map key

54 other lines we could not sort, mostly version bumps
  • Limit recursive merge aliases (#685, #713)

    2.9.1
  • Simplify line unfolding during quoted string parsing

    2.9.1
  • Disable alias resolution with maxAliasCount:0

    2.8.4
  • Apply minFractionDigits only to decimal strings

    2.8.4
  • Catch stack overflow during node composition

    2.8.3
  • Serialize -0 as -0

    2.8.2
  • Preserve empty block literals

    2.8.1
  • Re-introduce compatibility with Node.js 14.6

    2.8.0
  • Improve error for tag resolution error on null value

    2.8.0
  • Improve warning & avoid TypeError on bad YAML 1.1 nodes

    2.7.1

4 internal lines (docs, tests, tooling) left out.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.