v0.5.0
💥 BREAKING CHANGES
Event types do not allow a promise anymore, as the execution of these events were not being caught and handled. Instead, you should use an async IFFE and manage any thrown exceptions to avoid an unhandled exception error in your code.
// @file old.ts
Queue.on("eventName", async () => {
//
});
// @file new.ts
Queue.on("eventName", () => {
// note: by declaring void, we are also claiming we've handled any thrown exceptions
void (async () => {
//
})();
});
Changes
- fix: Updates ESM-only module resolution and types for node16 - uses a custom loader pattern for ESM-only functions based on best known TS information at this time
Full Changelog: 0.4.6...0.5.0