Manatea

Predictable micro state manager.

MIT License

Downloads
39
Stars
5
Committers
3
Manatea - v0.5.0-beta.2 – Don't blink, fix them

Published by Ayc0 over 3 years ago

manatea

  • add 2nd parameter to createCup that allows to transform the tea (internally called fixation) (like a sanitizer / transformer etc.)
Manatea - v0.5.0-beta.1 – NaN NaN NaN NaN BatNaN

Published by Ayc0 over 3 years ago

manatea

  • Avoid calling all listeners when the stored tea is NaN and the new tea is also NaN
Manatea - v0.5.0-beta.0 – cleanup

Published by Ayc0 over 3 years ago

manatea

  • Remove namedStores BREAKING
  • Remove Object.freeze on the teas (as it can mutate the provided value) (minor breaking change)
  • add context to listeners and changes to avoid infinite loops when a cup's listener is used to update another cup

react-manatea

  • fix type in useInfuser
Manatea - v0.5.0-beta.3 – the one with names

Published by Ayc0 over 3 years ago

manatea

All names changed BREAKING CHANGE

Exposed to users

  • createCup -> orderCup
  • Change -> Order (only in TS)

Internal names

  • cup's listener -> server
  • setter -> flavoring
  • initialTea -> firstTea
  • newTea -> teaRefill