Skip to content

Commit 5a155d3

Browse files
committed
feat!: drop support of vue 2, webpack 4, node 16, node 18 (#894)
* feat!: drop vue 2 * feat!: drop node 16 * fix * docs: fix * chore: add changesets * feat!: drop node 18 * ci: drop node 18 * chore: update lib version * cleanup
1 parent c244762 commit 5a155d3

File tree

185 files changed

+142
-2615
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

185 files changed

+142
-2615
lines changed

.github/renovate.json5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
extends: ['github>sxzz/renovate-config'],
44
packageRules: [
55
{
6-
matchPackageNames: ['vue', 'vue2'],
6+
matchPackageNames: ['vue'],
77
matchUpdateTypes: ['major'],
88
enabled: false,
99
},

.github/workflows/unit-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
strategy:
5151
matrix:
5252
os: [ubuntu-latest, windows-latest]
53-
node-version: [18, 20, 22]
53+
node-version: [20, 22]
5454
fail-fast: false
5555

5656
runs-on: ${{ matrix.os }}

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313
"explorer.fileNesting.patterns": {
1414
"index.ts": "rollup.ts, vite.ts, webpack.ts, esbuild.ts, rspack.ts, rolldown.ts",
15-
"macros.d.ts": "macros*.d.ts, vue2-macros*.d.ts"
15+
"macros.d.ts": "macros*.d.ts"
1616
},
1717
"exportall.config.folderListener": [
1818
"/packages/api/src/vue",

docs/guide/bundler-integration.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,7 @@ export default defineConfig({
166166

167167
## TypeScript Support
168168

169-
::: code-group
170-
171-
```json {0} [Vue 3]
169+
```json {0}
172170
// tsconfig.json
173171
{
174172
"compilerOptions": {
@@ -178,18 +176,6 @@ export default defineConfig({
178176
}
179177
```
180178

181-
```json {0} [Vue 2]
182-
// tsconfig.json
183-
{
184-
"compilerOptions": {
185-
// ...
186-
"types": ["unplugin-vue-macros/vue2-macros-global" /* ... */]
187-
}
188-
}
189-
```
190-
191-
:::
192-
193179
## Volar Support
194180

195181
For detailed configuration, please refer to the description of the specific macro.

docs/guide/configurations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default defineConfig({
3737

3838
/** Defaults to true */
3939
defineModels: {
40-
unified: true,
40+
// ...
4141
},
4242

4343
// Enable features

docs/guide/getting-started.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ We assume you are already familiar with the basic usages of Vue before you conti
1111

1212
## Requirements
1313

14-
- Node.js `>= v16.14.0`.
14+
- Node.js `>= v20.18.0`.
1515
- Vue `>= v2.7` or Vue `>= v3.0`.
1616
- Some features need Vue `>= v3.2.25`.
1717
- VSCode extension [Vue - Official](https://marketplace.visualstudio.com/items?itemName=Vue.volar) and `vue-tsc` are <code>v{{ version }}</code>
@@ -71,18 +71,15 @@ You will be presented with prompts for several optional experimental features.
7171

7272
## Templates
7373

74-
- [Vite + Vue 3](https://github.com/vue-macros/vite)
75-
- [Vite + Vue 2](https://github.com/vue-macros/vue-macros/tree/main/playground/vue2)
76-
- [Nuxt 3 + Vue 3](https://github.com/vue-macros/nuxt)
77-
- [Rsbuild + Vue 3](https://github.com/vue-macros/vue3-rsbuild)
78-
- [Vue CLI + Vue 2](https://github.com/vue-macros/vue2-vue-cli)
79-
- [Rspack + Vue 2](https://github.com/vue-macros/vue2-rspack)
74+
- [Vite](https://github.com/vue-macros/vite)
75+
- [Nuxt](https://github.com/vue-macros/nuxt)
76+
- [Rsbuild](https://github.com/vue-macros/vue3-rsbuild)
8077

8178
🌟 More templates are welcome!
8279

8380
## Nuxt Integration
8481

85-
If you're using [Nuxt 3](https://nuxt.com/), read the [Nuxt Integration](./nuxt-integration.md).
82+
If you're using [Nuxt](https://nuxt.com/), read the [Nuxt Integration](./nuxt-integration.md).
8683

8784
## Bundler Integrations
8885

docs/zh-CN/guide/bundler-integration.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,7 @@ export default defineConfig({
166166

167167
## TypeScript 支持
168168

169-
::: code-group
170-
171-
```json {0} [Vue 3]
169+
```json {0}
172170
// tsconfig.json
173171
{
174172
"compilerOptions": {
@@ -178,18 +176,6 @@ export default defineConfig({
178176
}
179177
```
180178

181-
```json {0} [Vue 2]
182-
// tsconfig.json
183-
{
184-
"compilerOptions": {
185-
// ...
186-
"types": ["unplugin-vue-macros/vue2-macros-global" /* ... */]
187-
}
188-
}
189-
```
190-
191-
:::
192-
193179
## Volar 支持
194180

195181
详细配置请参阅具体宏的描述。

docs/zh-CN/guide/configurations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default defineConfig({
3838

3939
/** 默认 true */
4040
defineModels: {
41-
unified: true,
41+
// ...
4242
},
4343

4444
// 开启功能

docs/zh-CN/guide/getting-started.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Vue Macros 是一个实现 Vue 非官方提案和想法的库,探索并扩展
1010

1111
## 要求
1212

13-
- Node.js `>= v16.14.0`
13+
- Node.js `>= v20.18.0`
1414
- Vue `>= v2.7` 或 Vue `>= v3.0`
1515
- 某些功能需要 Vue `>= v3.2.25`
1616
- VSCode 扩展 [Vue - Official](https://marketplace.visualstudio.com/items?itemName=Vue.volar)`vue-tsc` 为 <code>v{{ version }}</code>
@@ -70,18 +70,15 @@ vue-macros init
7070

7171
## 模板
7272

73-
- [Vite + Vue 3](https://github.com/vue-macros/vite)
74-
- [Vite + Vue 2](https://github.com/vue-macros/vue-macros/tree/main/playground/vue2)
75-
- [Nuxt 3 + Vue 3](https://github.com/vue-macros/nuxt)
76-
- [Rsbuild + Vue 3](https://github.com/vue-macros/vue3-rsbuild)
77-
- [Vue CLI + Vue 2](https://github.com/vue-macros/vue2-vue-cli)
78-
- [Rspack + Vue 2](https://github.com/vue-macros/vue2-rspack)
73+
- [Vite](https://github.com/vue-macros/vite)
74+
- [Nuxt](https://github.com/vue-macros/nuxt)
75+
- [Rsbuild](https://github.com/vue-macros/vue3-rsbuild)
7976

8077
🌟 欢迎更多模板!
8178

8279
## Nuxt 集成
8380

84-
如果你使用 [Nuxt 3](https://nuxt.com/),请阅读 [Nuxt 集成](./nuxt-integration.md)
81+
如果你使用 [Nuxt](https://nuxt.com/),请阅读 [Nuxt 集成](./nuxt-integration.md)
8582

8683
## 构建工具集成
8784

eslint.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default sxzz([
66
vueMacros,
77
{
88
name: 'global-ignores',
9-
ignores: ['playground/vue2/src', 'playground/nuxt', 'playground/astro'],
9+
ignores: ['playground/nuxt', 'playground/astro'],
1010
},
1111
{
1212
name: 'global-rules',

0 commit comments

Comments
 (0)