Skip to content

Upgrading tomlkit 0.2 to 0.3

Review needed0.2.0 → 0.3.0Changed5Fixed5

Review neededUpgrade verdict

5 behavior changes.

  • When you save a document, newly created dictionaries are written out in sorted order.
  • Newly added items are inserted in more sensible positions in the document.
  • A list of dictionaries is now written as an array of tables instead of an inline list.
  • Standalone tables are written without an extra blank line before them.
Nothing to change

No breaking, platform, security or deprecated items in this range.

Nothing in this upgrade needs a code or configuration change.

Generated by DepDelta from published Python source. Not mixed with prose notes.

  • added: export string
  • removed: function item(value)
  • changed: constructor Container() → constructor Container(parsed=…)
  • added: method Container.parsing(parsing)
  • changed: class AoT(Item) → class AoT(Item, list)
  • changed: class Array(Item) → class Array(Item, list)
  • changed: constructor AoT(body, name=…) → constructor AoT(body, name=…, parsed=…)
  • changed: constructor Whitespace(s) → constructor Whitespace(s, fixed=…)
  • changed: method Item.comment(comment, inline=…) → method Item.comment(comment)
  • added: function item(value, _parent=…)
  • added: method Array.append(_item)
  • added: method Array.clear()
  • added: method Whitespace.is_fixed()