Skip to content

Commit 8cdd0ac

Browse files
committed
chore: update 2.7 changelog [ci skip]
1 parent 89bd1c2 commit 8cdd0ac

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

Diff for: CHANGELOG.md

+26-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
## Backported Features
44

5-
2.7 backports some of the most important features from Vue 3 so that Vue 2 users can benefit from them as well:
6-
75
- [Composition API](https://vuejs.org/guide/extras/composition-api-faq.html)
86
- SFC [`<script setup>`](https://vuejs.org/api/sfc-script-setup.html)
97
- SFC [CSS v-bind](https://vuejs.org/api/sfc-css-features.html#v-bind-in-css)
@@ -80,7 +78,32 @@ In addition, the following features are explicitly **NOT** ported:
8078

8179
4. If you were previously using [`@vue/composition-api`](https://github.com/vuejs/composition-api), update imports from it to `vue` instead. Note that some APIs exported by the plugin, e.g. `createApp`, are not ported in 2.7.
8280

83-
5. The SFC compiler for 2.7 now uses PostCSS 8 (upgraded from 7). PostCSS 8 should be backwards compatible with most plugins, but the upgrade **may** cause issues if you were previously using a custom PostCSS plugin that can only work with PostCSS 7. In such cases, you will need to upgrade the relevant plugins to their PostCSS 8 compatible versions.
81+
5. Update `eslint-plugin-vue` to latest version (9+) if you run into unused variable lint errors when using `<script setup>`.
82+
83+
6. The SFC compiler for 2.7 now uses PostCSS 8 (upgraded from 7). PostCSS 8 should be backwards compatible with most plugins, but the upgrade **may** cause issues if you were previously using a custom PostCSS plugin that can only work with PostCSS 7. In such cases, you will need to upgrade the relevant plugins to their PostCSS 8 compatible versions.
84+
85+
### Vite
86+
87+
2.7 support for Vite is provided via a new plugin: [@vitejs/plugin-vue2](https://github.com/vitejs/vite-plugin-vue2). This new plugin requires Vue 2.7 or above and supersedes the existing [vite-plugin-vue2](https://github.com/underfin/vite-plugin-vue2).
88+
89+
Note that the new plugin does not handle Vue-specific JSX / TSX transform, which is intentional. Vue 2 JSX / TSX transform should be handled in a separate, dedicated plugin, which will be provided soon.
90+
91+
### Volar Compatibility
92+
93+
2.7 ships improved type definitions so it is no longer necessary to install `@vue/runtime-dom` just for Volar template type inference support. All you need now is the following config in `tsconfig.json`:
94+
95+
```json
96+
{
97+
// ...
98+
"vueCompilerOptions": {
99+
"target": 2.7
100+
}
101+
}
102+
```
103+
104+
### Devtools Support
105+
106+
Vue Devtools 6.2.0 has added support for inspecting 2.7 Composition API state, but the extensions may still need a few days to go through review on respective publishing platforms.
84107

85108
### Bug Fixes
86109

0 commit comments

Comments
 (0)