poly-state

A boilerplate free simple state management library

MIT License

Downloads
182
Stars
16
Committers
3

Bot releases are visible (Hide)

poly-state - @poly-state/[email protected] Latest Release

Published by github-actions[bot] 7 months ago

Patch Changes

  • #26 52d8540 Thanks @shahriar-shojib! - ## @poly-state/core:

    • Global transactions support
    import { transact } from '@poly-state/core';
    
    transact(() => {
    	store1.setState({ count: 1 });
    	store2.setState({ name: test });
    	store2.setState({ address: 'London' });
    });
    

    store 1 and store 2 will be updated only once!

    @poly-state/react:

    • fixed a peer dependency issue for react
    • use useSyncExternalStore
    • use shallowCompare
    • upgrade packages and bundling
  • Updated dependencies [52d8540, 218ed5d]:

poly-state - @poly-state/[email protected]

Published by github-actions[bot] 7 months ago

Patch Changes

poly-state - @poly-state/[email protected]

Published by github-actions[bot] 7 months ago

Minor Changes

  • #26 52d8540 Thanks @shahriar-shojib! - ## @poly-state/core:

    • Global transactions support
    import { transact } from '@poly-state/core';
    
    transact(() => {
    	store1.setState({ count: 1 });
    	store2.setState({ name: test });
    	store2.setState({ address: 'London' });
    });
    

    store 1 and store 2 will be updated only once!

    @poly-state/react:

    • fixed a peer dependency issue for react
    • use useSyncExternalStore
    • use shallowCompare
    • upgrade packages and bundling

Patch Changes

  • #28 218ed5d Thanks @shahriar-shojib! - - Added Batching
    • Added callbacks for various store methods
    • Added devtoolsConnectionInstance on withDevtools
poly-state - @poly-state/[email protected]

Published by github-actions[bot] about 2 years ago

Minor Changes

  • #23 a2f2dad Thanks @shahriar-shojib! - @poly-state/core

    • updated dependencies
    • added keywords on package.json
    • performance improvements

    @poly-state/react

    • updated dependencies
    • added keywords on package.json
    • [BREAKING] any updater function now must return a new object, not mutate the previous one, mutating the previous one will cause unexpected behavior

    @poly-state/preact

    • updated dependencies
    • added keywords on package.json
poly-state - @poly-state/[email protected]

Published by github-actions[bot] about 2 years ago

Minor Changes

  • #23 a2f2dad Thanks @shahriar-shojib! - @poly-state/core

    • updated dependencies
    • added keywords on package.json
    • performance improvements

    @poly-state/react

    • updated dependencies
    • added keywords on package.json
    • [BREAKING] any updater function now must return a new object, not mutate the previous one, mutating the previous one will cause unexpected behavior

    @poly-state/preact

    • updated dependencies
    • added keywords on package.json

Patch Changes

poly-state - @poly-state/[email protected]

Published by github-actions[bot] about 2 years ago

Minor Changes

  • #23 a2f2dad Thanks @shahriar-shojib! - @poly-state/core

    • updated dependencies
    • added keywords on package.json
    • performance improvements

    @poly-state/react

    • updated dependencies
    • added keywords on package.json
    • [BREAKING] any updater function now must return a new object, not mutate the previous one, mutating the previous one will cause unexpected behavior

    @poly-state/preact

    • updated dependencies
    • added keywords on package.json

Patch Changes

poly-state - @poly-state/[email protected]

Published by github-actions[bot] about 2 years ago

Minor Changes

  • #21 5979802 Thanks @shahriar-shojib! - added tests for re render tracking
    move to tsup.config.ts instead of passing the arguments to cli
poly-state - @poly-state/[email protected]

Published by github-actions[bot] about 2 years ago

Minor Changes

poly-state - @poly-state/[email protected]

Published by github-actions[bot] about 2 years ago

Minor Changes

Patch Changes

poly-state - @poly-state/[email protected]

Published by github-actions[bot] about 2 years ago

Minor Changes

Patch Changes

poly-state - Bugfix: Added fixes for Redux DevTools

Published by sonjoydatta over 2 years ago

What's Changed

  • From now, DevTools state tree will appear all the keys when you set something
  • Fix a type issue in storeClass for hydrate and setState
  • Deep equality checks have been converted to high-level equality checks
    by @shahriar-shojib in https://github.com/poly-state/poly-state/pull/15

Full Changelog: https://github.com/poly-state/poly-state/compare/1.1.3...1.1.4

poly-state - Bugfix: Setters prevState was immutable

Published by sonjoydatta over 2 years ago

What's Changed

Full Changelog: https://github.com/poly-state/poly-state/compare/1.1.1...1.1.3

poly-state - Bugfix: React component wont re render

Published by shahriar-shojib over 2 years ago

poly-state - Initial Release

Published by shahriar-shojib over 2 years ago

This is what I consider to have all the necessary features needed by a store

Full Changelog: https://github.com/poly-state/poly-state/commits/1.0.0