Skip to content

Commit d527edc

Browse files
committed
chore: drop node18
1 parent e5d3e02 commit d527edc

File tree

13 files changed

+142
-458
lines changed

13 files changed

+142
-458
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ updates:
99
ignore:
1010
- dependency-name: "@types/node"
1111
versions:
12-
- ">= 13.13.a, < 13.14"
12+
- ">= 20, < 21"
1313
- dependency-name: mini-css-extract-plugin
1414
versions:
1515
- 1.3.5

.github/workflows/build-rust-binding.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
node-version: [18.x]
17+
node-version: [20.x]
1818
settings:
1919
- host: macos-13
2020
target: x86_64-apple-darwin
@@ -47,7 +47,7 @@ jobs:
4747
- name: Checkout
4848
uses: actions/checkout@v4
4949
- name: Setup pnpm
50-
uses: pnpm/action-setup@v3.0.0
50+
uses: pnpm/action-setup@v4
5151
with:
5252
version: 10
5353
- name: Setup Node.js ${{ matrix.node-version }}

.github/workflows/nodejs.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
strategy:
3737
fail-fast: false
3838
matrix:
39-
node-version: [18.x, 20.x]
39+
node-version: [20.x]
4040
host: [macos-13, windows-latest, ubuntu-latest]
4141
include:
4242
- host: macos-13
@@ -48,10 +48,10 @@ jobs:
4848
- host: ubuntu-latest
4949
target: x86_64-unknown-linux-musl
5050
exclude:
51-
- node-version: 18.x
52-
host: macos-13
53-
- node-version: 18.x
54-
host: windows-latest
51+
# - node-version: 22.x
52+
# host: macos-13
53+
# - node-version: 22.x
54+
# host: windows-latest
5555
- node-version: 20.x
5656
host: macos-13
5757
- node-version: 20.x
@@ -62,7 +62,7 @@ jobs:
6262
- name: Checkout
6363
uses: actions/checkout@v4
6464
- name: Setup pnpm
65-
uses: pnpm/action-setup@v3.0.0
65+
uses: pnpm/action-setup@v4
6666
with:
6767
version: 10
6868
- name: Setup Node.js ${{ matrix.node-version }}

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ jobs:
8686
- name: Checkout
8787
uses: actions/checkout@v4
8888
- name: Setup pnpm
89-
uses: pnpm/action-setup@v3.0.0
89+
uses: pnpm/action-setup@v4
9090
with:
9191
version: 10
92-
- name: Setup Node 18
92+
- name: Setup Node
9393
uses: actions/setup-node@v4
9494
with:
95-
node-version: 18
95+
node-version: 20
9696
cache: 'pnpm'
9797
registry-url: 'https://registry.npmjs.org' # Don't touch!
9898
- name: Git Identity

.github/workflows/sync-components-types.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,17 @@ jobs:
3434
${{ runner.os }}-
3535
3636
- name: install
37-
uses: pnpm/action-setup@v3.0.0
37+
uses: pnpm/action-setup@v4
3838
with:
3939
version: 10
4040
run_install: |
4141
- recursive: true
4242
args: [--frozen-lockfile, --strict-peer-dependencies]
4343
- args: [--filter @tarojs/components, -D, miniapp-types@latest]
44-
# Note: 当前同步脚本使用 ts-node 与 node20 存在兼容问题,修复后解除版本限制
45-
- name: Setup Node 18
44+
- name: Setup Node
4645
uses: actions/setup-node@v4
4746
with:
48-
node-version: 18
47+
node-version: 20
4948
cache: 'pnpm'
5049
registry-url: 'https://registry.npmjs.org' # Don't touch!
5150

@@ -69,4 +68,3 @@ jobs:
6968
labels: |
7069
A-typings
7170
A-components
72-

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,4 @@ artifacts
8484

8585
# Node Addons
8686
*.node
87+
chrome

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
### 1. 环境准备
1212

13-
> 需要安装 [Node.js 16](https://nodejs.org/en/)(建议安装 `16.20.0` 及以上版本)及 [pnpm 7](https://pnpm.io/zh/installation)
13+
> 需要安装 [Node.js 20](https://nodejs.org/en/)(建议安装 `v20.19.1` 及以上版本)及 [pnpm 10](https://pnpm.io/zh/installation)
1414
1515
首先把 Taro 仓库 fork 一份到自己的 Github,然后从个人仓库把项目 clone 到本地,项目默认是 `main` 分支。
1616

@@ -36,7 +36,7 @@ Taro 由一系列子 npm 包组成,整体项目组织基于 **pnpm workspace**
3636
$ pnpm --filter [package-name] run dev
3737
```
3838

39-
开发过程中,一般会使用 **link** 的方式把需要调试的包软链到一个测试项目中,然后便可进行断点调试。开发者可以根据测试项目的包管理器以及自己的喜好选择使用 [npm link](https://docs.npmjs.com/cli/v7/commands/npm-link)[yarn link](https://yarnpkg.com/cli/link)(推荐)或 [pnpm link](https://pnpm.io/zh/cli/link)
39+
开发过程中,一般会使用 **link** 的方式把需要调试的包软链到一个测试项目中,然后便可进行断点调试。开发者可以根据测试项目的包管理器以及自己的喜好选择使用 [npm link](https://docs.npmjs.com/cli/v11/commands/npm-link)[yarn link](https://yarnpkg.com/cli/link)(推荐)或 [pnpm link](https://pnpm.io/zh/cli/link)
4040

4141
**使用 `yarn link` 的具体示例如下:**
4242

@@ -209,7 +209,7 @@ Cargo workspace 会把编译产物输出到根目录的 `target` 文件夹中。
209209

210210
如对 `@taorjs/helper` 进行集成测试时,会把 `target/wasm32-wasip1/release/swc_plugin_xxx.wasm` 文件的软链到 `packages/taro-helper/swc/swc_plugin_xxx.wasm`
211211

212-
####
212+
####
213213

214214
## Credits
215215

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"@types/inquirer": "^8.2.1",
9696
"@types/jest": "^29.5.0",
9797
"@types/less": "^3.0.2",
98-
"@types/node": "^18",
98+
"@types/node": "^20.5.1",
9999
"@types/postcss-import": "^14.0.0",
100100
"@types/postcss-url": "^10.0.0",
101101
"@types/resolve": "^1.20.6",
@@ -156,8 +156,8 @@
156156
"stylelint-order": "^6.0.4",
157157
"ts-jest": "^29.1.2",
158158
"ts-node": "^10.9.1",
159-
"typescript": "~5.4.5",
160159
"tslib": "^2.6.2",
160+
"typescript": "~5.4.5",
161161
"vitest": "^1.6.0"
162162
},
163163
"pnpm": {

packages/taro-cli/templates/default/package.json.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
"typescript": "^5.4.5",
108108
"tsconfig-paths-webpack-plugin": "^4.1.0"{{/if}},
109109
"postcss": "^8.4.38",
110-
"@types/node": "^18"
110+
"@types/node": "^20"
111111
}{{/if}}{{#if (eq compiler "Vite") }}
112112
"devDependencies": {
113113
"@babel/core": "^7.24.4",

packages/taro-cli/templates/plugin-compile/package.json.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"unzip": "^0.1.11"{{/if}}
3636
},
3737
"devDependencies": {
38-
"@types/node": "^18.15.11"
38+
"@types/node": "^20"
3939
}{{#if (eq pluginType "plugin-template") }},
4040
"resolutions": {
4141
"graceful-fs": "^4.2.11"

0 commit comments

Comments
 (0)