Releases: meteor-vue/vue-meteor-tracker
Releases · meteor-vue/vue-meteor-tracker
v2.0.0-beta.4
v2.0.0-beta.3
Breaking changes
meteor: { subscribe: { ... } }
(without the$
sign) will no longer subscribe and will be considered as a data prop.this.$subscribe
arguments are nowname
(string) andparams
(array or function returning an array).
Before:
this.$subscribe('my-sub', 1, 2, 3)
After:
this.$subscribe('my-sub', [1, 2, 3])
Or:
// Reactive params
this.$subscribe('my-sub', () => this.params)
New
- You can now use Meteor reactive data inside computed properties (docs).
v2.0.0-beta.2
Breaking changes
- An error will now be thrown if the key of a meteor data prop is already defined in
data
,props
, etc.
Before:
export default {
data () {
return {
notes: []
}
},
meteor: {
notes () {
return Notes.find({})
}
}
}
After:
export default {
meteor: {
notes () {
return Notes.find({})
}
}
}
Fixed
- Tracker computation of a Meteor data prop is now invalidated instead of stopped when the Vue watcher is notified.
v2.0.0-beta.1
Breaking changes
- Data properties in
meteor
option can now only be functions returning the result. You no longer need to separate intoparams
andupdate
functions since you can now use both Meteor and Vue reactive data in the function.
Before:
meteor: {
selectedThread: {
params () {
return {
id: this.selectedThreadId
}
},
deep: true,
update ({id}) {
return Threads.findOne(id)
}
}
}
After:
meteor: {
selectedThread () {
return Threads.findOne(this.selectedThreadId)
}
}
New
MeteorSub
andMeteorData
components (docs)
Fixed
- Uninitialized data now displayed in vue devtools
$subReady
reactivity fix #26