diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f3219cc..cd9a84e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,36 @@ + +# [1.0.0-beta.22](https://github.com/vuejs/composition-api/compare/v1.0.0-beta.21...v1.0.0-beta.22) (2020-12-19) + + +### Features + +* **getCurrentInstance:** Aligning with vue3 ([#520](https://github.com/vuejs/composition-api/issues/520)) ([1495a46](https://github.com/vuejs/composition-api/commit/1495a46)) + + +### BREAKING CHANGES + +* **getCurrentInstance:** The internal vm can be accessed with `getCurrentInstance().proxy` + +```js +const vm = getCurrentInstance() + +// becomes + +const vm = getCurrentInstance().proxy +``` + +* chore: improve + +* changes + +* update tests + +* chore: add tests + +Co-authored-by: Anthony Fu + + + # [1.0.0-beta.21](https://github.com/vuejs/composition-api/compare/v1.0.0-beta.20...v1.0.0-beta.21) (2020-12-07) diff --git a/README.md b/README.md index 77b2cb3a..3e5385c2 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ Include `@vue/composition-api` after Vue and it will install itself automaticall ```html - + ``` diff --git a/README.zh-CN.md b/README.zh-CN.md index 6e86d539..d672b171 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -40,7 +40,7 @@ import { ref, reactive } from '@vue/composition-api' ```html - + ``` diff --git a/package.json b/package.json index 90968665..75ae1af5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vue/composition-api", - "version": "1.0.0-beta.21", + "version": "1.0.0-beta.22", "description": "Provide logic composition capabilities for Vue.", "keywords": [ "vue",