Skip to content

Commit a96aa88

Browse files
Randy LebeauRandy Lebeau
authored andcommitted
📦 4.3.1.
1 parent 3019700 commit a96aa88

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 4.3.1
2+
- Added TypeScript examples.
3+
- Fixed an issue with TypeScript typings.
4+
15
### 4.3.0
26
- Added `useIdleTimer` hook implementation.
37
- Added `eventsThrottle` to reduce cpu using on events that can spam the event handler. Defaults to 200ms.

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@
1616

1717
#### Version `4.3.0` adds a new hook implementation and some minor performance improvements:
1818

19-
☝️ The long awaited hook implementation is here! It takes the same properties and returns the same API as the component implementation. See [here](https://github.com/SupremeTechnopriest/react-idle-timer#hook-usage) for usage or check out the new [example](https://github.com/SupremeTechnopriest/react-idle-timer/blob/master/examples/hook).
19+
☝️ The hook implementation is here! It takes the same properties and returns the same API as the component implementation. See [here](https://github.com/SupremeTechnopriest/react-idle-timer#hook-usage) for usage or check out the new [example](https://github.com/SupremeTechnopriest/react-idle-timer/blob/master/examples/hook). There are now TypeScript [examples](https://github.com/SupremeTechnopriest/react-idle-timer/blob/master/examples) as well.
2020

2121
✌️ Added a new property called `eventsThrottle`. This will throttle the event handler to help decrease cpu usage on certain events (looking at you `mousemove`). It defaults to 200ms, but can be set however you see fit. To disable this feature, set it to `0`.
2222

23+
2324
> For the full patch notes please refer to the [CHANGELOG](https://github.com/SupremeTechnopriest/react-idle-timer/blob/master/CHANGELOG.md)
2425
2526
## Installation
@@ -32,7 +33,7 @@ npm install react-idle-timer --save
3233
```
3334

3435
## Examples
35-
You can install all the dependencies for the examples by running:
36+
You can install the dependencies for all the examples by running:
3637
```
3738
npm run example-install
3839
```

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-idle-timer",
3-
"version": "4.3.0",
3+
"version": "4.3.1",
44
"description": "Activity detection for React.js",
55
"main": "dist/index.min.js",
66
"module": "dist/index.es.js",
@@ -14,7 +14,7 @@
1414
"test": "npm run lint && jest",
1515
"prepackage": "npm run clean && npm run test && npm run build",
1616
"package": "./scripts/package",
17-
"example-install": "cd examples/component && npm i && cd ../hook && npm i",
17+
"example-install": "cd examples/component && npm i && cd ../hook && npm i && cd ../component-ts && npm i && cd ../hook-ts && npm i",
1818
"example-component": "cd examples/component && npm start",
1919
"example-hook": "cd examples/hook && npm start"
2020
},

0 commit comments

Comments
 (0)