Skip to content

Releases: chodorowicz/ts-debounce

🚀 Improve inference of from the signature of the the function where debounce is used

14 Nov 11:29
7e7bc24
Compare
Choose a tag to compare

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
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...v4.0.0

v3.0.0

16 Feb 21:47
v3.0.0
a97dad2
Compare
Choose a tag to compare
  • ✨ support for promises (thanks @sanduluca)
  • ✨ support for callback (thanks @sanduluca)
  • 📝 Update docs in relation to this release

v2.3.0...v3.0.0

v2.3.0

02 Feb 00:02
v2.3.0
b99deed
Compare
Choose a tag to compare
  • 📝 Remove all-contributors, rely on the github contributors functionality a94be59
  • 📝 Update README.md ec82fd3
  • 📝 Add install instructions to Readme.md 27ac490
  • ✨ build: add module field in package.json 9f57a1a
  • 📝 Fix readme b0a5fda

v2.2.0...v2.3.0

V2.2.0

10 Jan 14:25
v2.2.0
d5d3eda
Compare
Choose a tag to compare

v2.1.0...v2.2.0

v2.1.0

29 Nov 14:10
v2.1.0
878d6a7
Compare
Choose a tag to compare
  • ✨ [new] Now it's possible to cancel debounced function
  • 📦 [changed] Updated packages

v2.0.1...v2.1.0

v2.0.1

02 Feb 12:52
v2.0.1
62f30f2
Compare
Choose a tag to compare
  • 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...v2.0.1

v2.0.0

01 Feb 15:55
v2.0.0
c8623a0
Compare
Choose a tag to compare

v1.0.0...v2.0.0

Version 0.1

12 Nov 15:01
ba91e0f
Compare
Choose a tag to compare

This is initial, alpha release of the library.