Repository navigation
v2.1.0
Added
- Parsing: New
temporaloption inParseOptions. Whentrue, TOML date/time values are returned as Temporal objects (Temporal.PlainDate,Temporal.PlainTime,Temporal.PlainDateTime,Temporal.ZonedDateTime) instead of customDatesubclasses (#230). - Stringify: Auto-detect Temporal objects in the input JS and serialize them to the correct TOML date/time type. Note that
ZonedDateTimewith 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 |
|---|---|
| https://www.npmjs.com/package/@decimalturn/toml-patch/v/2.1.0 | |
| https://jsr.io/@decimalturn/toml-patch@2.1.0 |