Releases: sindresorhus/screenfull
Releases · sindresorhus/screenfull
v6.0.2
v6.0.1
- Fix
.isEnabled
TypeScript type e530b94
v6.0.0
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 nowundefined
instead ofnull
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
- Make TS types looser but more practical
v5.1.0
v5.0.2
- Return the native promise when it exists 536595d
v5.0.1
- Fix type definition f0a14a3
v5.0.0
Breaking
- Rename
screenfull.enabled
toscreenfull.isEnabled
9b98fcc - Drop Safari 5.1 (it's ancient) workaround 927e361
- Unify checking for fullscreen availability (#154) 633ea78
Previously, you had to checkif (screenfull && screenfull.enabled) {}
before using it. Now you just useif (screenfull.isEnabled) {}
.
Breaking for TypeScript users
- Require Screenfull to be imported using
require
when using TypeScript 2664e56
You need to changeimport screenfull from 'screenfull';
toimport screenfull = require('screenfull');
v4.2.1
- Properly forward promise rejections 9e4293b