Skip to content

Latest commit

 

History

History
63 lines (42 loc) · 1.3 KB

CHANGELOG.md

File metadata and controls

63 lines (42 loc) · 1.3 KB

0.2.1 (19/Jan/2020)

  • Added Module.build({ ..., stateAsFunction: true }), for Nuxt.js.

0.2.0 (20/Feb/2019)

  • New mutation xxx$unshift added for array state by @Yuhannaa

0.1.19 (29/Jun/2018)

  • You can map with variables now. => See

0.1.18 (28/Jun/2018)

  • You can use get and action in methods now.
  • commit has been added as a component helper.

0.1.14 (21/Jun/2018)

  • You can pass key, value for $find
store.getters["myModule/posts$find"]("id", 3);

0.1.5 (14/Jun/2018)

  • You can use get or sync mapper in your component to map nested path of object like the following:
computed: {
  bio: get("myModule/user", "profile.bio");
  city: sync("myModule/user", "address.city");
}

0.1.3 (12/Jun/2018)

  • You can pass strict: false when you set value to an object, then it won't check validation of your path.
Module.build({
  state() {
    return {
      user: {}
    }
  }
})

...

store.commit("myModule/user$set", {
  key: "address.city",
  value: "Singapore",
  strict: false
});

This enables you can add keys dynamically.

0.1.0 (12/Jun/2018)

  • Initial public release