Download Latest Version 3.0.1.tar.gz (7.8 kB)
Email in envelope

Get an email when there's a new version of Mitt

Home / 1.2.0
Name Modified Size InfoDownloads / Week
Parent folder
1.2.0.tar.gz 2019-10-21 6.1 kB
1.2.0.zip 2019-10-21 8.9 kB
README.md 2019-10-21 624 Bytes
Totals: 3 Items   15.6 kB 0

It's Mitt's first release since 2017! That's the thing about a 200 byte library - there's not a lot of code here to necessitate constant updates. Take it as a sign of stability.

This release is primarily an improvement to the TypeScript definition we ship with Mitt:

  • You can now invoke mitt() with or without new in TypeScript (#60/#67 - thanks @davidkpiano)
  • .on('*', handler) now has types that pass the correct (event, data) arguments (#76, thanks @zbuttram)
  • The optional all parameter, which lets you pass your own mapping of handler Arrays to Mitt, now has correct types (#73, thanks @jesperzach)
Source: README.md, updated 2019-10-21