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
Breaking Changes
Codecs supplied by maxGraph are no longer registered by default. They MUST be registered before performing an encode or decode.
You can use one of the following functions to register codecs:
registerAllCodecs
registerCoreCodecs
registerEditorCodecs
To serialize the maxGraph model, you can use the ModelXmlSerializer class, which registers codecs under the hood.
Highlights
Codecs are no longer registered by default, which reduces side effects and coupling.
It also greatly improves tree-shaking β¨.
For example, in the ts-example application included in this repository which doesn't use the "codec" feature, the size of the minified maxGraph chunk goes from 568.58 kB with version 0.5.0 to 468.01 kB with version 0.6.0 (including new features), which corresponds to a size reduction of 17.7%!
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
-
This release mainly improves the tree-shaking π, so the size of applications using
maxGraph
should therefore decrease significantly.npm package: 0.6.0
Issues: milestone 0.6.0
See also the Changelog file.
Breaking Changes
Codecs supplied by
maxGraph
are no longer registered by default. They MUST be registered before performing anencode
ordecode
.You can use one of the following functions to register codecs:
registerAllCodecs
registerCoreCodecs
registerEditorCodecs
To serialize the
maxGraph
model, you can use theModelXmlSerializer
class, which registers codecs under the hood.Highlights
Codecs are no longer registered by default, which reduces side effects and coupling.
It also greatly improves tree-shaking β¨.
For example, in the
ts-example
application included in this repository which doesn't use the "codec" feature, the size of the minifiedmaxGraph
chunk goes from568.58 kB
with version 0.5.0 to468.01 kB
with version 0.6.0 (including new features), which corresponds to a size reduction of17.7%
!For more details, see #289.
What's Changed
π New Features
ModelXmlSerializer
to import/export the model using XML by @tbouffard in feat: addModelXmlSerializer
to import/export the model using XMLΒ #290π Bug Fixes
π Documentation
βοΈ Refactor
π Chore
New Contributors
Full Changelog: v0.5.0...v0.6.0
This discussion was created from the release 0.6.0.
Beta Was this translation helpful? Give feedback.
All reactions