8000 Releases · TooTallNate/once · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Releases: TooTallNate/once

3.0.0

27 Sep 09:14
Compare
Choose a tag to compare

Major Changes

  • Output as ESM: #6

Patches

2.0.0

22 Sep 23:50
Compare
Choose a tag to compare

Major Changes

  • Big refactor for v2: #5
    • Returns a regular Promise instead of CancelablePromise.
    • 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 regular once()).
    • 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.

Minor Changes

Patches

Credits

Huge thanks to @lewish and @vivekkj123 for helping!

1.1.1

20 Apr 23:59
Compare
Choose a tag to compare

Patches

  • Make cancel() be a no-op after executed: 952e450
  • Assign p.cancel in the Promise constructor: aa710f3

1.1.0

20 Apr 23:17
Compare
Choose a tag to compare

Minor Changes

  • Add once.spread() function: 07c9601

1.0.0

08 Feb 23:45
Compare
Choose a tag to compare

Initial release

0