aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-02-21Add TypeScript warning when attempting to fire "*" handlers. Fixes #93.Jason Miller
2020-02-21[ts] Make `type` optional in WildcardHandler. Fixes #96.Jason Miller
2019-10-21Update sizesJason Miller
2019-10-21Update to latest node.Jason Miller
2019-10-21update depsJason Miller
2019-10-211.2.0Jason Miller
2019-10-21chore(release): 1.2.1Jason Miller
2019-05-29fix test runnerJason Miller
2019-04-27Fix TypeScript warning and add caveats to ToCMarin Ivanov
2019-04-27Add keywords to package.jsonMarin Ivanov
2019-04-27Version 1.0.2Marin Ivanov
Add a repository link to the package.json file. Improve the usage documentation and add ceveats section about once/when. Add a test to ensure the current behaviour of once() and off().
2019-04-26Bump verstion to 1.0.1Marin Ivanov
Add acknowledgments to the readme
2019-04-26Rename {mitt => nitt}Marin Ivanov
2018-09-19Change type of the all property in the constructor (#73)Jesper Dalgas Zachariassen
This commit corrects the type of the `all` property in the `mitt` constructor function, such that it properly reflects a list of `Handler` functions rather than a single `Handler` function. This makes it possible to provide an argument to the `all` property in TypeScript projects without casting the argument to the `any` type and with proper error feedback.
2018-09-19Fix Typescript wildcard handler (#76)Zach Buttram
* attempt to fix handler typedef for wildcard events * also fix wildcard handler typedef for .off
2018-09-19Fixing TypeScript usage. Fixes #60 (#67)David Khourshid
* Fixing TypeScript usage * Removing extraneous formatting
2018-05-16Add badges for gzip size and install size (#75)Steven
2017-12-06Clean up repo rootJason Miller
2017-12-06chore(release): 1.1.3Jason Miller
2017-12-06Docs update.Jason Miller
2017-12-06Fixes #65 - handler removal during handler invocation (`.off()` during ↵Jason Miller
`.emit()`).
2017-12-06remove CodeSponsor (#68)Daniel Ruf
see https://codesponsor.io/shutdown-notice/
2017-10-14codesponsor.ioJason Miller
2017-08-14Fixing API documentation header (#62)Brian Wendt
* Fixing API documentation header * Updating documentjs comment
2017-07-05more precise type annotation for WildCardEventHandler (#58)Tung Vu
* more precise type annotation for WildCardEventHandler * fix: remove duplicated @flow * fix: make * optional
2017-06-07Fix `emit` and `EventHandler` type annotations (#47)Rūdolfs Vikmanis
2017-04-30use reify to run test (#52)Thiago Santos
2017-04-17fix failing test from before removal of case normalizationJason Miller
2017-04-17chore(release): 1.1.2Jason Miller
2017-04-17fix(builds): point `jsnext:main` to the ESM build instead of src, which ↵Jason Miller
contains things like Flowtype annotations that are not stripped by most build tools
2017-04-14chore(release): 1.1.1Jason Miller
2017-04-14Update deps.Jason Miller
2017-04-14Avoid creating a new listener type array in `off()`, saves another 4 bytes ↵Jason Miller
(187b -> 183b)
2017-04-14Fix eslint complaintsJason Miller
2017-04-14Make npm-run-all silentJason Miller
2017-04-13Cleanup Build Chain (#48)Luke Edwards
* condense rollup:* scripts; set multiple targets * add module entry * remove mkdirp
2017-04-13Change description for emit (fix #49) (#50)Denis Sikuler
2017-03-10Fix `emit` argument annotation (#45)Rūdolfs Vikmanis
2017-03-09Removed outdated (untrue) API docs - chaining was removed in 53a44d8 (#44)Mateusz Burzyński
2017-03-09Add Standard Version for Semantic Releases (#43)Abhi Aiyer
* chore(release): 1.1.1 * Add Standard-Version to Mitt for git tagging and changelog generation * Remove excess files created in testing * fix(ignoreStandardVersion): Ignore standard version in flowconfig * chore(flow): Ignore node_modules in flow config, add readme about flow-typed, clean up test script * Update README.md * fix(flowTyped): remove flow typed all together
2017-02-28chore(*): remove example.js from root (#37)Jason Miller
Thinking this might be better in the readme anyway, or in a `docs/` dir. I'd like to get rid of any unnecessary files in the root.
2017-02-27Add Flow type annotations (#23)Brandon Dail
* Add flowtype annotations * Add flow to test script
2017-02-251.1.0Jason Miller
2017-02-25Update docs.Jason Miller
2017-02-25Typescript definitions (#25)Severin
* Added type definitions * Handler only has exactly one or no argument * Moved type defs to root folder
2017-02-25Merge branch 'agudulin-master' into tunnckoCore-refactorJason Miller
# Conflicts: # src/index.js # test/index.js
2017-02-25Merge branch 'master' into masterJason Miller
2017-02-25Enforce semicolonsJason Miller
2017-02-25Remove chaining return values so we don't make #1 impossible (yet?)Jason Miller
2017-02-25Let's keep `all` as an argument for now to avoid a semver breaking changeJason Miller