Releases: NPM-Workbench/micro-throttle-js
Releases Β· NPM-Workbench/micro-throttle-js
Version 1.0.0
Official Public Release: https://www.npmjs.com/package/micro-throttle-js
Done after the initial 0.9.0 Beta 1 Launch. No other changes in the code done. No breaking changes.
Version 0.9.0-beta.1
π§Έ A tiny, type-safe throttle utility for modern JavaScript and TypeScript. Like a water dam regulating a powerful river β micro-throttle-js controls the flow of your function calls.
π High frequency events like scroll, resize, mousemove, rapid API triggers etc., can overwhelm your application. Just like a dam regulates water flow to prevent flooding, micro-throttle-js regulates how often your function executes.
No chaos. No overflow. Just controlled release.
π Test Coverage
PASS src/micro-throttle/test/index.test.ts
microThrottle
β throws when delay is negative
β throws when delay is not finite
β calls once immediately and throttles calls within delay
β preserves this context
β works with zero delay
β throws when delay is Infinity
β separate instances do not share throttle state
Test Suites: 1 passed, 1 total
Tests: 7 passed, 7 total
Snapshots: 0 total
----------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
----------|---------|----------|---------|---------|-------------------
All files | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
----------|---------|----------|---------|---------|-------------------
Published on NPM: https://www.npmjs.com/package/micro-throttle-js