Skip to content

Commit b477d32

Browse files
author
Alain BOUDARD
committed
fix: update angular 11
BREAK : mise à jour version majeure
1 parent b78d9fc commit b477d32

17 files changed

+3544
-5961
lines changed

src/angular/angular.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
"optimization": true,
3939
"outputHashing": "all",
4040
"sourceMap": false,
41-
"extractCss": true,
4241
"namedChunks": false,
4342
"aot": true,
4443
"extractLicenses": true,

src/angular/package-lock.json

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

src/angular/package.json

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"ng": "ng",
77
"start": "ng serve --proxy-config proxy.conf.json",
8-
"build": "ng build --prod",
8+
"build": "ng build --configuration production",
99
"buildwatch": "ng build --watch",
1010
"test": "ng test",
1111
"lint": "ng lint --fix",
@@ -16,54 +16,54 @@
1616
},
1717
"private": true,
1818
"dependencies": {
19-
"@angular/animations": "^10.2.5",
20-
"@angular/common": "^10.2.5",
21-
"@angular/compiler": "^10.2.5",
22-
"@angular/core": "^10.2.5",
23-
"@angular/forms": "^10.2.5",
24-
"@angular/localize": "^10.2.5",
25-
"@angular/platform-browser": "^10.2.5",
26-
"@angular/platform-browser-dynamic": "^10.2.5",
27-
"@angular/router": "^10.2.5",
28-
"@fortawesome/angular-fontawesome": "^0.7.0",
19+
"@angular/animations": "^11.2.14",
20+
"@angular/common": "^11.2.14",
21+
"@angular/compiler": "^11.2.14",
22+
"@angular/core": "^11.2.14",
23+
"@angular/forms": "^11.2.14",
24+
"@angular/localize": "^11.2.14",
25+
"@angular/platform-browser": "^11.2.14",
26+
"@angular/platform-browser-dynamic": "^11.2.14",
27+
"@angular/router": "^11.2.14",
28+
"@fortawesome/angular-fontawesome": "^0.8.2",
2929
"@fortawesome/fontawesome-svg-core": "^6.1.0",
3030
"@fortawesome/free-solid-svg-icons": "^6.1.0",
31-
"@ng-bootstrap/ng-bootstrap": "^8.0.4",
32-
"@ngrx/data": "^10.1.2",
33-
"@ngrx/effects": "^10.1.2",
34-
"@ngrx/entity": "^10.1.2",
35-
"@ngrx/store": "^10.1.2",
36-
"@ngrx/store-devtools": "^10.1.2",
31+
"@ng-bootstrap/ng-bootstrap": "^9.1.3",
32+
"@ngrx/data": "^11.1.1",
33+
"@ngrx/effects": "^11.1.1",
34+
"@ngrx/entity": "^11.1.1",
35+
"@ngrx/store": "^11.1.1",
36+
"@ngrx/store-devtools": "^11.1.1",
3737
"bootstrap": "^4.5.0",
3838
"core-js": "^2.6.11",
39-
"ngx-spinner": "^10.0.1",
39+
"ngx-spinner": "^11.0.2",
4040
"ngx-toastr": "^13.2.1",
41-
"rxjs": "^6.5.4",
41+
"rxjs": "^6.6.3",
4242
"rxjs-compat": "^6.5.4",
4343
"tslib": "^2.0.0",
44-
"zone.js": "~0.10.2"
44+
"zone.js": "^0.11.3"
4545
},
4646
"devDependencies": {
47-
"@angular-devkit/build-angular": "~0.1002.4",
48-
"@angular/cli": "~10.2.4",
49-
"@angular/compiler-cli": "^10.2.5",
50-
"@angular/language-service": "^10.2.5",
51-
"@ngrx/schematics": "^9.2.1",
52-
"@types/jasmine": "^2.8.7",
47+
"@angular-devkit/build-angular": "~0.1102.19",
48+
"@angular/cli": "~11.2.19",
49+
"@angular/compiler-cli": "^11.2.14",
50+
"@angular/language-service": "^11.2.14",
51+
"@ngrx/schematics": "^11.1.1",
52+
"@types/jasmine": "~3.6.0",
5353
"@types/jasminewd2": "~2.0.3",
5454
"@types/node": "^12.11.1",
55-
"codelyzer": "^5.1.2",
56-
"jasmine-core": "~3.5.0",
55+
"codelyzer": "^6.0.0",
56+
"jasmine-core": "~3.6.0",
5757
"jasmine-spec-reporter": "~5.0.0",
5858
"json-server": "^0.15.1",
59-
"karma": "~5.0.0",
59+
"karma": "~6.3.17",
6060
"karma-chrome-launcher": "~3.1.0",
6161
"karma-coverage-istanbul-reporter": "~3.0.2",
6262
"karma-jasmine": "~4.0.0",
6363
"karma-jasmine-html-reporter": "^1.5.0",
6464
"protractor": "~7.0.0",
65-
"ts-node": "~4.1.0",
66-
"tslint": "~6.1.0",
65+
"ts-node": "^9.1.1",
66+
"tslint": "^6.1.3",
6767
"typescript": "^4.0.8",
6868
"worker-loader": "^1.1.1"
6969
}

