Breaking
- Ships as a native ES module. A low-baseline ES5 UMD bundle is still available, but not a package entry point.
- Renamed
supportedtoisSupported(named ESM export). - Replaced the options object with a single boolean argument:
isSupported(failIfMajorPerformanceCaveat). webGLContextAttributesis 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.hasOwnruntime 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).