Manatea

Predictable micro state manager.

MIT License

Downloads
39
Stars
5
Committers
3
Manatea - v1.0.0-alpha.1 Latest Release

Published by Ayc0 about 1 year ago

What's Changed

Internal changes

Full Changelog: https://github.com/Ayc0/Manatea/compare/v0.6.1...v1.0.0-alpha.1

Manatea - v0.6.1 – can't be cancelled

Published by Ayc0 about 1 year ago

What's Changed

Internal changes

Full Changelog: https://github.com/Ayc0/Manatea/compare/v0.6.0...v0.6.1

Manatea - v0.6.0 – 18 exports

Published by Ayc0 over 1 year ago

What's Changed

Internal changes:

Full Changelog: https://github.com/Ayc0/Manatea/compare/v0.5.1...v0.6.0

Manatea - v0.6.0-beta.3

Published by Ayc0 over 1 year ago

What's Changed

Breaking changes:

Internal changes:

Full Changelog: https://github.com/Ayc0/Manatea/compare/v0.6.0-beta.2...v0.6.0-beta.3

Manatea - v0.6.0-beta.2

Published by Ayc0 over 1 year ago

Manatea - v0.6.0-beta.1

Published by Ayc0 over 2 years ago

Manatea - v0.6.0-beta.0

Published by Ayc0 over 2 years ago

What's Changed

Full Changelog: https://github.com/Ayc0/Manatea/compare/v0.5.1...v0.6.0-beta.0

Manatea - v0.5.1 – The derivative

Published by Ayc0 almost 3 years ago

What's Changed

Full Changelog: https://github.com/Ayc0/Manatea/compare/v0.5.0...v0.5.1

Manatea - v0.5.1-beta.4

Published by Ayc0 almost 3 years ago

Manatea - v0.5.1-beta.3

Published by Ayc0 about 3 years ago

What's Changed

Full Changelog: https://github.com/Ayc0/Manatea/compare/v0.5.1-beta.2...v0.5.1-beta.3

Manatea - v0.5.1-beta.2

Published by Ayc0 about 3 years ago

What's Changed

  • Revert type Record<string, unknown> introduced in v0.5.1-beta.1

Full Changelog: https://github.com/Ayc0/Manatea/compare/v0.5.1-beta.1...v0.5.1-beta.2

Manatea - v0.5.1-beta.1

Published by Ayc0 about 3 years ago

What's Changed

  • Update all dev deps
    • "@testing-library/react-hooks": "^7.0.2"
    • "@types/jest": "^27.0.2"
    • "jest": "^27.2.5"
    • "prettier": "^2.4.1"
    • "ts-jest": "^27.0.7"
    • "typescript": "^4.4.4"
  • Update microbundle to v0.14.1 -> add a PURE annotation on the react import in react-manatea
  • Remove object from Tea and instead use Record<string, unknown> (minor breaking change)
  • Update TS config + update code accordingly
  • Update GH actions versions to v2

Full Changelog: https://github.com/Ayc0/Manatea/compare/v0.5.0...v0.5.1-beta.1

Manatea - v0.5.0 – Febreze (the big cleanup)

Published by Ayc0 about 3 years ago

manatea

  • All names changed: BREAKING CHANGE
    • createCup -> orderCup,
    • Change -> Order (only in TS),
    • (and other internal names, please check the readme for the lexicon,
  • when ordering a new cup with orderCup, you can now pass a flavoring function,
  • Cup was updated to receive 2 generics instead of one: FlavoredTea and UnflavoredTea (minor breaking change)
  • Remove namedStores BREAKING CHANGE,
  • Don't call Object.freeze() on the teas anymore (as it can mutate the provided value) (minor breaking change)
  • add context to servers and orders to avoid infinite loops when a cup's listener is used to update another cup
const cup1 = orderCup(0);
const cup2 = orderCup(0);

cup1.on((newTea, context) => cup2(newTea, context));
cup2.on((newTea, context) => cup1(newTea, context));

// Here updating cup1 will update cup2, and vice versa.
// But thanks to the `context`, we don't create an infinite loop,
// and the updates are dropped when they re-reached an already updated cup
  • use Object.is instead of === for comparing the previous and the new teas (handle NaN OOTB + differentiate -0 from +0) (minor breaking change),

  • add sideEffects: false in package.json to enable tree shaking

react-manatea

  • update peerDependency to [email protected]
  • fix type in useInfuser
  • useInfuser exposes the context (used to avoid infinite loops)
  • add sideEffects: false in package.json to enable tree shaking

internal changes

  • update to yarn 3
  • remove lerna and instead use custom scripts

Full Changelog: https://github.com/Ayc0/Manatea/compare/v0.3.6...v0.5.0

Manatea - v0.5.0-beta.10 – The equalizer

Published by Ayc0 about 3 years ago

manatea

  • use Object.is instead of === for comparing the previous and the new teas (handle NaN OOTB + differentiate -0 from +0) (minor breaking change)
  • properly use FlavoredTea in Handler instead of UnflavoredTea (only type change)

internal names

Renamed more tea into flavoredTea

Manatea - v0.3.6

Published by Ayc0 about 3 years ago

First tracked release via GH releases

Manatea - v0.5.0-beta.9 – Flavors of flavors

Published by Ayc0 about 3 years ago

manatea

The flavoring function accepts a second parameter: previouslyFlavoredTea (which isn't passed for the initialTea)

Manatea - v0.5.0-beta.8 – A whole new Flavor

Published by Ayc0 about 3 years ago

manatea

  • Flavoring can transform a value from an UnflavoredTea one to the stored FlavoredTea
  • Cup was updated to receive 2 generics instead of one: FlavoredTea and UnflavoredTea
  • removed wrongly added unstable_plate

react-manatea

  • useInfuser, Infuser, and infuse were updated to also support FlavoredTea and UnflavoredTea

Internal names

  • tea -> flavoredTea
  • previousTea -> previouslyFlavoredTea
  • teaRefill -> unflavoredTea
Manatea - v0.5.0-beta.7 – no side effects spotted

Published by Ayc0 over 3 years ago

manatea

  • add sideEffects: false in package.json to enable tree shaking
  • added by mistake unstable_plate

react-manatea

  • add sideEffects: false in package.json to enable tree shaking
Manatea - v0.5.0-beta.6 – approved by peers

Published by Ayc0 over 3 years ago

react-manatea

  • update peer dep to v0.5.0-beta.6 instead of v0.5.0-beta.0

internal

  • update all devDeps
  • switch to yarn 3
  • will keep the peer deps up to date with manatea
Manatea - v0.5.0-beta.4 – infuse the context

Published by Ayc0 over 3 years ago

react-manatea

  • useInfuser exposes the context