You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🚀 Shift to AST-centered design (Major Version Upgrades)
Purpose of Major Version Upgrade (v1)
The modules around AST were integrated, and the functions for models stringing to DOT language, distributed in multiple locations, have been consolidated.
In this Pull Request, we have taken the @ts-graphviz/parser package and integrated its functionality.
We provided AST-related processing such as parse and stringify functions as the ts-graphviz/ast module.
We also made internal improvements for the extensibility of processing.
Attribute Types
We have prepared type definitions for various attributes.
This allows for editorial assistance in specifying attributes and checks in TypeScript.
The structure of ASTs provided by @ts-graphviz/parser is different from that offered by ts-graphviz/ast.
There are few changes to the implementation of parser, and the modifications are aimed at unifying the naming across the package and commonality to the JavaScript ecosystem.
Interface naming conventions
In integrating AST into the package, a blurring of naming conventions became an issue.
We eliminated the naming conventions for existing interfaces prefixed with I, such as ICluster, and made changes to allow the same overall naming as the AST type.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
🚀 Shift to AST-centered design (Major Version Upgrades)
Purpose of Major Version Upgrade (v1)
The modules around AST were integrated, and the functions for models stringing to DOT language, distributed in multiple locations, have been consolidated.
See #622
New Features
ts-graphviz/astModuleIn this Pull Request, we have taken the
@ts-graphviz/parserpackage and integrated its functionality.We provided AST-related processing such as
parseandstringifyfunctions as thets-graphviz/astmodule.We also made internal improvements for the extensibility of processing.
Attribute Types
We have prepared type definitions for various attributes.
This allows for editorial assistance in specifying attributes and checks in TypeScript.
See #542
BREAKING CHANGES
Structure of AST
The structure of ASTs provided by
@ts-graphviz/parseris different from that offered byts-graphviz/ast.There are few changes to the implementation of parser, and the modifications are aimed at unifying the naming across the package and commonality to the JavaScript ecosystem.
Interface naming conventions
In integrating AST into the package, a blurring of naming conventions became an issue.
We eliminated the naming conventions for existing interfaces prefixed with
I, such asICluster, and made changes to allow the same overall naming as the AST type.Other Changes
And we have also made the following improvements
Issues
PR
This discussion was created from the release v1.0.0 🌈.
Beta Was this translation helpful? Give feedback.
All reactions