react-bus
react-bus copied to clipboard
Bump mitt from 2.1.0 to 3.0.1
Bumps mitt from 2.1.0 to 3.0.1.
Release notes
Sourced from mitt's releases.
3.0.1
What's Changed
- chore: fix typescript issue with
NodeNext
, fix #166 by@Mister-Hope
in developit/mitt#167New Contributors
@Mister-Hope
made their first contribution in developit/mitt#167Full Changelog: https://github.com/developit/mitt/compare/3.0.0...3.0.1
3.0.0
Mitt 3.0 adds a couple nice new features.
1. Remove all handlers of a type:
Calling
.off("type")
with no handler argument now removes all listeners of that type (#123, #124, #129 - thanks@sealice
!).2. New, stronger typing:
It's now possible to define explicit types for events and their arguments (#114, thanks
@iyegoroff
&@deskoh
):import mitt from 'mitt'; const events = mitt<{ foo: string }>(); events.on('foo', e => {}); // `e` is inferred to be of type string! events.emit('foo', 42); // TypeError: got a number, expected a string
3. Package Exports:
As of 3.0.0, the
mitt
package now uses Package Exports. This shouldn't change usage or anything, it just means you're more likely to end up using the ES Module version of Mitt when running in Node.
Commits
b240473
3.0.105f4ce6
apply prettier formatting to all files3f81679
fix TypeScript configbbba04a
move eslint config out of package.json and add prettier5a17bef
update deps1194efb
Update package.json (#167)f9a0b53
Clarify whatoff('*')
does13905bd
3.0.0f3990ec
Add Package Exports configuration (#139)ec0aab7
update actions for main branch- Additional commits viewable in compare view
You can trigger a rebase of this PR by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note Automatic rebases have been disabled on this pull request as it has been open for over 30 days.