- extend the signature of
.onceAsync()
so that the type of the promise return value can be specified optionally - upgrade build package dependencies
- upgrade the javascript target version to ES2022 (was ES2021)
- retained events always maintain their original order in which they were published!
- the methods
.retain()
and.retainClear()
now also optionally allow the specification of multiple events
- fix
.once()
behavior with multiple event names - fix
.onceAsync()
- with
.onceAsync()
only the event names are accepted as parameters, no callback functions anymore (this makes no sense) - introduce the
.retainClear()
method: clear a saved event
- introduce
.onceAsync()
- The
src/
folder no longer ends up in the npm package by mistake!
eventize()
can now create a{}
by itself if no custom object is given
- introduce
.emitAsync()
- Fix exported type definitions
- Clean up the build system internally (using
tsup
)
- Mark npm package as side effects free
- Under the hood, the build pipeline has been modernised and now uses Typescript v5.2 internally.
- The javascript fragment output of the npm package
@spearwolf/eventize
has been fixed:- there is no default export anymore. instead of the default export, the named export
eventize
should now be used.
- there is no default export anymore. instead of the default export, the named export
- a CHANGELOG was finally introduced 😉
- Change all default imports to the explicit named import:
import {eventize} from '@spearwolf/eventize'