# vuex-persistedstate-migrate

> Library to migrate vuex state using vuex-persistedstate

Latest version **1.0.0** (published 2021-03-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install vuex-persistedstate-migrate
pnpm add vuex-persistedstate-migrate
yarn add vuex-persistedstate-migrate
bun add vuex-persistedstate-migrate
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-03-15 |
| First published | 2021-03-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 10 |
| Dependencies | 1 |
| Unpacked size | 13.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | GrandChef Team |
| Maintainers | mazinsw |

## Links

- npm: https://www.npmjs.com/package/vuex-persistedstate-migrate
- Repository: https://github.com/grandchef/vuex-persistedstate-migrate
- Homepage: https://github.com/grandchef/vuex-persistedstate-migrate#readme
- Issues: https://github.com/grandchef/vuex-persistedstate-migrate/issues
- npm.io page: https://npm.io/package/vuex-persistedstate-migrate

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^2.1.0

## Recent versions

- 1.0.0 (latest) — 2021-03-15

## README

[![TypeScript version][ts-badge]][typescript-42]
[![Node.js version][nodejs-badge]][nodejs]
[![MIT][license-badge]][LICENSE]

# Vuex Persistedstate Migrate

Library to migrate vuex state using [vuex-persistedstate][vuex-persistedstate].

## Install

Run command bellow on your project folder

```sh
yarn add vuex-persistedstate-migrate
```
or
```sh
npm install vuex-persistedstate-migrate
```

## Example
```js
import Vuex from 'vuex'
import createPersistedState from 'vuex-persistedstate'
import createMigrate from 'vuex-persistedstate-migrate'

const migrations = [
  {
    version: 1,
    up: state => {
      return {
        ...state,
        myModule: {
          ...state.myModule,
          myProperty: 'migrated value',
        }
      }
    }
  }
]

Vue.use(Vuex)

const store = new Vuex.Store({
  plugins: [createPersistedState({
    getState: createMigrate(migrations, 'migration.version'),
  })],
  modules
})

export default store
```

## Available scripts

+ `clean` - remove coverage data, Jest cache and transpiled files,
+ `build` - transpile TypeScript to ES6,
+ `build:watch` - interactive watch mode to automatically transpile source files,
+ `lint` - lint source files and tests,
+ `style:fix` - fix prettier style problems,
+ `style:check` - check for prettier style,
+ `test` - run tests,
+ `test:watch` - interactive watch mode to automatically re-run tests
+ `test:debug` - run tests debugging

## License
Licensed under the MIT. See the [LICENSE](https://github.com/grandchef/vuex-persistedstate-migrate/blob/master/LICENSE) file for details.

[vuex-persistedstate]: https://github.com/robinvdvleuten/vuex-persistedstate#readme
[ts-badge]: https://img.shields.io/badge/TypeScript-4.2-blue.svg
[nodejs-badge]: https://img.shields.io/badge/Node.js->=%2010-blue.svg
[nodejs]: https://nodejs.org/dist/latest-v10.x/docs/api/
[typescript]: https://www.typescriptlang.org/
[typescript-42]: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-2.html
[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg
[license]: https://github.com/grandchef/vuex-persistedstate-migrate/blob/master/LICENSE

---
_Source: https://npm.io/package/vuex-persistedstate-migrate · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
