Skip to content

Releases: KenKundert/nestedtext

v1.2

31 Oct 19:55
Compare
Choose a tag to compare
  • Treat CR LF, CR, or LF as a line break.
  • Always quote keys that start with a quote.

v1.1

11 Oct 16:02
Compare
Choose a tag to compare
  • Add ability to specify return type of load() and loads().
  • Quoted keys are now less restricted.
  • Empty dictionaries and lists are rejected by dump() and dumps() except as top-level object if default argument is specified as 'strict'.

Be aware that this version is not fully backward compatible. Unlike previous versions, this version allows you to restrict the type of the return value of the load() and loads() functions, and the default is 'dict'. The previous behavior is still supported, but you must explicitly specify top='any' as an argument.

his change results in a simpler return value from load() and loads() in most cases. This substantially reduces the chance of coding errors. It was noticed that it was common to simply assume that the top-level was a dictionary when writing code that used these functions, which could result in unexpected errors when users hand-create the input data. Specifying the return value eliminates this type of error.

There is another small change that is not backward compatible. The source argument to these functions is now a keyword only argument.

v1.0

03 Oct 19:35
Compare
Choose a tag to compare

Production release.

v0.6

26 Sep 22:06
Compare
Choose a tag to compare
  • Added load and dump functions.
  • Eliminated NestedTextError.get_extended_codicil.

v0.5

12 Sep 05:32
Compare
Choose a tag to compare
  • allow user to manage duplicate keys detected by loads().

v0.4

07 Sep 20:14
Compare
Choose a tag to compare
  • Change rest-of-line strings to include all characters given, including leading and trailing quotes and spaces.
  • The NestedText top-level is no longer restricted to only dictionaries and lists. The top-level can now also be a single string.
  • loads() now returns None when given an empty NestedString.
  • Change NestedTextError attribute names to make them more consistent with those used by JSON package.
  • Added NestedTextError.get_extended_codicil().

v0.3

03 Sep 18:38
Compare
Choose a tag to compare
  • Allow comments to be indented.

v0.2

02 Sep 20:29
Compare
Choose a tag to compare
  • Minor enhancements and bug fixes.

v0.1

31 Aug 05:22
Compare
Choose a tag to compare

Initial release.