Skip to content

Commit c71f014

Browse files
committed
chore(deps)!: update to Angular 19
1 parent 21e3b6e commit c71f014

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+4279
-3476
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Builders' and Angular **major** versions **must** match.
1313
<details>
1414
<summary>Click to expand</summary>
1515

16+
- [Version 18](https://github.com/just-jeb/angular-builders/tree/18.x.x)
1617
- [Version 17](https://github.com/just-jeb/angular-builders/tree/17.x.x)
1718
- [Version 16](https://github.com/just-jeb/angular-builders/tree/16.x.x)
1819
- [Version 15](https://github.com/just-jeb/angular-builders/tree/15.x.x)

examples/bazel/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"private": true,
88
"devDependencies": {
99
"@angular-builders/bazel": "workspace:*",
10-
"@angular/cli": "18.1.4"
10+
"@angular/cli": "19.0.0"
1111
}
1212
}

examples/custom-esbuild/sanity-esbuild-app-esm/package.json

+14-14
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,24 @@
1515
},
1616
"private": true,
1717
"dependencies": {
18-
"@angular/animations": "18.1.3",
19-
"@angular/common": "18.1.3",
20-
"@angular/compiler": "18.1.3",
21-
"@angular/core": "18.1.3",
22-
"@angular/forms": "18.1.3",
23-
"@angular/platform-browser": "18.1.3",
24-
"@angular/platform-browser-dynamic": "18.1.3",
25-
"@angular/router": "18.1.3",
18+
"@angular/animations": "19.0.0",
19+
"@angular/common": "19.0.0",
20+
"@angular/compiler": "19.0.0",
21+
"@angular/core": "19.0.0",
22+
"@angular/forms": "19.0.0",
23+
"@angular/platform-browser": "19.0.0",
24+
"@angular/platform-browser-dynamic": "19.0.0",
25+
"@angular/router": "19.0.0",
2626
"rxjs": "7.8.1",
2727
"tslib": "2.6.3",
28-
"zone.js": "0.14.8"
28+
"zone.js": "0.15.0"
2929
},
3030
"devDependencies": {
3131
"@angular-builders/custom-esbuild": "workspace:*",
32-
"@angular-devkit/build-angular": "18.1.4",
33-
"@angular/cli": "18.1.4",
34-
"@angular/compiler-cli": "18.1.3",
35-
"@angular/language-service": "18.1.3",
32+
"@angular-devkit/build-angular": "19.0.0",
33+
"@angular/cli": "19.0.0",
34+
"@angular/compiler-cli": "19.0.0",
35+
"@angular/language-service": "19.0.0",
3636
"@types/jasmine": "5.1.2",
3737
"@types/node": "20.17.7",
3838
"cypress": "13.16.0",
@@ -44,6 +44,6 @@
4444
"karma-jasmine-html-reporter": "2.1.0",
4545
"puppeteer": "20.9.0",
4646
"ts-node": "10.9.2",
47-
"typescript": "5.4.5"
47+
"typescript": "5.6.2"
4848
}
4949
}

examples/custom-esbuild/sanity-esbuild-app/package.json

+14-14
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,24 @@
1212
},
1313
"private": true,
1414
"dependencies": {
15-
"@angular/animations": "18.1.3",
16-
"@angular/common": "18.1.3",
17-
"@angular/compiler": "18.1.3",
18-
"@angular/core": "18.1.3",
19-
"@angular/forms": "18.1.3",
20-
"@angular/platform-browser": "18.1.3",
21-
"@angular/platform-browser-dynamic": "18.1.3",
22-
"@angular/router": "18.1.3",
15+
"@angular/animations": "19.0.0",
16+
"@angular/common": "19.0.0",
17+
"@angular/compiler": "19.0.0",
18+
"@angular/core": "19.0.0",
19+
"@angular/forms": "19.0.0",
20+
"@angular/platform-browser": "19.0.0",
21+
"@angular/platform-browser-dynamic": "19.0.0",
22+
"@angular/router": "19.0.0",
2323
"rxjs": "7.8.1",
2424
"tslib": "2.6.3",
25-
"zone.js": "0.14.8"
25+
"zone.js": "0.15.0"
2626
},
2727
"devDependencies": {
2828
"@angular-builders/custom-esbuild": "workspace:*",
29-
"@angular-devkit/build-angular": "18.1.4",
30-
"@angular/cli": "18.1.4",
31-
"@angular/compiler-cli": "18.1.3",
32-
"@angular/language-service": "18.1.3",
29+
"@angular-devkit/build-angular": "19.0.0",
30+
"@angular/cli": "19.0.0",
31+
"@angular/compiler-cli": "19.0.0",
32+
"@angular/language-service": "19.0.0",
3333
"@types/jasmine": "5.1.2",
3434
"@types/node": "20.17.7",
3535
"cypress": "13.16.0",
@@ -41,6 +41,6 @@
4141
"karma-jasmine-html-reporter": "2.1.0",
4242
"puppeteer": "20.9.0",
4343
"ts-node": "10.9.2",
44-
"typescript": "5.4.5"
44+
"typescript": "5.6.2"
4545
}
4646
}

