Skip to content

Commit 5a7c129

Browse files
authored
Update engines, @types/node to Node.js v12 (Azure#15996)
1 parent 5b4eac3 commit 5a7c129

File tree

164 files changed

+526
-435
lines changed

Some content is hidden

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

164 files changed

+526
-435
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 170 additions & 170 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/tools/dev-tool/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"@types/fs-extra": "^8.0.0",
6060
"@types/minimist": "~1.2.0",
6161
"@types/mocha": "^7.0.2",
62-
"@types/node": "^8.0.0",
62+
"@types/node": "^12.0.0",
6363
"@types/prettier": "~2.0.1",
6464
"builtin-modules": "~3.1.0",
6565
"chai": "^4.2.0",

common/tools/eslint-plugin-azure-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"@types/glob": "^7.1.1",
8383
"@types/json-schema": "^7.0.6",
8484
"@types/mocha": "^7.0.2",
85-
"@types/node": "^10.12.0",
85+
"@types/node": "^12.0.0",
8686
"@typescript-eslint/eslint-plugin": "~4.19.0",
8787
"@typescript-eslint/experimental-utils": "~4.19.0",
8888
"@typescript-eslint/parser": "~4.19.0",

common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-engine-is-present.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { getRuleMetaData, getVerifiers, stripPath } from "../utils";
1313
* definition of LTS Node versions
1414
* * needs updating as definitions change
1515
*/
16-
const LTS = ">=8.0.0";
16+
const LTS = ">=12.0.0";
1717

1818
//------------------------------------------------------------------------------
1919
// Rule Definition

common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-engine-is-present.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ ruleTester.run("ts-package-json-engine-is-present", rule, {
257257
valid: [
258258
{
259259
// only the fields we care about
260-
code: '{"engines": { "node": ">=8.0.0" }}',
260+
code: '{"engines": { "node": ">=12.0.0" }}',
261261
filename: "package.json"
262262
},
263263
{

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@types/gulp": "^4.0.0",
4242
"@types/js-yaml": "^3.11.2",
4343
"@types/minimist": "^1.2.0",
44-
"@types/node": "^10.10.0",
44+
"@types/node": "^12.0.0",
4545
"@types/nodegit": "^0.22.5",
4646
"@types/yargs": "^11.0.0",
4747
"colors": "^1.3.2",

sdk/agrifood/agrifood-farming-rest/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"LICENSE"
3030
],
3131
"engines": {
32-
"node": ">=8.0.0"
32+
"node": ">=12.0.0"
3333
},
3434
"//metadata": {
3535
"constantPaths": [
@@ -99,7 +99,7 @@
9999
"@microsoft/api-extractor": "7.13.2",
100100
"@types/chai": "^4.1.6",
101101
"@types/mocha": "^7.0.2",
102-
"@types/node": "^8.0.0",
102+
"@types/node": "^12.0.0",
103103
"chai": "^4.2.0",
104104
"cross-env": "^7.0.2",
105105
"dotenv": "^8.2.0",

sdk/anomalydetector/ai-anomaly-detector/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"LICENSE"
4646
],
4747
"engines": {
48-
"node": ">=8.0.0"
48+
"node": ">=12.0.0"
4949
},
5050
"repository": "github:Azure/azure-sdk-for-js",
5151
"keywords": [
@@ -81,7 +81,7 @@
8181
"@rollup/plugin-replace": "^2.2.0",
8282
"@types/chai": "^4.1.6",
8383
"@types/mocha": "^7.0.2",
84-
"@types/node": "^8.0.0",
84+
"@types/node": "^12.0.0",
8585
"chai": "^4.2.0",
8686
"cross-env": "^7.0.2",
8787
"csv-parse": "^4.4.0",

sdk/appconfiguration/app-configuration/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## 1.2.0-beta.3 (Unreleased)
44

55
### Features Added
6+
- With the dropping of support for Node.js versions that are no longer in LTS, the dependency on `@types/node` has been updated to version 12. Read our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
67

78
### Breaking Changes
89

sdk/appconfiguration/app-configuration/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"docs": "typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src"
7070
},
7171
"engines": {
72-
"node": ">=8.0.0"
72+
"node": ">=12.0.0"
7373
},
7474
"sideEffects": false,
7575
"autoPublish": false,
@@ -108,7 +108,7 @@
108108
"@rollup/plugin-replace": "^2.2.0",
109109
"@types/chai": "^4.1.6",
110110
"@types/mocha": "^7.0.2",
111-
"@types/node": "^8.0.0",
111+
"@types/node": "^12.0.0",
112112
"@types/sinon": "^9.0.4",
113113
"assert": "^1.4.1",
114114
"chai": "^4.2.0",

0 commit comments

Comments
 (0)