Releases: mdaines/viz-js
v3.1.0
-
Update Graphviz to 8.1.0.
-
Export the Graphviz version, supported formats, and supported engines as constants generated at build time.
-
Include an ES module build as well as UMD.
-
Add Typescript declarations.
v3.0.1
-
Catch the error Emscripten throws when exit() is called.
-
Don't add an error message about no valid graphs in input.
-
Improve error message handling when an error reported from agerr has multiple lines.
v3.0.0
-
Viz.js now uses WebAssembly.
-
Adds a new
render()
method that returns the result of rendering, including Graphviz error and warning messages, in a structured format. -
Adds getters for the Graphviz version string, and lists of supported layout engines and output formats.
-
Memory leaks that could be identified by calling rendering methods many times have been fixed.
-
Can be used as a single JavaScript source file (in UMD format).
-
Rendering methods are now synchronous. But constructing an instance of the
Viz
class is now asynchronous, because it depends on compiling and instantiating the WebAssembly code. Use theinstance()
method exported by the main source file,lib/viz-standalone.js
, which returns a promise that resolves to an instance of theViz
class. -
The default value of the
format
option is now"dot"
, rather than"svg"
, as with the Graphvizdot
program. This change only affects therender()
andrenderString()
methods, since the format for, eg,renderSVGElement()
is always"svg"
. -
The
renderJSONObject()
method is now calledrenderJSON()
. -
The built-in
Worker
support has been removed. -
The
files
andimages
options have been removed. This allows the Emscripten module to be smaller. -
The
renderImageElement
method has been removed in favor of SVG. -
The
nop
option has been removed. Instead, set theengine
option to one ofnop
,nop1
,nop2
.
v2.1.2
v2.1.2-pre.1
- Fix redeclared variable (#160)
v2.1.1
v2.0.0
- Viz.js now has first-class support for Web Workers, and returns Promises for all rendering functions, rather than accepting callbacks for some of its utility functions. However, you don't have to use Web Workers: Viz.js still works with just script tags.
- API and rendering code have been split into separate files to make it easier to work with Viz.js in bundlers.
- New output types: JSON objects and SVG elements. For example, the renderSVGElement function returns the promise of an SVGSVGElement object, ready to insert into the document.
- The single Viz() function is now a class and reuses its Emscripten module instance, improving performance across multiple calls.
- The API code is now built with Rollup, and the release includes an ES6 module.
- Added yInvert option. (Equivalent to the -y command-line option.)
- TypeScript declarations have been removed in this release.
v2.0.0-pre.8
- Use ".render.js" suffix instead of ".js.opaque".
- Accept a Worker instance for the worker option instead of a string. Add workerURL option for passing the URL of a worker as a string. Less specific detection of worker scope.
v1.8.2
v2.0.0-pre.7
- Remove TypeScript declarations.
- Build with Rollup.
- Include ES6 module in npm release.