Skip to content

Releases: pinguinjkeke/vue-local-storage

Update dependencies

14 Mar 09:03
Compare
Choose a tag to compare

Little fixes

30 Dec 19:20
Compare
Choose a tag to compare

Forgot to add new dist files to git

Namespaces

29 Dec 15:33
Compare
Choose a tag to compare
  • 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 of parseInt for Numbers (Thanks to @baryon for idea)
  • Little code cleanup

Computed calls

17 Oct 08:47
Compare
Choose a tag to compare

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

18 Sep 08:18
Compare
Choose a tag to compare

Thanks to @noprom for bug hunting

We are going SSR!

20 Aug 21:20
Compare
Choose a tag to compare
  • 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

24 Jun 11:16
Compare
Choose a tag to compare
  • Added ability to change $localStorage binding to whatever you want with options object
  • Eslint rules added

0.2.0

07 May 11:59
Compare
Choose a tag to compare
  • 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

24 Dec 16:40
Compare
Choose a tag to compare
v0.1.3

Make static method available on the Vue instance (closes #6)

Vue 2.0 support

05 Nov 14:48
Compare
Choose a tag to compare

Fixed in-component localStorage behavior