Skip to content

v2.0.0

Choose a tag to compare

@rtorcato rtorcato released this 02 Oct 21:21
· 35 commits to main since this release
11161fd

2.0.0 (2026-10-02)

  • feat!: drop screen fullscreen duplicates and return null/false when unsupported (#218) (15f132c), closes #200

BREAKING CHANGES

  • @rtorcato/browser-common/screen no longer exports
    enterFullscreen, exitFullscreen or isFullscreen; import them from
    @rtorcato/browser-common/fullscreen. Functions that returned undefined
    on unsupported environments now return null (screen, location, common,
    orientation, geolocation.watchPosition, permissions, mediadevices,
    battery, notifications, serviceworkers, backgroundtasks.registerBackgroundFetch,
    fullscreen.enterFullscreen/exitFullscreen), and isLandscape, isPortrait and
    isFullscreen return false instead of undefined. Replace
    === undefined checks with === null; ?. and ?? are unaffected.