@tootallnate/once
3.0.1 · 9 Feb 2026MIT60.7M / weekRepositoryHomepagenpmAtom feed
8 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 3.x · latest line
3.0.1
9 Feb 2026Fix promise hang when
AbortSignalis aborted
- 2.x
2.0.1
3 May 2026Fix promise hang when AbortSignal is aborted
2.0.0
22 Sep 2021- Breaking
Big refactor for v2
Add
README.md: d00821fCreate LICENSE
Major Changes
- Breaking
Big refactor for v2
Returns a regular
Promiseinstead ofCancelablePromise.The Promise is strongly typed when posssible. This is the main new feature.
Always returns the full array of arguments passed to the event handler (i.e. what was previously
once.spread()is now the regularonce()).Compatible with
AbortControllerto remove event listeners before the Promise has been fulfilled.Requires TypeScript v4 or newer.
Jest tests running CI via GitHub Actions.
Minor Changes
Add
README.md: d00821fCreate LICENSE
Patches
Remove test script
- 1.x
1.1.2
21 Apr 20201.0.0
8 Feb 2020Initial release
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.