Skip to content

v2.0.0

Choose a tag to compare

@mourner mourner released this 22 Dec 17:04
· 16 commits to gh-pages since this release
  • ⚠️ Breaking: changed the API to named exports instead of a single default export (#38):
const {supported} = require('@mapbox/mapbox-gl-supported');
if (supported()) { ... }
  • ⚠️ Updated to match requirements of GL JS v2, specifically returning false on IE11 (#38).
  • Added notSupportedReason function to the API that returns a specific reason for GL JS not being supported as a string, or undefined if supported. (#38)
  • Fixed an issue in certain environments where createShader doesn't work but the module produced an error instead of returning false. (#33)
  • Fixed compatibility of the bundle with ES5 environments. (#34, h/t @alexceder)
  • Fixed the mapbox-gl-supported.js browser bundle not to leak non-exported global variables.