Skip to content

v5.0.0

Compare
Choose a tag to compare
@sindresorhus sindresorhus released this 09 Sep 13:01

Breaking

  • Rename screenfull.enabled to screenfull.isEnabled 9b98fcc
  • Drop Safari 5.1 (it's ancient) workaround 927e361
  • Unify checking for fullscreen availability (#154) 633ea78
    Previously, you had to check if (screenfull && screenfull.enabled) {} before using it. Now you just use if (screenfull.isEnabled) {}.

Breaking for TypeScript users

  • Require Screenfull to be imported using require when using TypeScript 2664e56
    You need to change import screenfull from 'screenfull'; to import screenfull = require('screenfull');

v4.2.1...v5.0.0