- Add
"types"field topackage.json
okTurtles.events/onceused to return a function that would call the listener that was registered and then unregister the listener. Now it returns a function that simply unregisters the listener.
All Changes
emitwill now catch exceptions thrown by synchronous listeners. This means an exception in one listener won't prevent other listeners from being called. (PR #6)onandoncewill return a function to clear the event listener (PR #6)- New selector
'okTurtles.events/setErrorHandler'to set the error handler for errors caught byemit(PR #6) - Misc changes: rewritten in TypeScript, use
node:testinstead ofmocha, enable Github Actions to run tests
okTurtles.events/oncenow returns the callback it actually registers so that you can use it withokTurtles.events/off
- SBP 2.2.0 package listed as peerDep
- SBP package dependency as '^' version to reduce upgrade / publishing frequency
- reduced size of
dist/main.cjsby updating"browserslist"
- bump sbp to 2.0.0, okturtles.data to 0.1.1
- bump sbp to 2.0.0
- bump sbp to 1.1.0
- initial release