Skip to content

v4.0.0

Latest

Choose a tag to compare

@mourner mourner released this 29 May 08:57
· 3 commits to gh-pages since this release

Breaking

  • Ships as a native ES module. A low-baseline ES5 UMD bundle is still available, but not a package entry point.
  • Renamed supported to isSupported (named ESM export).
  • Replaced the options object with a single boolean argument: isSupported(failIfMajorPerformanceCaveat).
  • webGLContextAttributes is now a top-level named export instead of a property on the function.

Fixed

  • No longer falsely reports unsupported under strict Content Security Policy (#42).

Improved

  • Added an Object.hasOwn runtime check, matching the current Mapbox GL JS support matrix.
  • 33% smaller min+gzip bundle (1001 B → 674 B).
  • First-class TypeScript types (generated from JSDoc).