Skip to content

Releases: ice-lab/icestore

v1.3.1

03 Apr 10:40
eb98857
Compare
Choose a tag to compare
  • Fix: Utility Types
  • Feat: initialState for Provider

v1.3.0

02 Apr 07:55
8d275dc
Compare
Choose a tag to compare
  • Feat: store.getModel(store.getModelState / store.getModelDispatchers)
  • Feat: await effect

We've done a lot of refactoring in this version(#82), The following API has been detected:

  • useModelActions
  • Provider: initialStates
  • Defining effects as object

Visit upgrade-guidelines.md#120-to-130 to learn how to upgrade.

v1.2.0

26 Mar 03:33
875eaf9
Compare
Choose a tag to compare
  • Feat: immer for reducers #75

v1.1.2

12 Mar 06:29
5a58ef4
Compare
Choose a tag to compare
  • Fixed TypeScript support: actions && effectsState needs at least one child.

v1.1.1

12 Mar 04:22
013c166
Compare
Choose a tag to compare
  • Fixed TypeScript Support: lost utility-types in dependencies.

v1.1.0

05 Mar 12:11
cc5c015
Compare
Choose a tag to compare
  • Added effects && reducers to define model;
  • Added more documents: Upgrade Guidelines.

Change log

It is no longer recommended to use actions to define model, please use reducers && effects. #66

1.0.0:

const model = {
  state: 0,
  actions: {
    increment:(prevState) => prevState + 1,
    async decrementAsync(prevState, payload, actions) {
      await delay(1000);
      return prevState - 1;
    },
  },
};

1.1.0:

const model = {
  state: 0,
  reducers: {
    increment:(prevState) => prevState + 1,
    decrement:(prevState) => prevState - 1,
  },
  effects: {
    async decrementAsync(state, payload, actions) {
      await delay(1000);
      actions.decrement();
    },
  },
};

v1.0.1

24 Feb 08:28
95a6114
Compare
Choose a tag to compare
  • Added full TypeScript support, includes Class Component, withModel...;
  • Added more examples using CodeSandbox: Counter/Todos;
  • Added more documents: docs/api, docs/recipes.

v1.0.0

17 Feb 11:32
f586169
Compare
Choose a tag to compare

We released version 1.0.0 🚀🚀🚀

  • Stable and high performance;
  • Better hooks implementation.

v0.4.7

22 Jan 12:42
968e57b
Compare
Choose a tag to compare
  • Feat: Support Store interaction, can be implemented by calling actions from other store in a store's action

v0.4.6

14 Jan 08:36
1b624ea
Compare
Choose a tag to compare
  • Feat: Add applyOptions API to disable async state of store