chore: bump Node.js v18 (#11439)

This commit is contained in:
neverland 2022-12-31 20:19:11 +08:00 committed by GitHub
parent 254b77b1a0
commit 65d6a22f03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 34 additions and 38 deletions

View File

@ -22,7 +22,7 @@ jobs:
- uses: actions/setup-node@v2 - uses: actions/setup-node@v2
with: with:
node-version: '16' node-version: '18'
cache: 'pnpm' cache: 'pnpm'
- name: Install dependencies - name: Install dependencies

View File

@ -22,7 +22,7 @@ jobs:
- uses: actions/setup-node@v2 - uses: actions/setup-node@v2
with: with:
node-version: '16' node-version: '18'
cache: 'pnpm' cache: 'pnpm'
- name: Install dependencies - name: Install dependencies
@ -41,7 +41,7 @@ jobs:
- uses: actions/setup-node@v2 - uses: actions/setup-node@v2
with: with:
node-version: '16' node-version: '18'
cache: 'pnpm' cache: 'pnpm'
- name: Install dependencies - name: Install dependencies
@ -65,7 +65,7 @@ jobs:
- uses: actions/setup-node@v2 - uses: actions/setup-node@v2
with: with:
node-version: '16' node-version: '18'
cache: 'pnpm' cache: 'pnpm'
- name: Install dependencies - name: Install dependencies

2
.nvmrc
View File

@ -1 +1 @@
lts/Gallium lts/Hydrogen

View File

@ -17,7 +17,7 @@
"engines": { "engines": {
"pnpm": ">= 7.0.0" "pnpm": ">= 7.0.0"
}, },
"packageManager": "pnpm@7.17.1", "packageManager": "pnpm@7.20.0",
"devDependencies": { "devDependencies": {
"@vant/cli": "workspace:*", "@vant/cli": "workspace:*",
"@vant/eslint-config": "workspace:*", "@vant/eslint-config": "workspace:*",

View File

@ -51,7 +51,7 @@
"vue": "^3.0.0" "vue": "^3.0.0"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^16.11.56", "@types/node": "^18.11.18",
"@types/jest": "^29.1.1", "@types/jest": "^29.1.1",
"@vant/area-data": "workspace:*", "@vant/area-data": "workspace:*",
"@vant/cli": "workspace:*", "@vant/cli": "workspace:*",

View File

@ -95,7 +95,7 @@ export function formatDataForCascade({
}); });
} }
const options = Array.from(provinceMap.values()) as PickerOption[]; const options = Array.from(provinceMap.values());
if (placeholder.length) { if (placeholder.length) {
const county = showCounty ? [makeOption(placeholder[2])] : undefined; const county = showCounty ? [makeOption(placeholder[2])] : undefined;

56
pnpm-lock.yaml generated
View File

@ -44,7 +44,7 @@ importers:
packages/vant: packages/vant:
specifiers: specifiers:
'@types/jest': ^29.1.1 '@types/jest': ^29.1.1
'@types/node': ^16.11.56 '@types/node': ^18.11.18
'@vant/area-data': workspace:* '@vant/area-data': workspace:*
'@vant/cli': workspace:* '@vant/cli': workspace:*
'@vant/eslint-config': workspace:* '@vant/eslint-config': workspace:*
@ -61,7 +61,7 @@ importers:
'@vant/use': link:../vant-use '@vant/use': link:../vant-use
devDependencies: devDependencies:
'@types/jest': 29.2.3 '@types/jest': 29.2.3
'@types/node': 16.18.3 '@types/node': 18.11.18
'@vant/area-data': link:../vant-area-data '@vant/area-data': link:../vant-area-data
'@vant/cli': link:../vant-cli '@vant/cli': link:../vant-cli
'@vant/eslint-config': link:../vant-eslint-config '@vant/eslint-config': link:../vant-eslint-config
@ -911,7 +911,7 @@ packages:
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
dependencies: dependencies:
'@jest/types': 29.3.1 '@jest/types': 29.3.1
'@types/node': 18.11.9 '@types/node': 18.11.18
chalk: 4.1.2 chalk: 4.1.2
jest-message-util: 29.3.1 jest-message-util: 29.3.1
jest-util: 29.3.1 jest-util: 29.3.1
@ -932,14 +932,14 @@ packages:
'@jest/test-result': 29.3.1 '@jest/test-result': 29.3.1
'@jest/transform': 29.3.1 '@jest/transform': 29.3.1
'@jest/types': 29.3.1 '@jest/types': 29.3.1
'@types/node': 18.11.9 '@types/node': 18.11.18
ansi-escapes: 4.3.2 ansi-escapes: 4.3.2
chalk: 4.1.2 chalk: 4.1.2
ci-info: 3.6.1 ci-info: 3.6.1
exit: 0.1.2 exit: 0.1.2
graceful-fs: 4.2.10 graceful-fs: 4.2.10
jest-changed-files: 29.2.0 jest-changed-files: 29.2.0
jest-config: 29.3.1_@types+node@18.11.9 jest-config: 29.3.1_@types+node@18.11.18
jest-haste-map: 29.3.1 jest-haste-map: 29.3.1
jest-message-util: 29.3.1 jest-message-util: 29.3.1
jest-regex-util: 29.2.0 jest-regex-util: 29.2.0
@ -966,7 +966,7 @@ packages:
dependencies: dependencies:
'@jest/fake-timers': 29.3.1 '@jest/fake-timers': 29.3.1
'@jest/types': 29.3.1 '@jest/types': 29.3.1
'@types/node': 18.11.9 '@types/node': 18.11.18
jest-mock: 29.3.1 jest-mock: 29.3.1
dev: false dev: false
@ -992,7 +992,7 @@ packages:
dependencies: dependencies:
'@jest/types': 29.3.1 '@jest/types': 29.3.1
'@sinonjs/fake-timers': 9.1.2 '@sinonjs/fake-timers': 9.1.2
'@types/node': 18.11.9 '@types/node': 18.11.18
jest-message-util: 29.3.1 jest-message-util: 29.3.1
jest-mock: 29.3.1 jest-mock: 29.3.1
jest-util: 29.3.1 jest-util: 29.3.1
@ -1025,7 +1025,7 @@ packages:
'@jest/transform': 29.3.1 '@jest/transform': 29.3.1
'@jest/types': 29.3.1 '@jest/types': 29.3.1
'@jridgewell/trace-mapping': 0.3.17 '@jridgewell/trace-mapping': 0.3.17
'@types/node': 18.11.9 '@types/node': 18.11.18
chalk: 4.1.2 chalk: 4.1.2
collect-v8-coverage: 1.0.1 collect-v8-coverage: 1.0.1
exit: 0.1.2 exit: 0.1.2
@ -1112,7 +1112,7 @@ packages:
'@jest/schemas': 29.0.0 '@jest/schemas': 29.0.0
'@types/istanbul-lib-coverage': 2.0.4 '@types/istanbul-lib-coverage': 2.0.4
'@types/istanbul-reports': 3.0.1 '@types/istanbul-reports': 3.0.1
'@types/node': 18.11.9 '@types/node': 18.11.18
'@types/yargs': 17.0.13 '@types/yargs': 17.0.13
chalk: 4.1.2 chalk: 4.1.2
@ -1382,13 +1382,13 @@ packages:
/@types/fs-extra/9.0.13: /@types/fs-extra/9.0.13:
resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==} resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==}
dependencies: dependencies:
'@types/node': 18.11.9 '@types/node': 18.11.18
dev: true dev: true
/@types/graceful-fs/4.1.5: /@types/graceful-fs/4.1.5:
resolution: {integrity: sha512-anKkLmZZ+xm4p8JWBf4hElkM4XR+EZeA2M9BAkkTldmcyDY4mbdIJnRghDJH3Ov5ooY7/UAoENtmdMSkaAd7Cw==} resolution: {integrity: sha512-anKkLmZZ+xm4p8JWBf4hElkM4XR+EZeA2M9BAkkTldmcyDY4mbdIJnRghDJH3Ov5ooY7/UAoENtmdMSkaAd7Cw==}
dependencies: dependencies:
'@types/node': 18.11.9 '@types/node': 18.11.18
dev: false dev: false
/@types/http-cache-semantics/4.0.1: /@types/http-cache-semantics/4.0.1:
@ -1416,7 +1416,7 @@ packages:
/@types/jsdom/20.0.1: /@types/jsdom/20.0.1:
resolution: {integrity: sha512-d0r18sZPmMQr1eG35u12FZfhIXNrnsPU/g5wvRKCUf/tOGilKKwYMYGqh33BNR6ba+2gkHw1EUiHoN3mn7E5IQ==} resolution: {integrity: sha512-d0r18sZPmMQr1eG35u12FZfhIXNrnsPU/g5wvRKCUf/tOGilKKwYMYGqh33BNR6ba+2gkHw1EUiHoN3mn7E5IQ==}
dependencies: dependencies:
'@types/node': 18.11.9 '@types/node': 18.11.18
'@types/tough-cookie': 4.0.2 '@types/tough-cookie': 4.0.2
parse5: 7.1.1 parse5: 7.1.1
dev: false dev: false
@ -1453,12 +1453,8 @@ packages:
resolution: {integrity: sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==} resolution: {integrity: sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==}
dev: false dev: false
/@types/node/16.18.3: /@types/node/18.11.18:
resolution: {integrity: sha512-jh6m0QUhIRcZpNv7Z/rpN+ZWXOicUUQbSoWks7Htkbb9IjFQj4kzcX/xFCkjstCj5flMsN8FiSvt+q+Tcs4Llg==} resolution: {integrity: sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA==}
dev: true
/@types/node/18.11.9:
resolution: {integrity: sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg==}
/@types/normalize-package-data/2.4.1: /@types/normalize-package-data/2.4.1:
resolution: {integrity: sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==} resolution: {integrity: sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==}
@ -4147,7 +4143,7 @@ packages:
'@jest/expect': 29.3.1 '@jest/expect': 29.3.1
'@jest/test-result': 29.3.1 '@jest/test-result': 29.3.1
'@jest/types': 29.3.1 '@jest/types': 29.3.1
'@types/node': 18.11.9 '@types/node': 18.11.18
chalk: 4.1.2 chalk: 4.1.2
co: 4.6.0 co: 4.6.0
dedent: 0.7.0 dedent: 0.7.0
@ -4232,7 +4228,7 @@ packages:
- supports-color - supports-color
dev: false dev: false
/jest-config/29.3.1_@types+node@18.11.9: /jest-config/29.3.1_@types+node@18.11.18:
resolution: {integrity: sha512-y0tFHdj2WnTEhxmGUK1T7fgLen7YK4RtfvpLFBXfQkh2eMJAQq24Vx9472lvn5wg0MAO6B+iPfJfzdR9hJYalg==} resolution: {integrity: sha512-y0tFHdj2WnTEhxmGUK1T7fgLen7YK4RtfvpLFBXfQkh2eMJAQq24Vx9472lvn5wg0MAO6B+iPfJfzdR9hJYalg==}
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
peerDependencies: peerDependencies:
@ -4247,7 +4243,7 @@ packages:
'@babel/core': 7.20.7 '@babel/core': 7.20.7
'@jest/test-sequencer': 29.3.1 '@jest/test-sequencer': 29.3.1
'@jest/types': 29.3.1 '@jest/types': 29.3.1
'@types/node': 18.11.9 '@types/node': 18.11.18
babel-jest: 29.3.1_@babel+core@7.20.7 babel-jest: 29.3.1_@babel+core@7.20.7
chalk: 4.1.2 chalk: 4.1.2
ci-info: 3.6.1 ci-info: 3.6.1
@ -4311,7 +4307,7 @@ packages:
'@jest/fake-timers': 29.3.1 '@jest/fake-timers': 29.3.1
'@jest/types': 29.3.1 '@jest/types': 29.3.1
'@types/jsdom': 20.0.1 '@types/jsdom': 20.0.1
'@types/node': 18.11.9 '@types/node': 18.11.18
jest-mock: 29.3.1 jest-mock: 29.3.1
jest-util: 29.3.1 jest-util: 29.3.1
jsdom: 20.0.2 jsdom: 20.0.2
@ -4328,7 +4324,7 @@ packages:
'@jest/environment': 29.3.1 '@jest/environment': 29.3.1
'@jest/fake-timers': 29.3.1 '@jest/fake-timers': 29.3.1
'@jest/types': 29.3.1 '@jest/types': 29.3.1
'@types/node': 18.11.9 '@types/node': 18.11.18
jest-mock: 29.3.1 jest-mock: 29.3.1
jest-util: 29.3.1 jest-util: 29.3.1
dev: false dev: false
@ -4343,7 +4339,7 @@ packages:
dependencies: dependencies:
'@jest/types': 29.3.1 '@jest/types': 29.3.1
'@types/graceful-fs': 4.1.5 '@types/graceful-fs': 4.1.5
'@types/node': 18.11.9 '@types/node': 18.11.18
anymatch: 3.1.2 anymatch: 3.1.2
fb-watchman: 2.0.2 fb-watchman: 2.0.2
graceful-fs: 4.2.10 graceful-fs: 4.2.10
@ -4392,7 +4388,7 @@ packages:
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
dependencies: dependencies:
'@jest/types': 29.3.1 '@jest/types': 29.3.1
'@types/node': 18.11.9 '@types/node': 18.11.18
jest-util: 29.3.1 jest-util: 29.3.1
dev: false dev: false
@ -4447,7 +4443,7 @@ packages:
'@jest/test-result': 29.3.1 '@jest/test-result': 29.3.1
'@jest/transform': 29.3.1 '@jest/transform': 29.3.1
'@jest/types': 29.3.1 '@jest/types': 29.3.1
'@types/node': 18.11.9 '@types/node': 18.11.18
chalk: 4.1.2 chalk: 4.1.2
emittery: 0.13.1 emittery: 0.13.1
graceful-fs: 4.2.10 graceful-fs: 4.2.10
@ -4478,7 +4474,7 @@ packages:
'@jest/test-result': 29.3.1 '@jest/test-result': 29.3.1
'@jest/transform': 29.3.1 '@jest/transform': 29.3.1
'@jest/types': 29.3.1 '@jest/types': 29.3.1
'@types/node': 18.11.9 '@types/node': 18.11.18
chalk: 4.1.2 chalk: 4.1.2
cjs-module-lexer: 1.2.2 cjs-module-lexer: 1.2.2
collect-v8-coverage: 1.0.1 collect-v8-coverage: 1.0.1
@ -4540,7 +4536,7 @@ packages:
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
dependencies: dependencies:
'@jest/types': 29.3.1 '@jest/types': 29.3.1
'@types/node': 18.11.9 '@types/node': 18.11.18
chalk: 4.1.2 chalk: 4.1.2
ci-info: 3.6.1 ci-info: 3.6.1
graceful-fs: 4.2.10 graceful-fs: 4.2.10
@ -4564,7 +4560,7 @@ packages:
dependencies: dependencies:
'@jest/test-result': 29.3.1 '@jest/test-result': 29.3.1
'@jest/types': 29.3.1 '@jest/types': 29.3.1
'@types/node': 18.11.9 '@types/node': 18.11.18
ansi-escapes: 4.3.2 ansi-escapes: 4.3.2
chalk: 4.1.2 chalk: 4.1.2
emittery: 0.13.1 emittery: 0.13.1
@ -4576,7 +4572,7 @@ packages:
resolution: {integrity: sha512-lY4AnnmsEWeiXirAIA0c9SDPbuCBq8IYuDVL8PMm0MZ2PEs2yPvRA/J64QBXuZp7CYKrDM/rmNrc9/i3KJQncw==} resolution: {integrity: sha512-lY4AnnmsEWeiXirAIA0c9SDPbuCBq8IYuDVL8PMm0MZ2PEs2yPvRA/J64QBXuZp7CYKrDM/rmNrc9/i3KJQncw==}
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
dependencies: dependencies:
'@types/node': 18.11.9 '@types/node': 18.11.18
jest-util: 29.3.1 jest-util: 29.3.1
merge-stream: 2.0.0 merge-stream: 2.0.0
supports-color: 8.1.1 supports-color: 8.1.1