Skip to content

v0.1.0

Compare
Choose a tag to compare
@smacker smacker released this 19 Oct 14:40
· 81 commits to master since this release

The first release that allows rendering arbitrary JSON as UAST. And experimental support for UAST2.

Breaking Changes

  • export transformer & getNodePosition in uastV1 namespace
  • remove transformer hooks
  • remove nodes expanding from the transformer
  • schema isn't a static object anymore but a function
  • drop support for React <16.3.0
  • remove Position & Children components (they work the same as Properties & Array)

Features

  • withUASTEditor component constructor accepts new argument options which defines transformations from input json to internal format required for rendering:
    • options.transformer - function that converts input json to flat-uast
    • options.getNodePosition - function that returns position in codemirror format from node
    • options.getChildrenIds - function that returns array of all children ids
  • levelsToExpand isn't hardcoded in transformer anymore but is a property of withUASTEditor
  • experimental support for UAST2. Transformer and schema are available in uastV2 package.
  • add support for boolean values in UAST
  • enable greenkeeper to keep dependencies up to date

Bug Fixes

  • Bookmark element for a node with only start position is broken #48
  • Generated css classes don't contain undefined anymore