Skip to content

Releases: squirrelchat/smol-toml

v1.4.2

09 Aug 16:17
v1.4.2
699fb61

Choose a tag to compare

A smol fix to better handle strings with many successive backslash characters.

What's Changed

fix: string escape detection in util.ts by @cyyynthia

Full Changelog: v1.4.1...v1.4.2

v1.4.1

01 Jul 08:08
v1.4.1
123f074

Choose a tag to compare

A little fix for asNeeded not being implemented correctly.

What's Changed

fix: properly implement asNeeded by @cyyynthia

Full Changelog: v1.4.0...v1.4.1

v1.4.0

28 Jun 10:21
v1.4.0
03135db

Choose a tag to compare

This release introduces better support for integers, courtesy of @Gouvernathor! It is now possible to parse integers that are larger than 53 bits as BigInts. It is also possible to parse all integers as BigInts, enabling full type preservation of TOML documents.

The project is now tested against Node 24 as well, ensuring stability on the latest versions of Node.js.

What's Changed

New Contributors

Full Changelog: v1.3.4...v1.4.0

v1.3.4

24 Apr 17:06
v1.3.4
467ece4

Choose a tag to compare

Fixing some bugs that have been surfaced by the latest tests added to toml-test.

What's Changed

  • fix: don't attempt to skip until comma if not in a structure by @cyyynthia
  • fix: get extreme datetime to work by @cyyynthia

Full Changelog: v1.3.3...v1.3.4

v1.3.3

16 Apr 18:10
v1.3.3
427e7ba

Choose a tag to compare

Follow up of v1.3.2, where the package is published in JavaScript instead of nocode. 🚀

image

v1.3.2

16 Apr 17:44
v1.3.2
35c77ea

Choose a tag to compare

Fixes the issue reported in #37 -- the library would fail to parse a document containing a one-line string, with an escaped double-quote, preceded by an escaped backslash, such as key = "value \\\" value".

Apologies for the lack of proper v1.3.1 tag; this release addressed GHSA-pqhp-25j4-6hq9 by adding a maximum depth while parsing.

Additionally, releases are now published to NPM with provenance attestations

What's Changed

  • fix: improve string end detection when preceded by an escaped backslash by @cyyynthia
  • fix: enforce maximum depth when parsing/stringifying by @cyyynthia

Full Changelog: v1.3.0...v1.3.2

v1.3.0

17 Jul 15:30
f72e14a

Choose a tag to compare

smol-toml is changing how it's distributed (again)! It's now a dual-package with native ESM and a CJS single-file build. This should make the package available for even more targets, now including targets which can't treat CJS as faux ESM!

What's Changed

Full Changelog: v1.2.2...v1.3.0

v1.2.2

25 Jun 07:13
a93a9c3

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.2.1...v1.2.2

v1.2.1

02 Jun 08:24
d8be034

Choose a tag to compare

Minor change to the package.json; removing the use of conditional export syntax in favor of the simpler, more commonly supported main package key.

What's Changed

  • ci: configure build and test by @cyyynthia in #19
  • fix: ditch conditional export syntax (to please bundlephobia) by @cyyynthia

Full Changelog: v1.2.0...v1.2.1

v1.2.0

15 May 14:52
91006d3

Choose a tag to compare

smol-toml can now be used as a CJS library, while remaining fully compatible with ESM-style imports.

It is also now possible to import the library to something similar to the JSON global:

import TOML from 'smol-toml'

What's Changed

Full Changelog: v1.1.4...v1.2.0