Packages

yaml

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

Upgrading yaml From 2.6.0 to 2.8.3

7 releases in betweenevery note read

Other targets from 2.6.0Newest 2.x, Latest2.9.1

Before you upgrade

Tick each one off as you go
  • Breaking2.7.0

Security

Fixes 1 advisory affecting 2.6.0

Release by release

  1. 2.8.3

    21 Mar 20261 new
    • New

      Add trailingComma ToString option for multiline flow formatting

  2. 2.8.2

    30 Nov 20251 fix
    • Fixed

      Do not double newlines for empty map values

  3. 2.8.1nothing new or fixed in the note

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

  5. 2.7.1

    29 Mar 20251 fix
    • Fixed

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

  6. 2.7.0

    Migration needed31 Dec 2024
    • Breaking

      Require Node.js 14.18 or later (was 14.6)

  7. 2.6.1

    19 Nov 20241 fix
    • Fixed

      Do not strip :00 seconds from !!timestamp values (#578, with thanks to @qraynaud)

10 other lines we could not sort, mostly version bumps
  • 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
  • Use .ts extension in all relative imports

    2.7.0
  • Ignore newline after block seq indicator as space before value

    2.7.0
  • Tighten regexp for JSON !!bool (#587, with thanks to @vra5107)

    2.6.1
  • Default to literal block scalar if folded would overflow

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