Releases: pinguinjkeke/vue-local-storage
Releases · pinguinjkeke/vue-local-storage
Update dependencies
- Update package dependencies (issue #43 by @sebastiansulinski)
Little fixes
Forgot to add new dist files to git
Namespaces
- Namespaces support (Thanks to @nikolay-borzov)
- Docs fixes (Thanks to @thomasleveil)
- Default types for
.get
method (Thanks to @nikolay-borzov for idea) - Usage of
parseFloat
instead ofparseInt
for Numbers (Thanks to @baryon for idea) - Little code cleanup
Computed calls
Thanks a lot for @dasdeck for great PR.
Now you can bind properties as computed to call them like this:
Vue.use(localStorage, { bind: true })
new Vue({
localStorage: {
someValue: {
default: 6,
type: Number
}
},
created () {
this.someValue // 6
this.somValue = 7 // Will write 7 to localStorage
}
})
You can use global config bind
property like:
Vue.use(localStorage, { bind: true })
or use it for properties you need to be bounded as computed:
new Vue({
localStorage: {
someValue: {
type: Number,
bind: true
}
}
})
Fixing SSR bugs
Thanks to @noprom for bug hunting
We are going SSR!
- Server Side Rendering is supported now with all Nuxt releases and also tested with VueHackerNews which uses Vue 2 SSR (Thanks to @wilk for the issue)
- Module names and author info fixed (Thanks to @zaplachinsky for the PR)
Not everyone loves $localStorage binding
- Added ability to change $localStorage binding to whatever you want with options object
- Eslint rules added
0.2.0
- All code covered with unit tests (Jest used)
- Added build scripts with rollup
- Dist and src folders are splitted now
- Value fallback for
get
method (see README)
Make static method available on Vue instance
v0.1.3 Make static method available on the Vue instance (closes #6)
Vue 2.0 support
Fixed in-component localStorage behavior