Skip to main content

3.0.0 (2026-10-12)

  • feat(iframe)!: default postMessageToIframe targetOrigin to the iframe's origin (#262) (859e907), closes #253

Bug Fixes​

  • common: guard getUserAgent/getBrowserLanguage on isBrowser for SSR (#245) (50b6259), closes #237
  • draganddrop: return cleanup functions instead of cloning the node (#249) (ec71ff2), closes #233
  • intersection: observeOnce fires only when intersecting (#248) (889ea85), closes #232
  • keyboard: onShortcut clears pressed keys on window blur (#251) (f4028e1), closes #238
  • screencapture,webauthn,urlpattern: reject instead of throwing synchronously (#244) (525db52), closes #235
  • ssr: guard DOM access so calls no-op in Node (#246) (c667668), closes #234 #234

Features​

  • mediaquery: add a matchMedia wrapper (#250) (4351fde), closes #241 #241
  • visibility: add Page Visibility wrapper (#247) (4e59fc0), closes #242
  • window,iframe: opt-in noopener for openWindow, warn on '*' targetOrigin (#254) (73221e4), closes #236

BREAKING CHANGES​

  • postMessageToIframe no longer defaults targetOrigin to ''. Callers that relied on the default and post to a cross-origin frame whose src origin differs from the current one, or to an opaque-origin src, must now pass targetOrigin explicitly ('' to keep the old behaviour).

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.

1.3.1 (2026-10-01)​

Bug Fixes​

  • types: use local types for orientation lock and URLPattern input (#187) (fd39f75), closes #170

1.3.0 (2026-09-30)

Features​

  • common: add getPlatform, isIOS and isAndroid (#165) (0953326), closes #163

1.2.7 (2026-08-18)​

Bug Fixes​

  • docs: use a light Prism theme and light code surface in light mode (#137) (462a9a1), closes #104

1.2.6 (2026-08-18)​

Bug Fixes​

  • stop publishing the frozen CHANGELOG.md in the npm tarball (#134) (381057c), closes #119

1.2.5 (2026-08-18)​

Bug Fixes​

  • ci: stop cancelling release runs on main (#128) (48cfd75)

1.2.4 (2026-08-17)​

Bug Fixes​

  • release: upgrade npm for OIDC trusted publishing (#100) (43bbeb2), closes #99

1.2.3 (2026-08-17)​

Bug Fixes​

1.2.2 (2026-07-23)​

Bug Fixes​

  • weblocks: pin absent-locks state for Node 24 (#101) (6fdceb9)

1.2.1 (2026-07-09)​

Bug Fixes​

  • docs: silence TS6 baseUrl deprecation in docs tsconfig (596d1ce)

1.2.0 (2026-07-05)

Features​

1.1.4 (2026-07-05)​

Bug Fixes​

  • alert: guard dialogs against non-browser env (892afb2), closes #36

1.1.3 (2026-06-11)​

Bug Fixes​

  • docs: label API Reference sidebar by module name (684478c)

1.1.2 (2026-06-11)​

Bug Fixes​

  • build: ship .d.ts declarations by disabling incremental in build (1e1ef6b), closes package.json#exports #24
  • deps: remove duplicate picomatch key from broken lockfile (eecafda)
  • deps: remove second duplicate picomatch key in snapshots (a5c101f)

1.1.1 (2026-06-06)​

Bug Fixes​

  • touchevents: document TouchList source in get* helpers (cad22ab)

1.1.0 (2026-06-06)

Features​

  • add pointerevents and touchevents modules (3d93351)

1.0.1 (2026-06-06)​

Bug Fixes​

  • print: remove dead commented code referencing missing module (39ae5ea)

1.0.0 (2026-06-06)

  • feat!: graduate to v1.0.0 by removing deprecated is*Supported aliases (bb7f29e)

BREAKING CHANGES​

  • isFileShareSupported, isNotificationSupported, isPrintSupported, isServiceWorkerSupported, isTextDecoderSupported, isTextEncoderSupported, isVisualViewportSupported, isWebLocksSupported, isWebShareSupported, and isWebSocketSupported have been removed. Use the is*Available counterparts (already exported since v0.3.0).

0.3.0 (2026-06-05)

Features​

  • rename isSupported guards to isAvailable for consistency (e21c24a)

0.2.0 (2026-06-04)

Features​

  • docs: add Astro Starlight site at apps/docs (a453a4a)

Initial pre-stable release of @rtorcato/browser-common.

Install: pnpm add @rtorcato/browser-common

Features​

  • 42 subpath-exported modules wrapping browser Web APIs (clipboard, geolocation, observers, storage, etc.)
  • is<Name>Available() guard per module — operations no-op on unsupported environments
  • ESM-only, sideEffects: false, fully tree-shakeable
  • Bundle-size budgets enforced in CI via size-limit
  • Type-safe with declaration files for every subpath

Notes​

This is a v0.x release — API is subject to change. Behavior tests cover encodingapis and webshare; other modules have smoke tests only. Graduate to v1.0.0 once behavior tests cover the full surface.

See the README for the module index and browser support matrix.


Every entry above is generated by semantic-release and published to GitHub Releases. Anything older than the first GitHub Release is recorded in CHANGELOG.md.