Skip to content

Commit accc91f

Browse files
committed
v0.3.0
1 parent c6eda4b commit accc91f

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# [0.3.0](https://github.com/react-cmpt/use-throttle/compare/v0.2.2...v0.3.0) (2020-09-29)
2+
3+
4+
### Features
5+
6+
- **useThrottle:** `customizer` option and returns ([442b42f](https://github.com/react-cmpt/use-throttle/commit/442b42f7818f8d7ad61800c859d2f37066ae9c84))
7+
1. type: add `ThrottleOptions`;
8+
2. options: `customizer` (The function to customize comparisons);
9+
3. returns: value -> object. (`[T, ControlFunctions]`).
10+
- **useThrottleFn:** split returns and rename options type ([c0938da](https://github.com/react-cmpt/use-throttle/commit/c0938da40151eca5606be52e65c2847f47a0c597))
11+
1. type: `ThrottleOptions` -> `ThrottleFnOptions`;
12+
2. type: `ThrottleReturnResult` -> `ControlFunctions` + `ThrottleReturnResult`.
13+
14+
15+
116
## [0.2.2](https://github.com/react-cmpt/use-throttle/compare/v0.2.1...v0.2.2) (2020-06-28)
217

318

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-cmpt/use-throttle",
3-
"version": "0.2.2",
3+
"version": "0.3.0",
44
"description": "The throttled value / function hook for react",
55
"main": "lib/index.js",
66
"types": "lib/index.d.ts",

0 commit comments

Comments
 (0)