From a729381c039771eb17ca8aefc010b4d13ec17285 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Sat, 10 Jul 2021 08:21:18 +0200 Subject: [PATCH] fix(@schematics/angular): use stricter semver for `karma-jasmine-html-reporter` This is not the first time, that this package caused a breaking change in a minor version, were it drops support for older `jasmine-core` versions. Related to #21326 (cherry picked from commit 0907b694174d6d684d965baf6cd37b87f49742e8) --- package.json | 2 +- .../angular/workspace/files/package.json.template | 2 +- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 30b31f7f06de..76a0718212c3 100644 --- a/package.json +++ b/package.json @@ -172,7 +172,7 @@ "karma-chrome-launcher": "~3.1.0", "karma-coverage": "~2.0.3", "karma-jasmine": "~4.0.0", - "karma-jasmine-html-reporter": "^1.5.0", + "karma-jasmine-html-reporter": "~1.7.0", "karma-source-map-support": "1.4.0", "less": "4.1.1", "less-loader": "10.0.0", diff --git a/packages/schematics/angular/workspace/files/package.json.template b/packages/schematics/angular/workspace/files/package.json.template index f00193514124..ce5dabad8112 100644 --- a/packages/schematics/angular/workspace/files/package.json.template +++ b/packages/schematics/angular/workspace/files/package.json.template @@ -32,7 +32,7 @@ "karma-chrome-launcher": "~3.1.0", "karma-coverage": "~2.0.3", "karma-jasmine": "~4.0.0", - "karma-jasmine-html-reporter": "^1.5.0",<% } %> + "karma-jasmine-html-reporter": "~1.7.0",<% } %> "typescript": "<%= latestVersions.TypeScript %>" } } diff --git a/yarn.lock b/yarn.lock index 1989e6871ee8..45c9464b945b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6890,10 +6890,10 @@ karma-coverage@~2.0.3: istanbul-reports "^3.0.0" minimatch "^3.0.4" -karma-jasmine-html-reporter@^1.5.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/karma-jasmine-html-reporter/-/karma-jasmine-html-reporter-1.6.0.tgz#586e17025a1b4128e9fba55d5f1e8921bfc3bc1e" - integrity sha512-ELO9yf0cNqpzaNLsfFgXd/wxZVYkE2+ECUwhMHUD4PZ17kcsPsYsVyjquiRqyMn2jkd2sHt0IeMyAyq1MC23Fw== +karma-jasmine-html-reporter@~1.7.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/karma-jasmine-html-reporter/-/karma-jasmine-html-reporter-1.7.0.tgz#52c489a74d760934a1089bfa5ea4a8fcb84cc28b" + integrity sha512-pzum1TL7j90DTE86eFt48/s12hqwQuiD+e5aXx2Dc9wDEn2LfGq6RoAxEZZjFiN0RDSCOnosEKRZWxbQ+iMpQQ== karma-jasmine@~4.0.0: version "4.0.1"