chore!: set engines to minimum Node.js v14.17.0

BREAKING CHANGE: Appium now supports version range `^14.17.0 || ^16.13.0 || >=18.0.0`
This commit is contained in:
Christopher Hiller
2022-11-21 12:52:07 -08:00
parent 19b0684d76
commit a1dbe6c43e
22 changed files with 27 additions and 25 deletions

View File

@@ -136,7 +136,7 @@
"yaml-js": "0.3.1"
},
"engines": {
"node": ">=14",
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
"npm": ">=8"
},
"publishConfig": {

View File

@@ -100,7 +100,7 @@
"yaml": "2.1.3"
},
"engines": {
"node": ">=14",
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
"npm": ">=8"
},
"publishConfig": {

View File

@@ -131,6 +131,8 @@ describe('Config', function () {
'v10.1.0',
'v11.0.0',
'v12.0.0',
'v14.0.0',
'v16.0.0',
];
for (const version of unsupportedVersions) {
it(`should fail if node is ${version}`, function () {
@@ -142,14 +144,14 @@ describe('Config', function () {
});
describe('supported nodes', function () {
it('should succeed if node is 14+', function () {
it('should succeed if node is 14.17+', function () {
// @ts-expect-error
process.version = 'v14.0.0';
process.version = 'v14.17.0';
checkNodeOk.should.not.throw();
});
it('should succeed if node is 16+', function () {
it('should succeed if node is 16.13+', function () {
// @ts-expect-error
process.version = 'v16.0.0';
process.version = 'v16.13.0';
checkNodeOk.should.not.throw();
});
it('should succeed if node is 18+', function () {

View File

@@ -71,7 +71,7 @@
"validate.js": "0.13.1"
},
"engines": {
"node": ">=14",
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
"npm": ">=8"
},
"publishConfig": {

View File

@@ -36,7 +36,7 @@
"@appium/support": "^2.61.1"
},
"engines": {
"node": ">=14",
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
"npm": ">=8"
},
"gitHead": "5c7af8ee73078018e4ec52fccf19fe3f77249d72",

View File

@@ -62,7 +62,7 @@
"yargs": "17.6.2"
},
"engines": {
"node": ">=14",
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
"npm": ">=8"
},
"publishConfig": {

View File

@@ -52,7 +52,7 @@
"teen_process": "2.0.2"
},
"engines": {
"node": ">=14",
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
"npm": ">=8"
},
"publishConfig": {

View File

@@ -60,7 +60,7 @@
"mocha": "*"
},
"engines": {
"node": ">=14",
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
"npm": ">=8"
},
"publishConfig": {

View File

@@ -38,7 +38,7 @@
"eslint-plugin-promise": "^6.0.0"
},
"engines": {
"node": ">=14",
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
"npm": ">=8"
},
"publishConfig": {

View File

@@ -59,7 +59,7 @@
},
"gitHead": "5c7af8ee73078018e4ec52fccf19fe3f77249d72",
"engines": {
"node": ">=14",
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
"npm": ">=8"
}
}

View File

@@ -59,7 +59,7 @@
"appium": "^2.0.0-beta.35"
},
"engines": {
"node": ">=14",
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
"npm": ">=8"
},
"publishConfig": {

View File

@@ -44,7 +44,7 @@
"appium": "^2.0.0-beta.35"
},
"engines": {
"node": ">=14",
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
"npm": ">=8"
},
"appium": {

View File

@@ -97,7 +97,7 @@
"gulp": "^4.0.2"
},
"engines": {
"node": ">=14",
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
"npm": ">=8"
},
"publishConfig": {

View File

@@ -55,7 +55,7 @@
"gitHead": "5c7af8ee73078018e4ec52fccf19fe3f77249d72",
"homepage": "https://appium.io",
"engines": {
"node": ">=14",
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
"npm": ">=8"
}
}

View File

@@ -52,7 +52,7 @@
"source-map-support": "0.5.21"
},
"engines": {
"node": ">=14",
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
"npm": ">=8"
},
"publishConfig": {

View File

@@ -55,7 +55,7 @@
"mocha": "*"
},
"engines": {
"node": ">=14",
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
"npm": ">=8"
},
"publishConfig": {

View File

@@ -38,7 +38,7 @@
"appium": "^2.0.0-beta.35"
},
"engines": {
"node": ">=14",
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
"npm": ">=8"
},
"appium": {

View File

@@ -45,7 +45,7 @@
"source-map-support": "0.5.21"
},
"engines": {
"node": ">=14",
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
"npm": ">=8"
},
"publishConfig": {

View File

@@ -103,7 +103,7 @@
"yauzl": "2.10.0"
},
"engines": {
"node": ">=14",
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
"npm": ">=8"
},
"publishConfig": {

View File

@@ -57,7 +57,7 @@
"source-map-support": "0.5.21"
},
"engines": {
"node": ">=14",
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
"npm": ">=8"
},
"publishConfig": {

View File

@@ -41,7 +41,7 @@
"type-fest": "3.3.0"
},
"engines": {
"node": ">=14",
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
"npm": ">=8"
},
"publishConfig": {

View File

@@ -54,7 +54,7 @@
},
"gitHead": "5c7af8ee73078018e4ec52fccf19fe3f77249d72",
"engines": {
"node": ">=14",
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
"npm": ">=8"
}
}