Skip to content

Releases: omtanke/react-use-event-outside

Version 1.2.0

Choose a tag to compare

@semihraifgurel semihraifgurel released this 20 Sep 14:20
2898a67

Fixes

  • Server-side rendering no longer crashes (window is not accessed on the server).
  • Events inside a shadow root are now correctly treated as inside the element.

Improvements

  • The handler now receives the DOM event. Existing zero-argument handlers keep working.
  • Known event names ('mousedown', 'keydown', ...) give a typed event in TypeScript.

Tooling

  • Test suite (Vitest + Testing Library) and CI on push/PR for Node 22 and 24.
  • Release workflow can also publish to npmjs.org when the NPM_TOKEN secret is set.

Version 1.1.0

Choose a tag to compare

@semihraifgurel semihraifgurel released this 20 Sep 14:04
e8cc0b0

Migrated to TypeScript. Types are now included, and the package ships a dual ESM/CJS build in dist/.

Version 1.0.1

Choose a tag to compare

@semihraifgurel semihraifgurel released this 20 May 15:36
v1.0.1

codesandbox example added

v1.0.0

Choose a tag to compare

@semihraifgurel semihraifgurel released this 15 May 10:25
organization added