Skip to content

Releases: bblfsh/uast-viewer

v0.4.0

05 Mar 18:22
Compare
Choose a tag to compare

Fixes:

  • fix types resolving in nodeSchema for uast v2 #92
  • allow Properties without name #93

Other:

  • use styledist 9 for documentation #94
  • dependencies updated

v0.3.0

28 Nov 16:29
Compare
Choose a tag to compare

Breaking changes

  • All components and function that expect flat uast as input use proper name flatUast instead of uast #72
  • UASTViewer component renamed to FlatUASTViewer and UASTViewer is a just a wrapper now with the same default as withUASTEditor #79
  • UASTViewer/FlatUASTViewer components expect new initialUast prop for uncontrolled mode. #76

Fixes

  • Add missed helpers to documentation #71
  • Remove flatmap-stream package from dependencies #82

v0.2.0

31 Oct 18:09
Compare
Choose a tag to compare

Breaking Changes

  • withUASTEditor uses UAST2 transformer by default.
  • Node use UAST2 schema by default

Features

  • replace documentation with UAST2
  • UAST1 is deprecated

Bug Fixes

  • uast2: fix array transformation

v0.1.1

23 Oct 08:30
Compare
Choose a tag to compare

Bug fixes in UAST2

v0.1.0

19 Oct 14:40
Compare
Choose a tag to compare

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