From d863ebb914cd8ac5a007bcabf62008c6d3a67064 Mon Sep 17 00:00:00 2001 From: fanwei Date: Tue, 3 Aug 2021 17:56:04 +0800 Subject: [PATCH] feat: publish v1.1.0 --- README.md | 1 + package-lock.json | 8 +++++++- package.json | 3 ++- scripts/build.js | 1 + 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 90c8e5e..29ea8bf 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ router.push('/login'); |`onBeforeRouteUpdate`(updateGuard: NavigationGuard): void|| |`useRoute`(): Route \| undefined|| |`useRouter`(): VueRouter \| undefined|| +|router.`isReady`(): Promise\|| ## ☎️ Contact diff --git a/package-lock.json b/package-lock.json index caad126..20166a9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "vue2-helpers", - "version": "1.0.0", + "version": "1.1.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -331,6 +331,12 @@ "integrity": "sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA==", "dev": true }, + "vue": { + "version": "2.6.14", + "resolved": "https://registry.npmjs.org/vue/-/vue-2.6.14.tgz", + "integrity": "sha512-x2284lgYvjOMj3Za7kqzRcUSxBboHqtgRE2zlos1qWaOye5yUmHn42LB1250NJBLRwEcdrB0JRwyPTEPhfQjiQ==", + "dev": true + }, "vue-router": { "version": "3.5.2", "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.5.2.tgz", diff --git a/package.json b/package.json index f22bb02..8edc605 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue2-helpers", - "version": "1.0.0", + "version": "1.1.0", "description": "A util package to use Vue 2 with Composition API easily", "author": "Ambit Tsai ", "license": "Apache-2.0", @@ -27,6 +27,7 @@ "rollup": "^2.53.3", "rollup-plugin-terser": "^7.0.2", "typescript": "^4.3.5", + "vue": "^2.6.14", "vue-router": "^3.5.2", "vuex": "^3.6.2" }, diff --git a/scripts/build.js b/scripts/build.js index 82a8326..8b562e8 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -17,6 +17,7 @@ async function compile(file) { const bundle = await rollup.rollup({ input: file, external: [ + 'vue', '@vue/composition-api', 'vuex', 'vue-router',