Skip to content

Releases: VerZsuT/react-afc

v3.4.1

19 Dec 17:47
Compare
Choose a tag to compare
  • Add function $. It's allow to create inline static callbacks
  • Changed return values { val } to getter function

v3.3.3

04 Mar 07:25
Compare
Choose a tag to compare
  • Update deps
  • Fix bug with multiple lifecycle hook call

v3.3.2

28 Jan 11:59
2a05a40
Compare
Choose a tag to compare

Changes

  • Async contructor support

v3.3.1

23 Jan 16:31
3e0648f
Compare
Choose a tag to compare

Changes

  • Added props argument to render-function
  • Added default component name

v3.3.0: ReactDevtools and optimization

21 Jan 15:34
d5b40e8
Compare
Choose a tag to compare

Breaking changes

  • Removed pafc/pafcMemo
  • Removed fafc/fafcMemo
  • Removed type FAFC
  • Removed type PAFC
  • Removed type FastProps

Other changes

  • Optimized props updating
  • Fixed component names in ReactDevtools
  • Added state inspection in ReactDevtools
  • useRef now returns MutableRefObject

v3.2.0

08 Jan 17:51
20f92fa
Compare
Choose a tag to compare

Breaking changes

  • Moved wrapStaticHook / wrapDynamicHook from react-afc/compatible to react-afc
  • Removed AFC / FAFC / PAFC types exports (available in react-afc/types)
  • Removed Injectable / Inject
  • Renamed all curr fields to val (fafc / wrapDynamicHook)
  • Now useMemo return value is { val: <memoized_value> }
  • Now useRef return value is always non-reactive

Dependencies changes

  • Removed redux (provided by react-redux)
  • Changed react version from 18.x.x to >=16.8.0
  • Changed react-redux version from 8.x.x to >=7.1.0

v3.1.1

06 Jan 13:52
Compare
Choose a tag to compare

Fixed critical bugs

  • Fixed bug with hook in useActions
  • Fixed bug with data storage

v3.1.0

28 Dec 22:05
Compare
Choose a tag to compare
  • Added pafc
  • Added pafcMemo

v3.0.0

28 Dec 12:01
Compare
Choose a tag to compare

Changes

  • Added useState
  • Added useForceUpdate
  • Added wrapStaticHook
  • Added wrapDynamicHook

Breaking changes

  • Renamed onMount -> useOnMount
  • Renamed onDestroy -> useOnDestroy
  • Renamed onDraw -> useOnDraw
  • Renamed onRender -> useOnRender
  • Renamed effect -> useEffect
  • Renamed layoutEffect -> useLayoutEffect
  • Renamed createState -> useObjectState
  • Renamed reactive -> useReactive
  • Renamed ref -> useRef
  • Renamed handleContext -> useContext
  • Renamed getDispatch -> useDispatch
  • Renamed onceCreated -> useOnceCreated
  • Renamed memoized -> useMemo

useRef:

  • Changed isReactive default value to false
  • Renamed value -> current

useContext

  • Now returns an object of type { val: <context_value> }

v2.6.0

26 Dec 19:32
Compare
Choose a tag to compare
  • Added type FAFC
  • Added function effect
  • Added function layoutEffect