Repository navigation
Releases: omtanke/react-use-event-outside
Releases · omtanke/react-use-event-outside
Release list
Version 1.2.0
Fixes
- Server-side rendering no longer crashes (
windowis 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_TOKENsecret is set.
Version 1.1.0
Migrated to TypeScript. Types are now included, and the package ships a dual ESM/CJS build in dist/.
Version 1.0.1
v1.0.1 codesandbox example added