Skip to content

v2.0.0: v2

Compare
Choose a tag to compare
@RIP21 RIP21 released this 30 Apr 08:55
· 102 commits to master since this release

Features:

  • useMap hook added to manage Map in a nice and simple way
  • Separate import for every function e.g.react-hanger/useArray
  • Two different import points for array API and object API react-hanger, react-hanger/array
  • All typings are exported too for convenience of prop drilling etc.

Breaking: Migration guide

  • Lifecycle hooks were removed
  • bind -> valueBind, bindToInput -> eventBind for useInput hook.

Documentation:

  • Migration guide from v1 to v2 added
  • Documentation updated to have all new APIs covered

Development:

  • More tests covering optimizations etc.
  • Build process changed in favor of more manual, but simple approach
  • Rollup removed in favor of simple TS compilation
  • Prettier rules change
  • react-scripts removed in favor of just jest with ts-jest