examples/custom-webpack/full-cycle-app/angular.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -81,22 +81,22 @@
8181
"serve": {
8282
"builder": "@angular-builders/custom-webpack:dev-server",
8383
"options": {
84-
"browserTarget": "full-cycle-app:build",
84+
"buildTarget": "full-cycle-app:build",
8585
"port": 5000
8686
},
8787
"configurations": {
8888
"production": {
89-
"browserTarget": "full-cycle-app:build:production"
89+
"buildTarget": "full-cycle-app:build:production"
9090
},
9191
"itwcw": {
92-
"browserTarget": "full-cycle-app:build:itwcw"
92+
"buildTarget": "full-cycle-app:build:itwcw"
9393
}
9494
}
9595
},
9696
"extract-i18n": {
9797
"builder": "@angular-devkit/build-angular:extract-i18n",
9898
"options": {
99-
"browserTarget": "full-cycle-app:build"
99+
"buildTarget": "full-cycle-app:build"
100100
}
101101
},
102102
"test": {

examples/custom-webpack/full-cycle-app/package.json

+14-14
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,24 @@
1212
},
1313
"private": true,
1414
"dependencies": {
15-
"@angular/animations": "18.1.3",
16-
"@angular/common": "18.1.3",
17-
"@angular/compiler": "18.1.3",
18-
"@angular/core": "18.1.3",
19-
"@angular/forms": "18.1.3",
20-
"@angular/platform-browser": "18.1.3",
21-
"@angular/platform-browser-dynamic": "18.1.3",
22-
"@angular/router": "18.1.3",
15+
"@angular/animations": "19.0.0",
16+
"@angular/common": "19.0.0",
17+
"@angular/compiler": "19.0.0",
18+
"@angular/core": "19.0.0",
19+
"@angular/forms": "19.0.0",
20+
"@angular/platform-browser": "19.0.0",
21+
"@angular/platform-browser-dynamic": "19.0.0",
22+
"@angular/router": "19.0.0",
2323
"rxjs": "7.8.1",
2424
"tslib": "2.6.3",
25-
"zone.js": "0.14.8"
25+
"zone.js": "0.15.0"
2626
},
2727
"devDependencies": {
2828
"@angular-builders/custom-webpack": "workspace:*",
29-
"@angular-devkit/build-angular": "18.1.4",
30-
"@angular/cli": "18.1.4",
31-
"@angular/compiler-cli": "18.1.3",
32-
"@angular/language-service": "18.1.3",
29+
"@angular-devkit/build-angular": "19.0.0",
30+
"@angular/cli": "19.0.0",
31+
"@angular/compiler-cli": "19.0.0",
32+
"@angular/language-service": "19.0.0",
3333
"@types/jasmine": "5.1.4",
3434
"@types/node": "20.17.7",
3535
"cypress": "13.16.0",
@@ -42,6 +42,6 @@
4242
"karma-jasmine-html-reporter": "2.1.0",
4343
"puppeteer": "21.11.0",
4444
"ts-node": "10.9.2",
45-
"typescript": "5.4.5"
45+
"typescript": "5.6.2"
4646
}
4747
}

