Skip to content

Releases: bash/broccolini

2.0.0

25 Jun 14:37
5726fb4
Compare
Choose a tag to compare
  • ✨ Empty lines are now attributed as leading / trailing trivia
    instead of generating UnrecognizedIniNodes. See #13.
  • ⚡ Breaking: A lot of restructuring has gone into the AST.
    These changes only affect advanced users that manipulate the AST directly and not via the Editing API.
  • 🐛 Newlines preceded by whitespace are now correctly categorized as newlines instead
    of whitespace. See #15.

1.0.1

11 Apr 19:02
b9db6db
Compare
Choose a tag to compare
  • Update package metadata

1.0.0

26 May 08:14
8c8231a
Compare
Choose a tag to compare

This release polishes the API by simplifying names, namespaces and adding some convenience:
Most notably, all important types now have the Ini prefix: IniDocument, IIniSection, etc.
All of the APIs which are expected to be used by regular consumers of the library now live in the main namespace Broccolini.

The main entry point of the library is as before the IniParser class with two methods:

  • Parse parses the document into an AST that preserves formatting and comments for editing.
  • ParseToSemanticModel parses the document into a semantic representation optimized for reading.

A lot of advanced APIs are now marked as [EditorBrowsable(Advanced)] to create a pit of success
when looking at the API surface.

0.2.2

22 Mar 09:21
29a1f66
Compare
Choose a tag to compare
  • Improve insertion heuristic for keys when section contains trailing whitespace. (#5)

0.2.1

23 May 15:19
29dbec6
Compare
Choose a tag to compare
  • Fix broken newline detection for appending a node to new section (Follow up to #1).

0.2.0

23 May 15:18
f4fb6d7
Compare
Choose a tag to compare
  • Fix incorrect package description.
  • Fix broken newline detection for appending a node to an empty section. (#1)
  • Use stronger types in AST.
  • Distinguish comment nodes from unrecognized nodes in AST.
  • Treat all characters < ' ' as whitespace to align with Windows' behaviour.

0.1.0

11 May 15:44
e74862d
Compare
Choose a tag to compare

Initial release