Skip to content

Commit

Permalink
2.0.0-2
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypercubed committed Mar 30, 2023
1 parent be0bbbd commit 38b4bfd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# CHANGELOG

## HEAD (Unreleased)
_(none)_

---

## 2.0.0-2 (2023-03-29)

- `.add` is now type safe. The type of the listener is checked against the type variable in the constructor as well as an optional "flavor".
- `.add` now returns a node reference instead of a object. The returned node cannot be removed directly; it must be from the signal using `MiniSignal#detach`.
Expand All @@ -9,8 +14,6 @@
- `.dispatch` now throws an error if the signal is already dispatching.
- `.detach` now throws an error if node reference was not generated from the signal.

---

## 1.2.0 (2017-09-11)

- Added TS typings
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mini-signals",
"version": "2.0.0-1",
"version": "2.0.0-2",
"description": "signals, in TypeScript, fast",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 38b4bfd

Please sign in to comment.