From 6f1b95428ab8535f582e8b64336003fd8848c775 Mon Sep 17 00:00:00 2001 From: Greg Slepak Date: Fri, 6 Dec 2024 10:29:40 -0800 Subject: [PATCH] v1.0.0 --- HISTORY.md | 13 +++++++++++++ package.json | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 96847da..1bbf4f5 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -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` diff --git a/package.json b/package.json index dcfc02e..be07aef 100644 --- a/package.json +++ b/package.json @@ -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": {