Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

use-debounce

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-debounce - npm Package Versions

23
8

10.0.4

Diff

Changelog

Source

10.0.4

  • Fix behaviour for strictMode react when leading is set to true and trailing is true
xnimorz
published 10.0.4-beta •

xnimorz
published 10.0.3 •

Changelog

Source

10.0.3

  • Removed peerDependency part from package.json as NPM cannot correctly resolve peerDependency for beta and rc versions: see https://stackoverflow.com/questions/67934358/npm-including-all-range-of-pre-release-when-defining-peer-dependency for context
xnimorz
published 10.0.2 •

Changelog

Source

10.0.2

  • Fixed: isPending does not reset the state if the tracked value hasn't changed.. See https://github.com/xnimorz/use-debounce/issues/178
xnimorz
published 10.0.1 •

Changelog

Source

10.0.1

  • Fixed flush method return args, thanks to @h
xnimorz
published 10.0.0 •

Changelog

Source

10.0.0

  • Major breaking change: replaced index.modern.js with index.mjs. Might require a little change in your build pipeline
  • Major breaking change: New option debounceOnServer: if you put the option to true, it will run debouncing on server (via setTimeout). The new option can break your current server behaviour, as v9.x, it runs all the time and might cause unnessesary server CPU utilisation. Now, by default, debounced callbacks do not happen on server.
  • Minor breaking change: Replaced useState for useDebounce with useReducer. It might lead to reduced amount of re-renders, as useState is known to have excess re-renders in some corner: https://stackoverflow.com/questions/57652176/react-hooks-usestate-setvalue-still-rerender-one-more-time-when-value-is-equal
  • Minor breaking change: useDebouncedCallback now updates function to call asap. Meaning, if you re-called the hook and it should trigger immediately, it will trigger the newest function all the time.
  • Lib size: 914 B: index.js.gz 851 B: index.js.br 883 B: index.mjs.gz 826 B: index.mjs.br 938 B: index.module.js.gz 873 B: index.module.js.br 989 B: index.umd.js.gz 919 B: index.umd.js.br
  • [Internal] Replaced Enzyme with @testing-library
  • [Internal] yarn classic => npm
  • [Internal] Updated devDependencies
xnimorz
published 10.0.0-alpha •

xnimorz
published 9.0.4 •

Changelog

Source

9.0.4

xnimorz
published 9.0.3 •

Changelog

Source

9.0.3

  • Represent correct return type from useDebounce(), see issue, thanks to @appden
xnimorz
published 9.0.2 •

Changelog

Source

9.0.2

  • Reverted 9.0.0. We will revisit these changes later
23
8
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc