Skip to content

Latest commit

Β 

History

History
71 lines (46 loc) Β· 1.95 KB

File metadata and controls

71 lines (46 loc) Β· 1.95 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

2021-11-14

  • πŸ’₯ [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),
);
  • πŸ§ͺ introduce tsd type testing
  • πŸ“ new add past contributors
  • πŸ’… Add Prettier, format files

2021-02-16 [3.0.0]

  • ✨ [new] support for promises (thanks @sanduluca)
  • ✨ [new] support for callback (thanks @sanduluca)
  • πŸ“ [new] Update docs in relation to this release
  • πŸ’₯ [breaking] ts-debounce assumes that Promise is available

2021-02-02 [2.3.0]

  • ✨ [new] added ES module key to support ES module import
  • πŸ“ [changed] updated docs

2021-01-10 [2.2.0]

  • ✨ [new] maxWait option added

2020-11-29 [2.1.0]

  • ✨ [new] Now it's possible to cancel debounced function
  • πŸ“¦ [changed] Updated packages

2020-02-01 [2.0.1]

  • [Fixed] removed unneeded cache files from distributed npm package

2020-02-01 [2.0.0]

  • [changed] improved type of returned function (thanks @zacnomore)

2018-11-13 [1.0.0]

  • [changed] use microbundle package for compilation
  • [changed] updated dev dependencies to newest versions

2018-05-08 [0.3.0]

  • [changed] loosen up Node requirement to include Node 8
  • [changed] start using all-contributors format for contributions

2018-02-05 [0.2.0]

Changed

  • [breaking] third argument is now an object with one argument, this will allow to add further options int the future without breaking API