Releases: vjscc/utils
Releases · vjscc/utils
1.0.2
1.0.1
1.0.0
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
Added
- Add timing functions with a plain object
timingFunctionMap
. - Add
useTimingFunction()
function. - Add utils of RAF.
- Add
isWindow()
function. - Add
debounce()
andthrottle()
function. - Add
isHTMLElementOrDocument()
,isStringOrHTMLElement()
andgetElementViaStringOrHTMLElement()
function.
Changed
- Optimize
isHTMLElement()
function and aviod error behavior when juding a object instance byHTMLXXXElement
. - Add tags in README.
- Add unit tests.