Skip to content

Commit 43c3e5b

Browse files
mgolpetebacondarwin
authored andcommitted
chore(*): update Node.js from 8 to 12, update some dependencies
Node.js 8 ends its support at the end of 2019. Node 12 will be supported until April 2022 which is way past AngularJS end of support. Some dependencies needed to be updated to make them work in Node.js 12.
1 parent 8e941f4 commit 43c3e5b

File tree

5 files changed

+576
-643
lines changed

5 files changed

+576
-643
lines changed

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8
1+
12

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: node_js
22
sudo: false
33
node_js:
4-
- '8'
4+
- '12'
55

66
cache:
77
yarn: true
@@ -27,7 +27,7 @@ env:
2727
- secure: oTBjhnOKhs0qDSKTf7fE4f6DYiNDPycvB7qfSF5QRIbJK/LK/J4UtFwetXuXj79HhUZG9qnoT+5e7lPaiaMlpsIKn9ann7ffqFWN1E8TMtpJF+AGigx3djYElwfgf5nEnFUFhwjFzvbfpZNnxVGgX5YbIZpe/WUbHkP4ffU0Wks=
2828

2929
before_install:
30-
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.10.1
30+
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.21.1
3131
- export PATH="$HOME/.yarn/bin:$PATH"
3232

3333
before_script:

package.json

+17-15
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"url": "https://github.com/angular/angular.js.git"
1010
},
1111
"engines": {
12-
"node": ">=8.12.0",
13-
"yarn": ">=1.10.1",
12+
"node": ">=12.14.1",
13+
"yarn": ">=1.21.1",
1414
"grunt-cli": "^1.2.0"
1515
},
1616
"scripts": {
@@ -22,7 +22,7 @@
2222
"angular-benchpress": "0.x.x",
2323
"benchmark": "1.x.x",
2424
"bootstrap": "3.1.1",
25-
"browserstacktunnel-wrapper": "2.0.0",
25+
"browserstacktunnel-wrapper": "2.0.4",
2626
"canonical-path": "0.0.2",
2727
"changez": "^2.1.1",
2828
"changez-angular": "^2.1.2",
@@ -62,18 +62,18 @@
6262
"jquery": "3.5.1",
6363
"jquery-2.1": "npm:[email protected]",
6464
"jquery-2.2": "npm:[email protected]",
65-
"karma": "^3.1.4",
66-
"karma-browserstack-launcher": "^1.3.0",
67-
"karma-chrome-launcher": "^2.2.0",
68-
"karma-edge-launcher": "^0.4.2",
69-
"karma-firefox-launcher": "^1.1.0",
70-
"karma-ie-launcher": "^1.0.0",
65+
"karma": "4.4.1",
66+
"karma-browserstack-launcher": "1.5.1",
67+
"karma-chrome-launcher": "3.1.0",
68+
"karma-edge-launcher": "0.4.2",
69+
"karma-firefox-launcher": "1.2.0",
70+
"karma-ie-launcher": "1.0.0",
7171
"karma-jasmine": "^1.1.2",
72-
"karma-junit-reporter": "^1.2.0",
73-
"karma-safari-launcher": "^1.0.0",
74-
"karma-sauce-launcher": "^2.0.2",
75-
"karma-script-launcher": "^1.0.0",
76-
"karma-spec-reporter": "^0.0.32",
72+
"karma-junit-reporter": "2.0.1",
73+
"karma-safari-launcher": "1.0.0",
74+
"karma-sauce-launcher": "2.0.2",
75+
"karma-script-launcher": "1.0.0",
76+
"karma-spec-reporter": "0.0.32",
7777
"load-grunt-tasks": "^3.5.0",
7878
"lodash": "~2.4.1",
7979
"log4js": "^0.6.27",
@@ -102,7 +102,9 @@
102102
"resolutions": {
103103
"//1": "`[email protected]` does not work with Node.js 10.x on Windows 10",
104104
"//2": "(E.g. see https://github.com/gulpjs/gulp/issues/2162 and https://github.com/nodejs/node/issues/25132.)",
105-
"natives": "1.1.6"
105+
"natives": "1.1.6",
106+
"//3": "`graceful-fs` needs to be pinned to support gulp 3, on Node v12+",
107+
"graceful-fs": "^4.2.3"
106108
},
107109
"commitplease": {
108110
"style": "angular",

scripts/jenkins/init-node.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ nvm install
88

99
# clean out and install yarn
1010
rm -rf ~/.yarn
11-
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.10.1
11+
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.21.1
1212
export PATH="$HOME/.yarn/bin:$PATH"
1313

1414
# Ensure that we have the local dependencies installed

0 commit comments

Comments
 (0)