Releases: chodorowicz/ts-debounce
Releases · chodorowicz/ts-debounce
🚀 Improve inference of from the signature of the the function where debounce is used
Breaking
- improve type inference thanks @juanmendes for the idea
- since we're improving types in some scenarios (instead of
any
you can get more precise types) this can break your type checks
- since we're improving types in some scenarios (instead of
const inputs = document.querySelectorAll("input");
inputs[0].addEventListener(
"input",
debounce((event) => {
// here Event has `Event` type, before it was just `any`
expectType<EventTarget | null>(event.target);
}, 0)
);
other
- 🧪 introduce tsd type testing
- 📝 add past contributors
- 💅 Add Prettier, format files
v3.0.0
- ✨ support for promises (thanks @sanduluca)
- ✨ support for callback (thanks @sanduluca)
- 📝 Update docs in relation to this release
v2.3.0
V2.2.0
- Add maxWait option a38aa49
v2.1.0
- ✨ [new] Now it's possible to cancel debounced function
- 📦 [changed] Updated packages
v2.0.1
- update changelog 2.0.1 d851f06
- remove unneeded files from npm package (#24) e3a9d66
- remoove unneeded files from npm package 5771a96
- docs: add zacnomore as a contributor (#23) 6805d5e
- update contributors to all-contributors automation format 50cd450
- docs: create .all-contributorsrc [skip ci] c8acee1
- docs: update README.md [skip ci] 09a4987
v2.0.0
- Add release notes, update packages 07c273b
- Fix return type signature (#22) 03adbd1
- Fix return type signature bcc30eb
- Bump handlebars from 4.2.0 to 4.5.3 (#21) 913717a
- Add badge and change name of workflow 8c0afcf
- Fix build command e17f890
- Add Github build config c9d02f7
- Bump handlebars from 4.2.0 to 4.5.3 fe6deb8
- update contributors and gitignore (#20) 15ae02e
- update contributors and gitignore 351f3a8
- update dependencies (#19) f562e06
- update dependencies 0a15a3f
- fix timeout return type error (#18) d5cbe04
- fix timeout return type 0630477
Version 0.1
This is initial, alpha release of the library.