examples/custom-webpack/full-cycle-app/src/app/app.component.spec.ts

+28-42
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,33 @@ import { TestBed, waitForAsync } from '@angular/core/testing';
22
import { AppComponent } from '@app/app.component';
33

44
describe('AppComponent', () => {
5-
beforeEach(
6-
waitForAsync(() => {
7-
Object.defineProperty(window, 'APP_VERSION', { value: `fake version`, writable: false });
5+
beforeEach(waitForAsync(() => {
6+
Object.defineProperty(window, 'APP_VERSION', { value: `fake version`, writable: false });
87

9-
TestBed.configureTestingModule({
10-
declarations: [AppComponent],
11-
}).compileComponents();
12-
})
13-
);
14-
it(
15-
'should create the app',
16-
waitForAsync(() => {
17-
const fixture = TestBed.createComponent(AppComponent);
18-
const app = fixture.debugElement.componentInstance;
19-
expect(app).toBeTruthy();
20-
})
21-
);
22-
it(
23-
`should have as title 'app'`,
24-
waitForAsync(() => {
25-
const fixture = TestBed.createComponent(AppComponent);
26-
const app = fixture.debugElement.componentInstance;
27-
expect(app.title).toEqual('full-cycle-app');
28-
})
29-
);
30-
it(
31-
'should render title in a h1 tag',
32-
waitForAsync(() => {
33-
const fixture = TestBed.createComponent(AppComponent);
34-
fixture.detectChanges();
35-
const compiled = fixture.debugElement.nativeElement;
36-
expect(compiled.querySelector('h1').textContent).toContain('Welcome to full-cycle-app!');
37-
})
38-
);
39-
it(
40-
'should render `version` in div with `version` css class',
41-
waitForAsync(() => {
42-
const fixture = TestBed.createComponent(AppComponent);
43-
fixture.detectChanges();
44-
const compiled = fixture.debugElement.nativeElement;
45-
expect(compiled.querySelector('.version').textContent).toContain('fake version');
46-
})
47-
);
8+
TestBed.configureTestingModule({
9+
imports: [AppComponent],
10+
}).compileComponents();
11+
}));
12+
it('should create the app', waitForAsync(() => {
13+
const fixture = TestBed.createComponent(AppComponent);
14+
const app = fixture.debugElement.componentInstance;
15+
expect(app).toBeTruthy();
16+
}));
17+
it(`should have as title 'app'`, waitForAsync(() => {
18+
const fixture = TestBed.createComponent(AppComponent);
19+
const app = fixture.debugElement.componentInstance;
20+
expect(app.title).toEqual('full-cycle-app');
21+
}));
22+
it('should render title in a h1 tag', waitForAsync(() => {
23+
const fixture = TestBed.createComponent(AppComponent);
24+
fixture.detectChanges();
25+
const compiled = fixture.debugElement.nativeElement;
26+
expect(compiled.querySelector('h1').textContent).toContain('Welcome to full-cycle-app!');
27+
}));
28+
it('should render `version` in div with `version` css class', waitForAsync(() => {
29+
const fixture = TestBed.createComponent(AppComponent);
30+
fixture.detectChanges();
31+
const compiled = fixture.debugElement.nativeElement;
32+
expect(compiled.querySelector('.version').textContent).toContain('fake version');
33+
}));
4834
});

examples/custom-webpack/full-cycle-app/src/app/app.module.ts

-11
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
import { enableProdMode } from '@angular/core';
2-
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
3-
import { AppModule } from '@app/app.module';
2+
import { bootstrapApplication } from '@angular/platform-browser';
3+
import { AppComponent } from '@app/app.component';
44
import { environment } from '@environment';
55

66
if (environment.production) {
77
enableProdMode();
88
}
99

10-
platformBrowserDynamic()
11-
.bootstrapModule(AppModule)
12-
.catch(err => console.error(err));
10+
bootstrapApplication(AppComponent);

