satcheljs

Satchel is a data store based on the Flux architecture. It is characterized by exposing an observable state that makes view updates painless and efficient.

OTHER License

Downloads
2.7K
Stars
394
Committers
16

Bot releases are visible (Hide)

satcheljs - v4.3.1 Latest Release

Published by smikula almost 2 years ago

  • Change peer dependencies to reflect compatibility with latest MobX versions (#172)
satcheljs - Add non-breaking ESM support

Published by jarmit about 2 years ago

  • Add non-breaking ESM support
  • Update exports map to handle some folder indices
satcheljs - Use catch instead of finally for browser compatibility in mutator

Published by jarmit over 2 years ago

I am seeing lots of errors in Firefox and IE like Mutator (MutatorName) may not dispatch action (ActionName). And the callstack does not have a mutator in any of its stacks. When I look closer at the error, I see that these errors only happen in Firefox and IE so I think there is a browser compatibility issue where the finally is not getting recognized. I am going to switch over to a try catch instead to see if this fixes the issue

satcheljs - v4.2.4

Published by smikula over 3 years ago

  • Fix global reference (#151)
satcheljs - v4.2.3

Published by smikula about 4 years ago

  • Improve mutatorAction typings (#143)
satcheljs - Setting the name of the mutator instead of the name of the creating function

Published by jarmit over 4 years ago

satcheljs - Improve the error message for an action getting thrown inside a mutator

Published by jarmit over 4 years ago

satcheljs - v4.1.0

Published by smikula almost 5 years ago

  • Change mutator actions to disallow them from returning values or being async (#130)
  • Change mutators to use named MobX actions for a better experience with MobX dev tools (#133)
satcheljs - v4.0.1

Published by smikula over 5 years ago

  • Change internal implementation to avoid unnecessary anonymous functions and reduce callstack depth (#124, #125)
satcheljs - v4.0.0

Published by smikula over 5 years ago

  • Update MobX dependency to v4.4 (#98, #101)
  • Change the dispatch process to occur within a single MobX transaction (#106)
  • Remove orchestratorAction (#109)
  • Change createStore to throw when attempting to create multiple stores with the same name (#114)
satcheljs - v4.0.0-beta3

Published by smikula over 5 years ago

  • Change the dispatch process to occur within a single MobX transaction (#106)
  • Remove orchestratorAction (#109)
  • Change createStore to throw when attempting to create multiple stores with the same name (#114)
satcheljs - v4.0.0-beta2

Published by smikula over 5 years ago

  • Update to MobX v4.4 (#101)
  • Change strict mode to be compatible with earlier versions of Satchel (#101)
satcheljs - v4.0.0-beta1

Published by smikula over 6 years ago

  • Update to MobX v4 (#98)

There are no changes to the Satchel API in this release, but there are some significant changes to MobX and this version of Satchel is no longer compatible with older versions of MobX, thus the major version bump.

satcheljs - v3.1.2

Published by smikula over 6 years ago

  • Change peer dependencies to be compatible with React 16. (#94)
satcheljs - v3.1.1

Published by kenotron over 6 years ago

  • Fixes a subtle bug where mutation on and off flag isn't in the transaction (#93)
satcheljs - v3.1.0

Published by smikula about 7 years ago

  • Change mobx and mobx-react to be peer dependencies. (#86)
satcheljs - v3.0.1 Official SatchelJS V3 Release

Published by kenotron about 7 years ago

We have undergone a large rewrite of the framework. In order to support existing SatchelJS v2 codebase, we have preserved and consolidated the old API behind the import specifier of 'satchlejs/lib/legacy/'.

Important please note that these action() imports are different

// This is the V2 action
import {action} from 'satcheljs/lib/legacy';

// This is the V3 action
import {action} from 'satcheljs';

As part of this release, we have expanded on our documentation:

  • Official SatchelJS documentation - the official documentation now includes a new "Best Practice" section to promote some of the learnings in building a large application
  • SatchelJS cookbook - this is a learn-by-example styled cookbook filled with recipes that gives insight into how to solve specific problems when writing a complex application
satcheljs - v3.0.0-beta7

Published by kenotron about 7 years ago

Note that the 3.0.0-beta6 release has been abandoned due a problem with the way it was published to the NPM registry.

  • Change React and related packages to be peer dependencies. (#75)
  • Change simpleMutator to be named mutatorAction (#78)
  • Change simpleOrchestrator to be named orchestratorAction (#78)
  • Change boundActionCreator to be named action (#78)
  • Change orchestrators to be able to return promises, which are exposed to middleware (#79)
  • Change mutators to throw if they are async or otherwise returns a value (#79)
  • Change mutators to throw if they try to dispatch further actions (#81)
satcheljs - v3.0.0-beta5

Published by smikula about 7 years ago

  • Change the select API to return a frozen state object. (#71)
  • Update ActionMessage interface to be compatible with TypeScript v2.4's weak type validation. (#72)
Package Rankings
Top 3.51% on Npmjs.org
Badges
Extracted from project README
npm Build Status License: MIT
Related Projects