Skip to content

8.0.0

Compare
Choose a tag to compare
@xnimorz xnimorz released this 01 May 21:35
· 97 commits to master since this release
  • breaking change useDebounce changed its build system to microbundle. For now we have several entries:

index.js is for commonJS approach
index.modern.js for esnext module system
index.umd.js for UMD.
All the files are in dist folder.

If you have any paths which have esm or lib, please, replace them to dist:

Before:

import useDebounceCallback from 'use-debounce/lib/useDebounceCallback'

After:

import { useDebounceCallback } from 'use-debounce';
  • Fixed issue with incorrect VSCode autocomplete #131 Thanks to @c-ehrlich for reporting
  • Fixed useDebounce behaviour with react-devtools tab when devtools have a component with useDebounce or useDebounceCallback opened. #129 Thanks to @alexniarchos for reporting
  • Fixed issue with leading: true #124 Thanks to @mntnoe for reporting