Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nodeca/js-yaml
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5.1.0
Choose a base ref
...
head repository: nodeca/js-yaml
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5.2.0
Choose a head ref
  • 6 commits
  • 15 files changed
  • 2 contributors

Commits on Jun 24, 2026

  1. Update migration info, close #770

    puzrin committed Jun 24, 2026
    Configuration menu
    Copy the full SHA
    89024c4 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2026

  1. fix: round-trip integers that stringify in exponential notation (#771)

    Integers at or above 1e21 (and Number.MAX_VALUE) stringify via
    Number.prototype.toString(10) in exponential notation, e.g. 1e21 -> "1e+21".
    The int tags identified these numbers (1e21 % 1 === 0) and represented them
    with that exponential text, producing output like `!!int '1e+21'`. That text
    matches no `!!int` resolution pattern, so loading the library's own dump output
    threw "cannot resolve a node with !<tag:yaml.org,2002:int> explicit tag".
    
    Per YAML 1.2.2 the Core (10.3) and JSON (10.2) `!!int` resolution accepts only
    [-+]?[0-9]+ (plus 0o/0x forms); exponential text is a float, not an int.
    
    Make the int tags reject numbers whose decimal stringification contains an
    exponent, and let the float tags claim them instead. The float `represent`
    already emits a valid float form (1.e+21) for such values, so they now
    round-trip. Restores the "numbers survive round-trip" invariant (#737) for
    large integers across the default, Core, JSON and YAML 1.1 schemas.
    spokodev authored Jun 26, 2026
    Configuration menu
    Copy the full SHA
    eb5cb5b View commit details
    Browse the repository at this point in the history
  2. numbers: Drop boxed numbers support, simplify .identify() checks, cla…

    …rify round-trip test (ref #771)
    puzrin committed Jun 26, 2026
    Configuration menu
    Copy the full SHA
    39d00d6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3105455 View commit details
    Browse the repository at this point in the history
  4. Add maxAliases option

    puzrin committed Jun 26, 2026
    Configuration menu
    Copy the full SHA
    125cd5a View commit details
    Browse the repository at this point in the history
  5. 5.2.0 released

    puzrin committed Jun 26, 2026
    Configuration menu
    Copy the full SHA
    c28ed5e View commit details
    Browse the repository at this point in the history
Loading