Skip to content

Commit bfbffa1

Browse files
authored
feat: v3 of the hook and component
1 parent 2311b39 commit bfbffa1

31 files changed

+1464
-2941
lines changed

.github/workflows/codecov.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
node-version: '12.x'
1212
- name: Build & generate coverage report
1313
run: |
14-
yarn install
15-
yarn test-coverage
14+
yarn
15+
yarn test
1616
- name: Upload coverage
1717
if: success()
1818
uses: codecov/codecov-action@v2

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ lib
22
node_modules
33
.idea
44
coverage
5+
yarn-error.log

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# Change Log
22

3+
## 3.0.0 ( ---- , 2021)
4+
5+
**Breaking Changes:**
6+
7+
- IE is not longer supported
8+
- `autoResetKey` props has been deprecated.
9+
- `shouldUseToLocaleString` and the whole setup to use the built-in `toLocaleString` out of the box has been deprecated. The same result can be achieved using the `formatter` function.
10+
- React PropTypes has been removed as well as the `prop-types` peer-dependency. The component and hook will rely on the TypeScript types.
11+
- `prefix` and `suffix` props has been deprecated. The same result can be achieved just by adding them to in front and behind the value.
12+
13+
**New features:**
14+
15+
- `updateInterval` prop now determines how often the animated value will change. When set to 0 the value will update on each key frame (default behavior).
16+
- `onUpdate` callback will be fired with the current animated value when it changes.
17+
18+
**Implemented enhancements:**
19+
20+
- bundle size is now even further reduced
21+
- `esbuild` is now used to bundle the code
22+
- example folder is added, which can be used for testing the hook and component
23+
324
## 2.3.1 (March 25th, 2021)
425

526
**Implemented enhancements:**

README.md

Lines changed: 39 additions & 81 deletions
Large diffs are not rendered by default.

__mocks__/use-elapsed-time.ts

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)