Vue Local Storage Versions Save

Vue.js localStorage plugin with types support

0.6.2

6 years ago
  • Update package dependencies (issue #43 by @sebastiansulinski)

0.6.1

6 years ago

Forgot to add new dist files to git

0.6.0

6 years ago
  • 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

v0.5.0

6 years ago

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
    }
  }
})

0.4.2

6 years ago

Thanks to @noprom for bug hunting

0.4.1

6 years ago
  • 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)

0.3.0

6 years ago
  • Added ability to change $localStorage binding to whatever you want with options object
  • Eslint rules added

0.2.0

7 years ago
  • 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)

v0.1.3

7 years ago

v0.1.2

7 years ago

Fixed in-component localStorage behavior