Skip to content

Releases: vjscc/utils

1.0.2

11 Aug 03:32
Compare
Choose a tag to compare

Changed

  • Update return type of isWindow() from boolean to value is Window.

1.0.1

09 May 06:10
Compare
Choose a tag to compare

Changed

  • Remove browser in package.json.

1.0.0

14 Mar 13:00
b258066
Compare
Choose a tag to compare

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

28 Oct 03:57
Compare
Choose a tag to compare

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.1-rc

14 Oct 11:37
Compare
Choose a tag to compare

Release 0.1.1-rc.