Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update dependency mitt to v3 #6473

Merged
merged 1 commit into from Jun 24, 2021
Merged

update dependency mitt to v3 #6473

merged 1 commit into from Jun 24, 2021

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 23, 2021

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
mitt 2.1.0 -> 3.0.0 age adoption passing confidence

Release Notes

developit/mitt

v3.0.0

Compare Source

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.


Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box.

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate renovate bot requested a review from rijkvanzanten as a code owner June 23, 2021 21:58
@rijkvanzanten rijkvanzanten added this to the v9.0.0-rc.81 milestone Jun 24, 2021
@rijkvanzanten rijkvanzanten merged commit 06925af into main Jun 24, 2021
@rijkvanzanten rijkvanzanten deleted the renovate/mitt-3.x branch June 24, 2021 17:10
AustinPhillipTaylor pushed a commit to AustinPhillipTaylor/directus that referenced this pull request May 11, 2022
Co-authored-by: Renovate Bot <bot@renovateapp.com>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants