Skip to content

Releases: forminator/react-wire

v0.3.0

07 Jul 11:12

Choose a tag to compare

Selectors

  • selector: add createSelector and useSelector (75024ba)
  • selector: export useSelector and createSelector (586a0e9)
  • state-selector: add createStateSelector (5c7bd97)
  • state-selector: add useStateSelector (ca0e3a0)

v0.2.5

07 Jul 11:07

Choose a tag to compare

improve doc

v0.2.4

07 Jul 11:06

Choose a tag to compare

create wire

createWire function added. now it's possible to create wires outside of the react context and also have global wires.

v0.2.3

07 Jul 11:03

Choose a tag to compare

Readonly wire

read-only array type added and used in useWireValue. the read-only wire type is covariant.

  • state-wire: add readonly wire type (b73b74c)

v0.2.2

30 Mar 14:13

Choose a tag to compare

  • improve useWireState and useWire typing (253c53d)

v0.2.1

30 Mar 03:40

Choose a tag to compare

Improve type definitions

  • add default Fns type to wire (104fb97)
  • improve useWireValue typing (a4475a4)
    useWireValue infer return type from wire and defaultValue.

v0.2.0

30 Mar 03:45

Choose a tag to compare

Refactor

  • rewrite all codes
  • use functional paradigm
  • 25% decreases the size
  • better type infers, fixed undefined return type.

Breaking changes

  • changing wire param for hooks will throw an error.