Releases: DecimalTurn/toml-patch
Releases · DecimalTurn/toml-patch
v1.3.0
Added
- Formatting: Add
leadingBomoption toTomlFormatto preserve or add UTF-8 BOM (byte order mark) on output. This option is auto-detected from input strings and maintained through patch, stringify and document update operations (#198).
Full Changelog: v1.2.2...v1.3.0
Version specific links
| Registry | Link |
|---|---|
| https://www.npmjs.com/package/@decimalturn/toml-patch/v/1.3.0 | |
| https://jsr.io/@decimalturn/toml-patch@1.3.0 |
v1.2.2
Fixed
- Parsing: Strip leading UTF-8 BOM (byte order mark) from input strings and byte buffers (#189).
- Parsing: Reject disallowed control characters in bare tokens (#189).
- Parsing: Reject Arabic numerals and other Unicode digits in decimal integers (#187).
Full Changelog: v1.2.1...v1.2.2
Version specific links
| Registry | Link |
|---|---|
| https://www.npmjs.com/package/@decimalturn/toml-patch/v/1.2.2 | |
| https://jsr.io/@decimalturn/toml-patch@1.2.2 |
v1.2.1
Fixed
- Patching: Correctly append to nested AOT (array of tables) (#176).
- Patching: Fixed
findByPathscanning in AOT scope to continue looking at sibling entries after a partial prefix match fails (#176). - Patching: Support replacement of a entire table section with a scalar value (#176).
Full Changelog: v1.2.0...v1.2.1
Version specific links
| Registry | Link |
|---|---|
| https://www.npmjs.com/package/@decimalturn/toml-patch/v/1.2.1 | |
| https://jsr.io/@decimalturn/toml-patch@1.2.1 |
v1.2.0
Added
- Patching: Preserve trailing comments alignement when element of a row changes width (#165).
Fixed
- Patching: New root-level key-values pairs are now inserted at the top within the implicit root table scope (before the first
[table]or[[array]]header) instead of being appended at the end of the document (#171). - Patching: Ensure deleting last key of inline-table is done cleanly (#164).
- Patching: Preserving trailing comments on inline tables when deleting keys (#164).
- Patching: Support nested multiline inline-table patching inside arrays (#164).
Full Changelog: v1.1.1...v1.2.0
Version specific links
| Registry | Link |
|---|---|
| https://www.npmjs.com/package/@decimalturn/toml-patch/v/1.2.0 | |
| https://jsr.io/@decimalturn/toml-patch@1.2.0 |
v1.1.1
Fixed
- Patching: Preserve inline comment alignment when patching existing TOML date values with regular JavaScript
Dateobjects (#160).
Full Changelog: v1.1.0...v1.1.1
Version specific links
| Registry | Link |
|---|---|
| https://www.npmjs.com/package/@decimalturn/toml-patch/v/1.1.1 | |
| https://jsr.io/@decimalturn/toml-patch@1.1.1 |
v1.1.0
Added
- Patching: Preserve preferred escape sequence representation in basic strings (#131)
- Parsing: Add support for raw UTF-8 bytes (
Uint8Array/Buffer) as input forparse()andTomlDocument(#153). - Parsing: Add parsing options for
integersAsBigIntmodes ('asNeeded',true,false) with'asNeeded'as default (#153). - Formatting: Add
minimumDecimalsoption toTomlFormatto control float decimal padding during serialization (#153). - Parsing: Add support for rejection of invalid UTF-8 encoding as specified in
toml-test(#153).
Fixed
- Patching: Editing a multiline basic string that uses a line ending backslash now preserves the original line-break structure and indentation. When the new value cannot be faithfully represented with a line ending backslash (e.g., values with leading or trailing whitespace), the format falls back to a regular multiline basic string to preserve content integrity (#131).
- Parsing: Preserve full integer precision by returning
BigIntfor values outside the JS safe integer range. Fallback toNumberwhen integer cannot be parsed as aBigInt(#153 & #158). - Patching: Fixed mixed line endings bugs (#131).
- Date formatting: Ensure UTC year output is zero-padded to 4 digits for RFC3339 compliance (#153).
- Encoding: Fix encoding issue with DEL control character (#153 & #131).
Full Changelog: v1.0.7...v1.1.0
Version specific links
| Registry | Link |
|---|---|
| https://www.npmjs.com/package/@decimalturn/toml-patch/v/1.1.0 | |
| https://jsr.io/@decimalturn/toml-patch@1.1.0 |
v1.0.7
Fixed
- Stringifying:
undefinedvalues in objects are now silently ignored, matchingJSON.stringifybehavior (#148). - Patching: Setting a key to
undefinednow correctly removes it, including in nested tables and inline tables (#148). - Patching: Deleting a key from an inline table nested inside an inline array (e.g.
items = [{ name = "x", color = "y" }]) now works correctly (#148).
Full Changelog: v1.0.6...v1.0.7
Version specific links
| Registry | Link |
|---|---|
| https://www.npmjs.com/package/@decimalturn/toml-patch/v/1.0.7 | |
| https://jsr.io/@decimalturn/toml-patch@1.0.7 |
v1.0.6
What's Changed
- fix: ensure multiline inline table patching works by @DecimalTurn in #127
- fix: respect
inlineTableStartinside Table Arrays by @DecimalTurn in #144
Full Changelog: v1.0.5...v1.0.6
Links for this version:
v1.0.5
What's Changed
Main improvements
- feat: reduce bundle size by @DecimalTurn in #122
- fix: support patching for adding to nested inline tables by @DecimalTurn in #120
Specification update
Full Changelog: v1.0.2...v1.0.5
v1.0.2
What's Changed
- Improve stringification performance by @DecimalTurn in #106
Full Changelog: v1.0.1...v1.0.2