Releases: bblfsh/uast-viewer
Releases · bblfsh/uast-viewer
v0.4.0
v0.3.0
Breaking changes
- All components and function that expect flat uast as input use proper name
flatUast
instead ofuast
#72 UASTViewer
component renamed toFlatUASTViewer
andUASTViewer
is a just a wrapper now with the same default aswithUASTEditor
#79UASTViewer
/FlatUASTViewer
components expect newinitialUast
prop for uncontrolled mode. #76
Fixes
v0.2.0
v0.1.1
v0.1.0
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 argumentoptions
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 ofwithUASTEditor
- 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