Packages

yaml

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

Upgrading yaml From 2.4.0 to 2.9.1

18 releases in betweenevery note read

Other targets from 2.4.0Clears its advisory2.8.3
  1. 2.4.0yours
  2. 9 releases
  3. 2.7.0breaking
  4. 6 releases
  5. 2.9.0security
  6. 2.9.1target

Before you upgrade

Tick each one off as you go
  • Breaking2.7.0

Security

Fixes 1 advisory affecting 2.4.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

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

29 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

1 internal line (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.