Skip to content

Releases: squirrelchat/smol-toml

v1.3.0

17 Jul 15:30
f72e14a
Compare
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
Compare
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
Compare
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
Compare
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

v1.1.4

23 Jan 12:28
38fb814
Compare
Choose a tag to compare

What's Changed

  • Improve toml-test integration by @arp242 in #11
  • Fix empty arrays not being included in serialized TOML

New Contributors

Full Changelog: v1.1.3...v1.1.4

v1.1.3

18 Oct 09:15
9b024b2
Compare
Choose a tag to compare

This release fixes a few bugs that were not initially caught by the TOML test suite, further aligning this library with complete TOML specification conformance. 🎉

What's Changed

New Contributors

Full Changelog: v1.1.2...v1.2.3

v1.1.2

20 Aug 12:44
3f9f4d1
Compare
Choose a tag to compare

Fixed a smol issue with types where TomlPrimitive was not exposed, despite being a user-facing type.

Full Changelog: v1.1.1...v1.1.2

v1.1.1

11 Jul 10:08
2e11fd1
Compare
Choose a tag to compare

What's Changed

  • Fix usage in webpack by @decahedron1 in #4
  • Added types to package.json to allow older TS versions and projects without a tsconfig to resolve type information (see #3)

New Contributors

Full Changelog: v1.1.0...v1.1.1

v1.1.0

22 May 12:42
11e3a36
Compare
Choose a tag to compare

smol-toml can now serialize objects to TOML 🎉 A basic (and fast!) serializer has been implemented, with no customization capabilities for now. Refer to the README for gotchas about the serializer and how it handles certain types that cannot be represented in TOML such as null!

What's Changed

Full Changelog: v1.0.1...v1.1.0

v1.0.1

18 May 14:30
340636e
Compare
Choose a tag to compare

This releases fixes a bunch of issues related with spec-compliance, as well as a few bugs! This version now passes (almost) all of the extensive semi-official toml-test suite by BurntSushi! 🎉

  • Double, trailing and leading underscores are no longer accepted in numbers
  • \r alone is no longer considered a line return
  • Tricky comments in arrays no longer trick the parser
  • Keys containing a string with an equals sign no longer break the parser
  • Duplicate tables across arrays of tables are no longer rejected
  • Certain edge-cases regarding table re-creation via dotted keys are now handled properly

The library also got a significant performance improvement for small documents, and got slightly slower for huge documents. Benchmarks have been updated on the README.

Full Changelog: v1.0.0...v1.0.1