Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit e8ded3e

Browse files
authored
build: upgrade to Angular v9.1, CDK v9.2, and TypeScript 3.8 (#1240)
1 parent 51f7721 commit e8ded3e

File tree

5 files changed

+319
-181
lines changed

5 files changed

+319
-181
lines changed

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828
"postinstall": "ngcc --properties es2015 browser module main --no-async --create-ivy-entry-points"
2929
},
3030
"version": "9.0.0-beta.29",
31-
"requiredAngularVersion": ">=9.0.0-rc.11",
31+
"requiredAngularVersion": ">=9.1.5",
3232
"dependencies": {
33-
"@angular/cdk": "^9.0.0-rc.8",
34-
"@angular/common": "^9.0.0-rc.11",
35-
"@angular/compiler": "^9.0.0-rc.11",
36-
"@angular/core": "^9.0.0-rc.11",
37-
"@angular/platform-browser": "^9.0.0-rc.11",
33+
"@angular/cdk": "^9.2.2",
34+
"@angular/common": "^9.1.5",
35+
"@angular/compiler": "^9.1.5",
36+
"@angular/core": "^9.1.5",
37+
"@angular/platform-browser": "^9.1.5",
3838
"core-js": "^2.5.7",
3939
"karma-parallel": "^0.3.1",
4040
"rxjs": "^6.5.1",
@@ -44,13 +44,13 @@
4444
"zone.js": "~0.10.2"
4545
},
4646
"devDependencies": {
47-
"@angular/animations": "^9.0.0-rc.11",
48-
"@angular/compiler-cli": "^9.0.0-rc.11",
49-
"@angular/forms": "^9.0.0-rc.11",
50-
"@angular/material": "^9.0.0-rc.8",
51-
"@angular/platform-browser-dynamic": "^9.0.0-rc.11",
52-
"@angular/platform-server": "^9.0.0-rc.11",
53-
"@angular/router": "^9.0.0-rc.11",
47+
"@angular/animations": "^9.1.5",
48+
"@angular/compiler-cli": "^9.1.5",
49+
"@angular/forms": "^9.1.5",
50+
"@angular/material": "^9.2.2",
51+
"@angular/platform-browser-dynamic": "^9.1.5",
52+
"@angular/platform-server": "^9.1.5",
53+
"@angular/router": "^9.1.5",
5454
"@firebase/app-types": "^0.3.2",
5555
"@types/chalk": "^0.4.31",
5656
"@types/fs-extra": "^4.0.5",
@@ -120,7 +120,7 @@
120120
"ts-node": "^3.0.4",
121121
"tsconfig-paths": "^2.3.0",
122122
"tslint": "^5.11.0",
123-
"typescript": "~3.7.5",
123+
"typescript": "~3.8.3",
124124
"uglify-js": "^2.8.14"
125125
},
126126
"// Gulp": "Overwrite graceful-fs to a version that does not rely on the 'natives' package. This fixes gulp for >= 10.13, more information: angular/angular#28213",

src/lib/core/match-media/mock/mock-match-media.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export class MockMediaQueryList implements MediaQueryList {
192192
this._isActive = true;
193193
this._listeners.forEach((callback) => {
194194
const cb: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) = callback!;
195-
cb.call(null, this);
195+
cb.call(this, {matches: this.matches, media: this.media} as MediaQueryListEvent);
196196
});
197197
}
198198
return this;
@@ -204,7 +204,7 @@ export class MockMediaQueryList implements MediaQueryList {
204204
this._isActive = false;
205205
this._listeners.forEach((callback) => {
206206
const cb: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) = callback!;
207-
cb.call(null, this);
207+
cb.call(this, {matches: this.matches, media: this.media} as MediaQueryListEvent);
208208
});
209209
}
210210
return this;
@@ -217,7 +217,7 @@ export class MockMediaQueryList implements MediaQueryList {
217217
}
218218
if (this._isActive) {
219219
const cb: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) = listener!;
220-
cb.call(null, this);
220+
cb.call(this, {matches: this.matches, media: this.media} as MediaQueryListEvent);
221221
}
222222
}
223223

src/lib/server/server-match-media.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class ServerMediaQueryList implements MediaQueryList {
4848
this._isActive = true;
4949
this._listeners.forEach((callback) => {
5050
const cb: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) = callback!;
51-
cb.call(null, this);
51+
cb.call(this, {matches: this.matches, media: this.media} as MediaQueryListEvent);
5252
});
5353
}
5454
return this;
@@ -60,7 +60,7 @@ export class ServerMediaQueryList implements MediaQueryList {
6060
this._isActive = false;
6161
this._listeners.forEach((callback) => {
6262
const cb: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) = callback!;
63-
cb.call(null, this);
63+
cb.call(this, {matches: this.matches, media: this.media} as MediaQueryListEvent);
6464
});
6565
}
6666
return this;
@@ -73,7 +73,7 @@ export class ServerMediaQueryList implements MediaQueryList {
7373
}
7474
if (this._isActive) {
7575
const cb: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) = listener!;
76-
cb.call(null, this);
76+
cb.call(this, {matches: this.matches, media: this.media} as MediaQueryListEvent);
7777
}
7878
}
7979

src/lib/tsconfig-build.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"noImplicitAny": true,
1414
"noImplicitThis": true,
1515
"importHelpers": true,
16+
"strictBindCallApply": true,
1617
"newLine": "lf",
1718
"module": "es2015",
1819
"moduleResolution": "node",

0 commit comments

Comments
 (0)