-
Notifications
You must be signed in to change notification settings - Fork 0
/
CHANGELOG
68 lines (44 loc) · 1.71 KB
/
CHANGELOG
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## 1.0.2 - 2022-8-11
### Changed
- Update return type of `isWindow()` from `boolean` to `value is Window`.
## 1.0.1 - 2022-5-9
### Changed
- Remove `browser` in package.json.
## 1.0.0 - 2022-3-9
### Added
- Add documentation built by typedoc.
- Add husky.
- Add package.json properties.
### Changed
- Using named export instead of object `timingFunctionMap` for tree shaking.
- Fixed `throttle` problem.
- Use `umd` format for browser bundle.
- Using type predicates for type functions.
- Change order of `useTimingFunction` and make arguments readable.
- Merge unit test files and use function name as describe.
- Upgrade to parcel@2 for development.
- Upgrade to rollup-plugin-ts@2 and use swc as compiler to get better bundles.
### Removed
- Remove useless css file and less package.
- Remove babel due to switching to swc.
- Remove .yarnrc.
- Remove Chinese README.
## 0.2.0 - 2021-10-28
### Added
- Add timing functions with a plain object `timingFunctionMap`.
- Add `useTimingFunction()` function.
- Add utils of RAF.
- Add `isWindow()` function.
- Add `debounce()` and `throttle()` function.
- Add `isHTMLElementOrDocument()`, `isStringOrHTMLElement()` and `getElementViaStringOrHTMLElement()` function.
### Changed
- Optimize `isHTMLElement()` function and aviod error behavior when juding a object instance by `HTMLXXXElement`.
- Add tags in README.
- Add unit tests.
## 0.1.0 - 2021-09-30
### Changed
- Rewrite utils with TypeScript. Provide type declaration.