Skip to content

v2.0.0

Choose a tag to compare

@jourdain jourdain released this 17 Jun 01:29
· 107 commits to main since this release

2.0.0 (2026-06-17)

  • refactor(js)!: consolidate auto-load onto single vtkwasm global (2eaeb04)
  • refactor(js)!: redesign loader and session API (881c360)
  • refactor(js)!: suffix promise-returning methods with Async (ca8b13f)

Features

  • js: guard create/destroy on unsupported sessions (8daf357)
  • js: register canvas elements directly via specialHTMLTargets (059d050)

BREAKING CHANGES

  • the vtkWASM UMD global is now vtkwasm; window.vtk,
    window.vtkReady, and window.vtkSession are removed. Await vtkwasm.ready
    for the auto-loaded namespace instead.
  • the following promise-returning APIs were renamed:
  • loadVtkWasm -> loadVtkWasmAsync
  • createViewer -> createViewerAsync
  • RemoteSession.update/setSize/fetchState/fetchHash/pushHash gain the
    Async suffix (updateAsync, setSizeAsync, fetchStateAsync, fetchHashAsync,
    pushHashAsync)
  • ExportViewer.load -> loadAsync

Callers must update to the new names.

  • VtkWASMLoader, createNamespace, and the standalone/remote
    entry modules are removed in favor of loadVtkWasm() and runtime.create*Session().