Skip to content

Commit

Permalink
v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
taoeffect committed Dec 6, 2024
1 parent b67f2d8 commit 6f1b954
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# History

#### 1.0.0

⚠️ **Breaking Changes!** ⚠️

- `okTurtles.events/once` used 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**

- `emit` will now catch exceptions thrown by synchronous listeners. This means an exception in one listener won't prevent other listeners from being called. ([PR #6](https://github.com/okTurtles/okTurtles.events/pull/6))
- `on` and `once` will return a function to clear the event listener ([PR #6](https://github.com/okTurtles/okTurtles.events/pull/6))
- New selector `'okTurtles.events/setErrorHandler'` to set the error handler for errors caught by `emit` ([PR #6](https://github.com/okTurtles/okTurtles.events/pull/6))
- Misc changes: rewritten in TypeScript, use `node:test` instead of `mocha`, enable Github Actions to run tests

#### 0.1.6

- `okTurtles.events/once` now returns the callback it actually registers so that you can use it with `okTurtles.events/off`
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sbp/okturtles.events",
"version": "0.2.0",
"description": "Event handling for SBP",
"version": "1.0.0",
"description": "SBP-friendly event handling.",
"main": "./dist/umd/index.cjs",
"type": "module",
"exports": {
Expand Down

0 comments on commit 6f1b954

Please sign in to comment.