diff --git a/package.json b/package.json index f5a1606..436f2b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pinia-plugin-persist", - "version": "0.0.5", + "version": "0.0.6", "description": "Persist pinia state data in sessionStorage or other storages.", "main": "dist/pinia-plugin-persist.js", "module": "dist/pinia-plugin-persist.esm.js", @@ -48,6 +48,18 @@ "build": "rimraf dist && rollup -c rollup.config.js", "lint": "eslint . --ext .ts" }, + "dependencies": { + "vue-demi": "^0.11.4" + }, + "peerDependencies": { + "@vue/composition-api": "^1.0.0", + "vue": "^2.0.0 || >=3.0.0" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + } + }, "devDependencies": { "@sucrase/jest-plugin": "^2.1.0", "@types/jest": "^26.0.23", @@ -61,7 +73,7 @@ "brotli": "^1.3.2", "codecov": "^3.8.2", "conventional-changelog-cli": "^2.1.1", - "esbuild": "^0.12.18", + "esbuild": "^0.12.25", "eslint": "^7.26.0", "jest": "^26.6.3", "jest-mock-warn": "^1.1.0", diff --git a/src/index.ts b/src/index.ts index 987c1a8..1098412 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -import { watch } from '@vue/composition-api' +import { watch } from 'vue-demi' import { PiniaPluginContext, StateTree, GettersTree } from 'pinia' export interface PersistStrategy {