v2.0.0
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
vtkWASMUMD global is nowvtkwasm;window.vtk,
window.vtkReady, andwindow.vtkSessionare removed. Awaitvtkwasm.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
Asyncsuffix (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().