New
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.elementis nowundefinedinstead ofnullwhen there's no fullscreen element.- The
documentglobal is no longer polyfilled. If you run this package in a non-browser environment, it's up to you to polyfill required browser globals.
https://github.com/sindresorhus/screenfull.js/compare/v5.2.0...v6.0.0