Skip to content

Releases: vuex-orm/vuex-orm

v0.25.6

18 Jul 01:23
Compare
Choose a tag to compare

Fixes

  • #194 Fix where floating number get rounded when using number attribute.
  • Fix where sometimes creating data with morphOne relationship fails.

v0.25.5

11 Jul 01:45
Compare
Choose a tag to compare

Fixes

  • #104 Make nested relation loading work with same top level relation name.

    Now you can do things like this.

    const users = store.getters['entities/users']().
      .with('posts.comments', query => { ... })
      .with('posts.likes', query => { ... })
      .get()
  • #180 Fix where an error rises while initializing the app

v0.25.4

30 Jun 04:10
Compare
Choose a tag to compare

Improvement

Refactored how the schema is generated and organized several other components. This release shouldn't affect any API but it's simpler better in many cases I believe : )

v0.25.3

27 Jun 00:02
Compare
Choose a tag to compare

Fixes

  • #157 Fix where hasOne relationship not working when the field is null.
  • #175 Fix update method not working correctly when having relation inside data.
  • Fix type of plugins use method.

v0.25.2

21 May 12:20
Compare
Choose a tag to compare

Fixes

  • #164 Fix where error raises when store is empty.
  • #154 Improve performance on several relationship when there're lot of records.

Thanks to @kkyouhei for the awesome PR 🎉

v0.25.0

30 Apr 10:15
Compare
Choose a tag to compare

New Features

Model convenience methods

Issue: #60

Now models can dispatch store methods such as create, insert or find. See the documentation for more detail.

v0.24.5

24 Apr 16:13
Compare
Choose a tag to compare

New Features

  • Exposed specific type attributes such as String and Number to the plugin component.

v0.24.4

16 Apr 09:58
Compare
Choose a tag to compare

Fixes

  • #142 Pivot table is not created in certain cases.

v0.24.3

11 Apr 15:02
Compare
Choose a tag to compare

New Features

Specific type attribute

You may use specific type attributes, this.string(), this.number(), and this.boolean() to cast the value to be those types. The argument is the default value.

class User extends Model {
  static fields () {
    return {
      id: this.number(0),
      name: this.string('John Doe'),
      active: this.boolean(true)
    }
  }
}

Note that these attributes provide casting. It will convert for example '0' to be 0 or 1 to be true.

Fixes

  • #126 Fix where passing undefined to the find method retrieve last entity.

v0.24.2

05 Apr 23:58
Compare
Choose a tag to compare

Fixes

  • #137 Fix where belongsToMany won't create correct pivot table on certain case.
  • Fix where state change was not reactive on insert and update.