examples/custom-webpack/sanity-app-esm/angular.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -95,26 +95,26 @@
9595
},
9696
"configurations": {
9797
"production": {
98-
"browserTarget": "sanity-app-esm:build:production"
98+
"buildTarget": "sanity-app-esm:build:production"
9999
},
100100
"development": {
101-
"browserTarget": "sanity-app-esm:build:development"
101+
"buildTarget": "sanity-app-esm:build:development"
102102
},
103103
"cjs": {
104-
"browserTarget": "sanity-app-esm:build:cjs"
104+
"buildTarget": "sanity-app-esm:build:cjs"
105105
},
106106
"esm": {
107-
"browserTarget": "sanity-app-esm:build:esm"
107+
"buildTarget": "sanity-app-esm:build:esm"
108108
},
109109
"tsEsm": {
110-
"browserTarget": "sanity-app-esm:build:tsEsm"
110+
"buildTarget": "sanity-app-esm:build:tsEsm"
111111
}
112112
}
113113
},
114114
"extract-i18n": {
115115
"builder": "@angular-devkit/build-angular:extract-i18n",
116116
"options": {
117-
"browserTarget": "sanity-app-esm:build"
117+
"buildTarget": "sanity-app-esm:build"
118118
}
119119
},
120120
"test": {

examples/custom-webpack/sanity-app-esm/package.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@
1616
},
1717
"private": true,
1818
"dependencies": {
19-
"@angular/animations": "18.1.3",
20-
"@angular/common": "18.1.3",
21-
"@angular/compiler": "18.1.3",
22-
"@angular/core": "18.1.3",
23-
"@angular/forms": "18.1.3",
24-
"@angular/platform-browser": "18.1.3",
25-
"@angular/platform-browser-dynamic": "18.1.3",
26-
"@angular/router": "18.1.3",
19+
"@angular/animations": "19.0.0",
20+
"@angular/common": "19.0.0",
21+
"@angular/compiler": "19.0.0",
22+
"@angular/core": "19.0.0",
23+
"@angular/forms": "19.0.0",
24+
"@angular/platform-browser": "19.0.0",
25+
"@angular/platform-browser-dynamic": "19.0.0",
26+
"@angular/router": "19.0.0",
2727
"rxjs": "7.8.1",
2828
"tslib": "2.6.3",
29-
"zone.js": "0.14.8"
29+
"zone.js": "0.15.0"
3030
},
3131
"devDependencies": {
3232
"@angular-builders/custom-webpack": "workspace:*",
33-
"@angular-devkit/build-angular": "18.1.4",
34-
"@angular/cli": "18.1.4",
35-
"@angular/compiler-cli": "18.1.3",
33+
"@angular-devkit/build-angular": "19.0.0",
34+
"@angular/cli": "19.0.0",
35+
"@angular/compiler-cli": "19.0.0",
3636
"@cypress/schematic": "2.5.2",
3737
"@types/jasmine": "5.1.4",
3838
"@types/node": "20.17.7",
@@ -44,6 +44,6 @@
4444
"karma-jasmine": "5.1.0",
4545
"karma-jasmine-html-reporter": "2.1.0",
4646
"puppeteer": "21.11.0",
47-
"typescript": "5.4.5"
47+
"typescript": "5.6.2"
4848
}
4949
}

examples/custom-webpack/sanity-app-esm/src/app/app.component.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { AppComponent } from './app.component';
44
describe('AppComponent', () => {
55
beforeEach(async () => {
66
await TestBed.configureTestingModule({
7-
declarations: [AppComponent],
7+
imports: [AppComponent],
88
}).compileComponents();
99
});
1010

examples/custom-webpack/sanity-app-esm/src/app/app.component.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
import { CommonModule } from '@angular/common';
12
import { Component } from '@angular/core';
23

34
@Component({
45
selector: 'app-root',
56
templateUrl: './app.component.html',
67
styleUrls: ['./app.component.css'],
8+
imports: [CommonModule],
79
})
810
export class AppComponent {
911
title = 'sanity-app-esm';

examples/custom-webpack/sanity-app-esm/src/app/app.module.ts

-12
This file was deleted.

0 commit comments

Comments
 (0)