Skip to content

H5Web 19

Latest

Choose a tag to compare

@axelboc axelboc released this 23 Nov 13:14
· 17 commits to main since this release
33bc104

Full Changelog: v18.0.0...v19.0.0

The long-awaited React 19 upgrade is here! 🥳 The dependencies we rely on, like React Three Fiber, took a long time to be fully compatible, and we had to make significant changes ourselves but we got there eventually. 😤

⚠️ {Breaking} React 18 is no longer supported so you will have to upgrade both H5Web and React at the same time. If you haven't done so already, make sure to upgrade to H5Web 18 first so you don't have to deal with breaking changes at the same time as you upgrade React. H5Web 18 is and will remain the last version compatible with React 18.

@h5web/app

  • ⚠️ {Breaking} Requires react@19.x (optionally @types/react@19.x), and react-dom@19.x (optionally @types/react-dom@19.x) #2092
  • ⚠️ {Breaking} React 19 shows suspense boundaries for a minimum of 300ms. This artificial delay degrades the H5Web viewer's user experience significantly. We strongly recommend patching your react installation to remove this delay. If you use Vite, just add vite-plugin-react-fallback-throttle to your Vite configuration — otherwise, you can try pnpm patch or another solution adapted to your project's stack. The constant to look for and set to 0 is named FALLBACK_THROTTLE_MS.
  • 🎉 [HsdsProvider] Support HSDS v1 #2061 #2075 #2105
    • ⚠️ {Breaking} Require HSDS v1.0.3 or greater
    • ⚠️ {Breaking} Rename prop filepath to domain
    • ⚡ Batch metadata and attributes requests to speed up browsing and inspecting
    • ✨ Resolve soft and external links when possible
    • ✨ Request data as binary when possible to avoid JSON serialization issues
    • Support reference and opaque dtypes
  • 🐛 Fix sidebar collapsing in some cases
  • Expose DataContext to support use(DataContext) as a more flexible alternative to useDataContext(). #2094

@h5web/lib

  • ⚠️ {Breaking} Requires react@19.x (optionally @types/react@19.x), react-dom@19.x (optionally @types/react-dom@19.x), and @react-three/fiber@>=9.8.2 #2092
  • 🐛 [HeatmapVis] Convert float16 to float32 instead of showing error in browsers that don't support Float16Array #2104
  • 🐛 [HeatmapVis] Don't convert uint16 to float32 unnecessarily #2104
  • 🐛 [Checkbox] Always respect inderterminate prop #2093
  • Expose VisCanvasContext and InteractionsContext to support, for instance, use(VisCanvasContext) as a more flexible alternative to useVisCanvasContext(). #2094
  • [HeatmapMaterial] Add side prop to control on which faces to render the heatmap — front, back, or both (defaults to FrontSide) #2095

@h5web/h5wasm

  • ⚠️ {Breaking} Requires react@19.x (optionally @types/react@19.x)
  • 🐛 [H5WasmBufferProvider, H5WasmLocalFileProvider] Fix memory leak when provider is unmounted #2090