Releases: vuex-orm/vuex-orm
Releases · vuex-orm/vuex-orm
v0.25.6
Fixes
- #194 Fix where floating number get rounded when using
number
attribute.
- Fix where sometimes creating data with
morphOne
relationship fails.
v0.25.5
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
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
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
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
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
New Features
- Exposed specific type attributes such as
String
and Number
to the plugin component.
v0.24.4
Fixes
- #142 Pivot table is not created in certain cases.
v0.24.3
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
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
.