From 6117f8153a8a6a7be358c0c7afea6fe6e60f61ae Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Fri, 1 Jul 2022 21:33:24 +0800 Subject: [PATCH] fix: add note about Vue 2.7 --- README.md | 3 +++ README.zh-CN.md | 3 +++ package.json | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 053632b..5388b3e 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,9 @@ Vue 2 plugin for **Composition API** English | [中文](./README.zh-CN.md) ・ [**Composition API Docs**](https://v3.vuejs.org/guide/composition-api-introduction.html) + +> ⚠️ With the release of [Vue 2.7](https://blog.vuejs.org/posts/vue-2-7-naruto.html), which has Composition API built-in, **you no longer need this plugin**. Thereby this plugin has entered maintenance mode and will only support Vue 2.6 or earlier. This project will reach End of Life by the end of 2022. + ## Installation ### NPM diff --git a/README.zh-CN.md b/README.zh-CN.md index b9201fc..b76800f 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -7,6 +7,9 @@ [English](./README.md) | 中文 ・ [**组合式 API 文档**](https://v3.cn.vuejs.org/guide/composition-api-introduction.html) + +> ⚠️ 随着 [Vue 2.7](https://blog.vuejs.org/posts/vue-2-7-naruto.html)的发布,它内置了Composition API,**你不再需要这个插件了**。因此,这个插件已经进入维护模式,将只支持Vue 2.6 或更早的版本。本项目将在 2022 年底达到生命终点(EOL)。 + ## 安装 ### NPM diff --git a/package.json b/package.json index 740c80c..e6f21b6 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ }, "homepage": "https://github.com/vuejs/composition-api#readme", "peerDependencies": { - "vue": ">= 2.5 < 3" + "vue": ">= 2.5 < 2.7" }, "devDependencies": { "@rollup/plugin-node-resolve": "^13.3.0",