Skip to content

Commit 237e24e

Browse files
authored
Merge pull request microsoft#882 from Microsoft/ianc/deprecating-node6
Deprecating Node 6.
2 parents a604474 + c911455 commit 237e24e

23 files changed

Lines changed: 356 additions & 1239 deletions

‎.travis.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
language: node_js
22
node_js:
33
- '8.9.4'
4+
- '10.12.0'
45
script:
56
- set -e
67

‎apps/rush-lib/package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
"glob": "~7.0.5",
3535
"glob-escape": "~0.0.1",
3636
"https-proxy-agent": "~2.2.1",
37-
"inquirer": "~1.2.1",
37+
"@types/inquirer": "0.0.43",
38+
"inquirer": "~6.2.0",
3839
"js-yaml": "~3.9.1",
3940
"jju": "~1.3.0",
4041
"lodash": "~4.17.5",

‎apps/rush-lib/src/cli/actions/ChangeAction.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,8 @@ export class ChangeAction extends BaseRushAction {
406406
}
407407
}
408408
])
409-
.then((answers) => {
410-
return answers.email;
409+
.then(({ email }) => {
410+
return email;
411411
});
412412
}
413413

‎apps/rush-lib/src/logic/InstallManager.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ export class InstallManager {
554554

555555
// compare the extracted package.json with the one we are about to write
556556
const oldBuffer: Buffer = FileSystem.readFileToBuffer(tempPackageJsonFilename);
557-
const newBuffer: Buffer = new Buffer(JsonFile.stringify(tempPackageJson));
557+
const newBuffer: Buffer = Buffer.from(JsonFile.stringify(tempPackageJson));
558558

559559
if (Buffer.compare(oldBuffer, newBuffer) === 0) {
560560
shouldOverwrite = false;

‎apps/rush-lib/typings/inquirer/inquirer.d.ts‎

Lines changed: 0 additions & 298 deletions
This file was deleted.

‎apps/rush-lib/typings/tsd.d.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
/// <reference path="rimraf/rimraf.d.ts" />
77
/// <reference path="builtins/builtins.d.ts" />
88
/// <reference path="glob-escape/glob-escape.d.ts" />
9-
/// <reference path="inquirer/inquirer.d.ts" />
109
/// <reference path="npm-package-arg/npm-package-arg.d.ts" />
1110
/// <reference path="read-package-tree/read-package-tree.d.ts" />
1211
/// <reference path="strict-uri-encode/strict-uri-encode.d.ts" />
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@microsoft/gulp-core-build",
5+
"comment": "Remove use of a deprecated Buffer API.",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@microsoft/gulp-core-build",
10+
"email": "iclanton@users.noreply.github.com"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@microsoft/node-core-library",
5+
"comment": "Remove use of a deprecated Buffer API.",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@microsoft/node-core-library",
10+
"email": "iclanton@users.noreply.github.com"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "Remove use of a deprecated Buffer API.",
5+
"packageName": "@microsoft/rush",
6+
"type": "none"
7+
}
8+
],
9+
"packageName": "@microsoft/rush",
10+
"email": "iclanton@users.noreply.github.com"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "Fix an issue with \"rush change\" on NodeJS 10.",
5+
"packageName": "@microsoft/rush",
6+
"type": "none"
7+
}
8+
],
9+
"packageName": "@microsoft/rush",
10+
"email": "iclanton@users.noreply.github.com"
11+
}

0 commit comments

Comments
 (0)