Skip to content

Releases: sindresorhus/screenfull

v6.0.2

19 Jun 14:31
Compare
Choose a tag to compare
  • Support running in server environments (#208) 2907f62

v6.0.1...v6.0.2

v6.0.1

16 Jan 16:08
Compare
Choose a tag to compare
  • Fix .isEnabled TypeScript type e530b94

v6.0.0...v6.0.1

v6.0.0

03 Nov 07:12
Compare
Choose a tag to compare

Breaking

  • This package is now pure ESM. Please read this.
    • If you cannot easily move to ESM. Just stay on version 5.2.0. It's stable and fine.
  • This package now uses modern JavaScript syntax. If you need support for older browsers, you need to transpile the code with Babel.
  • A minified version is no longer provided in the package. It's better to minify your project as a whole in your own build step.
  • screenfull.element is now undefined instead of null when there's no fullscreen element.
  • The document global is no longer polyfilled. If you run this package in a non-browser environment, it's up to you to polyfill required browser globals.

v5.2.0...v6.0.0

v5.2.0

03 Nov 06:17
Compare
Choose a tag to compare
  • Make TS types looser but more practical

v5.1.0...v5.2.0

v5.1.0

24 Dec 08:24
Compare
Choose a tag to compare

v5.0.2

13 Feb 10:17
Compare
Choose a tag to compare
  • Return the native promise when it exists 536595d

v5.0.1...v5.0.2

v5.0.1

19 Jan 07:35
Compare
Choose a tag to compare

v5.0.0...v5.0.1

v5.0.0

09 Sep 13:01
Compare
Choose a tag to compare

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

v4.2.1

27 Jul 10:02
Compare
Choose a tag to compare
  • Properly forward promise rejections 9e4293b

v4.2.0...v4.2.1

v4.2.0

31 Mar 20:15
Compare
Choose a tag to compare
  • Refactor TypeScript definition to CommonJS compatible export (#131) 682314d