Repository navigation
v2.0.0 — Release Notes
2.0 is a major, production-focused release with a rewritten WebGL engine, updated configuration model, and aligned framework integrations.
Highlights
- Improved rendering and performance: correct HiDPI behavior, new resize pipeline (
ResizeObserver+ debounced resize), mesh density controls, and target FPS pacing. - Better accessibility and UX:
reducedMotionsupport (auto/ignore/force-static) with properprefers-reduced-motionhandling. - Stronger WebGL resilience: context loss/restore handling, configurable
webglContextAttributes, and capability checks viaMeshGradient.isSupported(). - Expanded public API in
MeshGradientOptions:pixelRatio,frequency.delta,targetFps, lifecycle callbacks (onReady,onError,onResize), transitions, and more. - New hot-path runtime helpers:
setColors,setActiveColors,setFrequency,setSeed,setAnimationSpeed,toggleAutoPause. - Internal quality upgrades: more modular MiniGl/gradient architecture and cleaner type exports for ESM/CJS consumers.
- New documentation website! Visit
Framework Integrations (Vue / React)
@mesh-gradient/vueand@mesh-gradient/reactare aligned with@mesh-gradient/core@2.0.0.- Vue keeps the same
MeshGradientcomponent contract (options/isPaused) and lifecycle ownership inuseMeshGradient.
Breaking Changes (Migration from 1.x)
- Upgrade all packages to
2.xtogether:@mesh-gradient/core,@mesh-gradient/react,@mesh-gradient/vue. - Revisit canvas sizing assumptions: sizing now follows your CSS/layout contract.
- Verify defaults and safety knobs (
pauseOnOutsideViewport,reducedMotion, transitions,allowDocumentCanvasFallback). - Prefer explicit callbacks (
onReady,onError,onResize) over legacy implicit behavior.