Releases: TooTallNate/once
Releases · TooTallNate/once
3.0.0
2.0.0
Major Changes
- Big refactor for v2: #5
- Returns a regular
Promise
instead 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
AbortController
to remove event listeners before the Promise has been fulfilled. - Requires TypeScript v4 or newer.
- Jest tests running CI via GitHub Actions.
- Returns a regular
Minor Changes
Patches
Credits
Huge thanks to @lewish and @vivekkj123 for helping!
1.1.1
1.1.0
1.0.0
Initial release