src/angular/src/app/app-routing/app-routing.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const routes: Routes = [
2626
];
2727

2828
@NgModule({
29-
imports: [RouterModule.forRoot(routes, { useHash: true })],
29+
imports: [RouterModule.forRoot(routes, { useHash: true, relativeLinkResolution: 'legacy' })],
3030
exports: [RouterModule]
3131
})
3232
export class AppRoutingModule { }

src/angular/src/app/app.component.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
import { TestBed, async } from '@angular/core/testing';
1+
import { TestBed, waitForAsync } from '@angular/core/testing';
22
import { AppComponent } from './app.component';
33
describe('AppComponent', () => {
4-
beforeEach(async(() => {
4+
beforeEach(waitForAsync(() => {
55
TestBed.configureTestingModule({
66
declarations: [
77
AppComponent
88
],
99
}).compileComponents();
1010
}));
11-
it('should create the app', async(() => {
11+
it('should create the app', waitForAsync(() => {
1212
const fixture = TestBed.createComponent(AppComponent);
1313
const app = fixture.debugElement.componentInstance;
1414
expect(app).toBeTruthy();
1515
}));
16-
it(`should have as title 'app'`, async(() => {
16+
it(`should have as title 'app'`, waitForAsync(() => {
1717
const fixture = TestBed.createComponent(AppComponent);
1818
const app = fixture.debugElement.componentInstance;
1919
expect(app.title).toEqual('app');
2020
}));
21-
it('should render title in a h1 tag', async(() => {
21+
it('should render title in a h1 tag', waitForAsync(() => {
2222
const fixture = TestBed.createComponent(AppComponent);
2323
fixture.detectChanges();
2424
const compiled = fixture.debugElement.nativeElement;

src/angular/src/app/comp/fa-input/fa-input.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
1+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
22

33
import { FaInputComponent } from './fa-input.component';
44

55
describe('FaInputComponent', () => {
66
let component: FaInputComponent;
77
let fixture: ComponentFixture<FaInputComponent>;
88

9-
beforeEach(async(() => {
9+
beforeEach(waitForAsync(() => {
1010
TestBed.configureTestingModule({
1111
declarations: [ FaInputComponent ]
1212
})

src/angular/src/app/comp/footer/footer.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
1+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
22

33
import { FooterComponent } from './footer.component';
44

55
describe('FooterComponent', () => {
66
let component: FooterComponent;
77
let fixture: ComponentFixture<FooterComponent>;
88

9-
beforeEach(async(() => {
9+
beforeEach(waitForAsync(() => {
1010
TestBed.configureTestingModule({
1111
declarations: [ FooterComponent ]
1212
})

src/angular/src/app/comp/hello/hello.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
1+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
22

33
import { HelloComponent } from './hello.component';
44

55
describe('HelloComponent', () => {
66
let component: HelloComponent;
77
let fixture: ComponentFixture<HelloComponent>;
88

9-
beforeEach(async(() => {
9+
beforeEach(waitForAsync(() => {
1010
TestBed.configureTestingModule({
1111
declarations: [ HelloComponent ]
1212
})

src/angular/src/app/comp/navbar/navbar.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
1+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
22

33
import { NavbarComponent } from './navbar.component';
44

55
describe('NavbarComponent', () => {
66
let component: NavbarComponent;
77
let fixture: ComponentFixture<NavbarComponent>;
88

9-
beforeEach(async(() => {
9+
beforeEach(waitForAsync(() => {
1010
TestBed.configureTestingModule({
1111
declarations: [ NavbarComponent ]
1212
})

src/angular/src/app/counter/counter.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
1+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
22

33
import { CounterComponent } from './counter.component';
44

55
describe('CounterComponent', () => {
66
let component: CounterComponent;
77
let fixture: ComponentFixture<CounterComponent>;
88

9-
beforeEach(async(() => {
9+
beforeEach(waitForAsync(() => {
1010
TestBed.configureTestingModule({
1111
declarations: [ CounterComponent ]
1212
})

0 commit comments

Comments
 (0)