Skip to content

v2.1.0

Choose a tag to compare

@github-actions github-actions released this 21 Jul 21:39

Added

  • Parsing: New temporal option in ParseOptions. When true, TOML date/time values are returned as Temporal objects (Temporal.PlainDate, Temporal.PlainTime, Temporal.PlainDateTime, Temporal.ZonedDateTime) instead of custom Date subclasses (#230).
  • Stringify: Auto-detect Temporal objects in the input JS and serialize them to the correct TOML date/time type. Note that ZonedDateTime with IANA timezone annotations will throws an error (TOML only supports numerical offsets) (#230).

Full Changelog: v2.0.1...v2.1.0


Version specific links

Registry Link
npm https://www.npmjs.com/package/@decimalturn/toml-patch/v/2.1.0
jsr https://jsr.io/@decimalturn/toml-patch@2.1.0