Skip to content

Releases: mdaines/viz-js

v3.1.0

16 Jul 22:13
Compare
Choose a tag to compare
  • 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

15 Jun 18:43
Compare
Choose a tag to compare
  • 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

14 Jun 17:55
Compare
Choose a tag to compare
  • 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 the instance() method exported by the main source file, lib/viz-standalone.js, which returns a promise that resolves to an instance of the Viz class.

  • The default value of the format option is now "dot", rather than "svg", as with the Graphviz dot program. This change only affects the render() and renderString() methods, since the format for, eg, renderSVGElement() is always "svg".

  • The renderJSONObject() method is now called renderJSON().

  • The built-in Worker support has been removed.

  • The files and images 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 the engine option to one of nop, nop1, nop2.

v2.1.2

08 Dec 16:13
Compare
Choose a tag to compare
  • Fix redeclared variable (#160)

v2.1.2-pre.1

05 Dec 02:50
Compare
Choose a tag to compare
v2.1.2-pre.1 Pre-release
Pre-release
  • Fix redeclared variable (#160)

v2.1.1

16 Nov 03:00
Compare
Choose a tag to compare
  • Add support for -n (Nop) option (#151)
  • Specify --libdir option (#153)
  • Correctly forward errors not derived from Error (#145)

v2.0.0

14 May 15:21
Compare
Choose a tag to compare
  • 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

07 May 13:41
Compare
Choose a tag to compare
v2.0.0-pre.8 Pre-release
Pre-release
  • 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

04 May 20:01
Compare
Choose a tag to compare
  • Make sure the Emscripten module isn't exported when Viz.js is loaded in an AMD environment. (#130)

v2.0.0-pre.7

03 May 16:48
Compare
Choose a tag to compare
v2.0.0-pre.7 Pre-release
Pre-release
  • Remove TypeScript declarations.
  • Build with Rollup.
  • Include ES6 module in npm release.