---
title: "screenfull 6.0.0 Breaking Changes on npm | Since.dev"
description: "What each screenfull release removed, renamed or changed: 16 breaking changes in 3 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/screenfull
last_updated: 2026-12-04
---

# screenfull breaking changes

screenfull 6.0.0 (November 3, 2021) is its newest release with breaking changes, 7 of them. The first: Minified build is no longer shipped in the package in screenfull 6.0.0. Every breaking API change we have recorded in screenfull on npm: 16 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `6.0.2`, released June 19, 2022. 

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [5.0.0](#v-5-0-0) to [6.0.0](#v-6-0-0): 7 breaking changes in 1 version.
- From [4.0.0](#v-4-0-0) to [6.0.0](#v-6-0-0): 12 breaking changes in 2 versions.

## screenfull 6.0.0 breaking changes

screenfull 6.0.0, released November 3, 2021: 7 breaking changes.

- **Removed**  

The package no longer includes a minified file. Users should minify their whole project in their own build step. [github.com](https://github.com/sindresorhus/screenfull/releases/tag/v6.0.0)
- **Removed** `Screenfull`  

Screenfull was removed in screenfull 6.0.0 [npmjs.com](https://www.npmjs.com/package/screenfull/v/6.0.0)
- **Behavior changed**  

In non-browser environments the package no longer supplies the document global. Users must polyfill the required browser globals themselves. [github.com](https://github.com/sindresorhus/screenfull/releases/tag/v6.0.0)
- **Behavior changed**  

The package now ships only as ES modules. Code that loads it with require() or CommonJS must move to ESM, or stay on version 5.2.0. [github.com](https://github.com/sindresorhus/screenfull/releases/tag/v6.0.0)
- **Behavior changed**  

The code now uses modern JavaScript syntax. Projects that need older browsers must transpile the package with Babel. [github.com](https://github.com/sindresorhus/screenfull/releases/tag/v6.0.0)
- **Behavior changed** `screenfull.element`  

When there is no fullscreen element, screenfull.element now returns undefined rather than null. Code that checks for null must be updated. [github.com](https://github.com/sindresorhus/screenfull/releases/tag/v6.0.0)
- **Signature changed** `default`  

Was const screenfull: screenfull.Screenfull namespace screenfull; now const screenfull: {readonly isFullscreen: boolean; readonly element: Element | undefined; readonly isEnabled: true; raw: RawEventNames; request(element?: Element... [npmjs.com](https://www.npmjs.com/package/screenfull/v/6.0.0)

## screenfull 5.0.0 breaking changes

screenfull 5.0.0, released September 9, 2019: 5 breaking changes.

- **Removed**  

The workaround for Safari 5.1 is removed, so that browser is no longer specially supported. [github.com](https://github.com/sindresorhus/screenfull/releases/tag/v5.0.0)
- **Removed** `Screenfull.enabled`  

The screenfull.enabled property is renamed to screenfull.isEnabled. Update code that reads the old name. [npmjs.com](https://www.npmjs.com/package/screenfull/v/5.0.0)
- **Behavior changed** `screenfull.enabled`  

Code that checked the screenfull object before use, such as screenfull && screenfull.enabled, should now check screenfull.isEnabled directly. [github.com](https://github.com/sindresorhus/screenfull/releases/tag/v5.0.0)
- **Configuration changed**  

With TypeScript, screenfull must be imported using import screenfull = require('screenfull') instead of a default import. [github.com](https://github.com/sindresorhus/screenfull/releases/tag/v5.0.0)
- **Signature changed** `default`  

Was const screenfull: | (screenfull.Screenfull & {default: typeof screenfull;}) | false; now const screenfull: screenfull.Screenfull | {isEnabled: false}. [npmjs.com](https://www.npmjs.com/package/screenfull/v/5.0.0)

## screenfull 4.0.0 breaking changes

screenfull 4.0.0, released December 15, 2018: 4 breaking changes.

- **Behavior changed** `screenfull.exit`  

Calling exit() now returns a promise instead of its previous return value, and the package now requires Promise or a promise polyfill. Code that relies on the old return value must be updated to handle the promise. [github.com](https://github.com/sindresorhus/screenfull/releases/tag/v4.0.0)
- **Behavior changed** `screenfull.request`  

Calling request() now returns a promise instead of its previous return value, and the package now requires Promise or a promise polyfill. Code that relies on the old return value must be updated to handle the promise. [github.com](https://github.com/sindresorhus/screenfull/releases/tag/v4.0.0)
- **Behavior changed** `screenfull.toggle`  

Calling toggle() now returns a promise instead of its previous return value, and the package now requires Promise or a promise polyfill. Code that relies on the old return value must be updated to handle the promise. [github.com](https://github.com/sindresorhus/screenfull/releases/tag/v4.0.0)
- **Signature changed** `default`  

Was var screenfull: IScreenfull | false; now const screenfull: screenfull.Screenfull | false namespace screenfull. [npmjs.com](https://www.npmjs.com/package/screenfull/v/4.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
