Becklyn / mojave

A library of commonly used JavaScript tools and helpers by Becklyn
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

Update dependency mitt to v3 #290

Open renovate[bot] opened 3 years ago

renovate[bot] commented 3 years ago

Mend 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`](https://togithub.com/developit/mitt/releases/tag/3.0.0) [Compare Source](https://togithub.com/developit/mitt/compare/2.1.0...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](https://togithub.com/developit/mitt/issues/123), [#​124](https://togithub.com/developit/mitt/issues/124), [#​129](https://togithub.com/developit/mitt/issues/129) - thanks [@​sealice](https://togithub.com/sealice)!). ##### 2. New, stronger typing: It's now possible to define explicit types for events and their arguments ([#​114](https://togithub.com/developit/mitt/issues/114), thanks [@​iyegoroff](https://togithub.com/iyegoroff) & [@​deskoh](https://togithub.com/deskoh)): ```ts 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](https://nodejs.org/api/packages.html#packages_package_entry_points). 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: Branch creation - At any time (no schedule defined), Automerge - 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.



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

renovate[bot] commented 1 year ago

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.