Skip to content

Commit

Permalink
feat: v3 of the hook and component
Browse files Browse the repository at this point in the history
  • Loading branch information
vydimitrov committed Sep 5, 2021
1 parent 2311b39 commit bfbffa1
Show file tree
Hide file tree
Showing 31 changed files with 1,464 additions and 2,941 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
node-version: '12.x'
- name: Build & generate coverage report
run: |
yarn install
yarn test-coverage
yarn
yarn test
- name: Upload coverage
if: success()
uses: codecov/codecov-action@v2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ lib
node_modules
.idea
coverage
yarn-error.log
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Change Log

## 3.0.0 ( ---- , 2021)

**Breaking Changes:**

- IE is not longer supported
- `autoResetKey` props has been deprecated.
- `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.
- React PropTypes has been removed as well as the `prop-types` peer-dependency. The component and hook will rely on the TypeScript types.
- `prefix` and `suffix` props has been deprecated. The same result can be achieved just by adding them to in front and behind the value.

**New features:**

- `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).
- `onUpdate` callback will be fired with the current animated value when it changes.

**Implemented enhancements:**

- bundle size is now even further reduced
- `esbuild` is now used to bundle the code
- example folder is added, which can be used for testing the hook and component

## 2.3.1 (March 25th, 2021)

**Implemented enhancements:**
Expand Down
120 changes: 39 additions & 81 deletions README.md

Large diffs are not rendered by default.

56 changes: 0 additions & 56 deletions __mocks__/use-elapsed-time.ts

This file was deleted.

0 comments on commit bfbffa1

Please sign in to comment.