Skip to content

Commit 62cc004

Browse files
committed
feat: angular 20 default
1 parent b320d1f commit 62cc004

File tree

6 files changed

+33
-85
lines changed

6 files changed

+33
-85
lines changed

packages/template-blank-ng/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"main": "src/main.ts",
44
"displayName": "Blank",
55
"templateType": "App template",
6-
"version": "8.9.0",
6+
"version": "8.9.1",
77
"description": "Blank template for NativeScript apps using Angular",
88
"author": "NativeScript Team <[email protected]>",
99
"license": "Apache-2.0",
@@ -40,27 +40,27 @@
4040
"url": "https://github.com/NativeScript/NativeScript/issues"
4141
},
4242
"dependencies": {
43-
"@angular/animations": "~19.0.0",
44-
"@angular/common": "~19.0.0",
45-
"@angular/compiler": "~19.0.0",
46-
"@angular/core": "~19.0.0",
47-
"@angular/forms": "~19.0.0",
48-
"@angular/platform-browser": "~19.0.0",
49-
"@angular/platform-browser-dynamic": "~19.0.0",
50-
"@angular/router": "~19.0.0",
51-
"@nativescript/angular": "^19.0.0",
43+
"@angular/animations": "~20.0.0",
44+
"@angular/common": "~20.0.0",
45+
"@angular/compiler": "~20.0.0",
46+
"@angular/core": "~20.0.0",
47+
"@angular/forms": "~20.0.0",
48+
"@angular/platform-browser": "~20.0.0",
49+
"@angular/platform-browser-dynamic": "~20.0.0",
50+
"@angular/router": "~20.0.0",
51+
"@nativescript/angular": "^20.0.0",
5252
"@nativescript/core": "~8.9.0",
5353
"rxjs": "~7.8.0",
5454
"zone.js": "~0.15.0"
5555
},
5656
"devDependencies": {
57-
"@angular-devkit/build-angular": "~19.0.0",
58-
"@angular/compiler-cli": "~19.0.0",
57+
"@angular-devkit/build-angular": "~20.0.0",
58+
"@angular/compiler-cli": "~20.0.0",
5959
"@nativescript/tailwind": "^2.1.0",
6060
"@nativescript/types": "~8.9.0",
6161
"@nativescript/webpack": "~5.0.0",
62-
"@ngtools/webpack": "~19.0.0",
62+
"@ngtools/webpack": "~20.0.0",
6363
"tailwindcss": "~3.4.0",
64-
"typescript": "~5.6.0"
64+
"typescript": "~5.8.0"
6565
}
6666
}

packages/template-blank-ng/src/main.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,21 @@
11
import {
22
bootstrapApplication,
33
provideNativeScriptHttpClient,
4-
provideNativeScriptNgZone,
54
provideNativeScriptRouter,
65
runNativeScriptAngularApp,
76
} from '@nativescript/angular';
8-
import { provideExperimentalZonelessChangeDetection } from '@angular/core';
7+
import { provideZonelessChangeDetection } from '@angular/core';
98
import { withInterceptorsFromDi } from '@angular/common/http';
109
import { routes } from './app/app.routes';
1110
import { AppComponent } from './app/app.component';
1211

13-
/**
14-
* Disable zone by setting this to true
15-
* Then also adjust polyfills.ts (see note there)
16-
*/
17-
const EXPERIMENTAL_ZONELESS = false;
18-
1912
runNativeScriptAngularApp({
2013
appModuleBootstrap: () => {
2114
return bootstrapApplication(AppComponent, {
2215
providers: [
2316
provideNativeScriptHttpClient(withInterceptorsFromDi()),
2417
provideNativeScriptRouter(routes),
25-
EXPERIMENTAL_ZONELESS
26-
? provideExperimentalZonelessChangeDetection()
27-
: provideNativeScriptNgZone(),
18+
provideZonelessChangeDetection(),
2819
],
2920
});
3021
},

packages/template-blank-ng/src/polyfills.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,3 @@
66
import '@nativescript/core/globals';
77
// Install @nativescript/angular specific polyfills
88
import '@nativescript/angular/polyfills';
9-
10-
/**
11-
* Disable zone completely by removing the following 3 imports
12-
* alongside also adjusting main.ts to boot zoneless
13-
*/
14-
15-
/**
16-
* Zone.js and patches
17-
*/
18-
// Add pre-zone.js patches needed for the NativeScript platform
19-
import '@nativescript/zone-js/dist/pre-zone-polyfills';
20-
21-
// Zone JS is required by default for Angular itself
22-
import 'zone.js';
23-
24-
// Add NativeScript specific Zone JS patches
25-
import '@nativescript/zone-js';

packages/template-hello-world-ng/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@nativescript/template-hello-world-ng",
33
"main": "./src/main.ts",
4-
"version": "8.9.0",
4+
"version": "8.9.1",
55
"author": "NativeScript Team <[email protected]>",
66
"description": "NativeScript Angular Hello World template",
77
"license": "Apache-2.0",
@@ -34,27 +34,27 @@
3434
"url": "https://github.com/NativeScript/NativeScript/issues"
3535
},
3636
"dependencies": {
37-
"@angular/animations": "~19.0.0",
38-
"@angular/common": "~19.0.0",
39-
"@angular/compiler": "~19.0.0",
40-
"@angular/core": "~19.0.0",
41-
"@angular/forms": "~19.0.0",
42-
"@angular/platform-browser": "~19.0.0",
43-
"@angular/platform-browser-dynamic": "~19.0.0",
44-
"@angular/router": "~19.0.0",
45-
"@nativescript/angular": "^19.0.0",
37+
"@angular/animations": "~20.0.0",
38+
"@angular/common": "~20.0.0",
39+
"@angular/compiler": "~20.0.0",
40+
"@angular/core": "~20.0.0",
41+
"@angular/forms": "~20.0.0",
42+
"@angular/platform-browser": "~20.0.0",
43+
"@angular/platform-browser-dynamic": "~20.0.0",
44+
"@angular/router": "~20.0.0",
45+
"@nativescript/angular": "^20.0.0",
4646
"@nativescript/core": "~8.9.0",
4747
"rxjs": "~7.8.0",
4848
"zone.js": "~0.15.0"
4949
},
5050
"devDependencies": {
51-
"@angular-devkit/build-angular": "~19.0.0",
52-
"@angular/compiler-cli": "~19.0.0",
51+
"@angular-devkit/build-angular": "~20.0.0",
52+
"@angular/compiler-cli": "~20.0.0",
5353
"@nativescript/tailwind": "^2.1.0",
5454
"@nativescript/types": "~8.9.0",
5555
"@nativescript/webpack": "~5.0.0",
56-
"@ngtools/webpack": "~19.0.0",
56+
"@ngtools/webpack": "~20.0.0",
5757
"tailwindcss": "~3.4.0",
58-
"typescript": "~5.6.0"
58+
"typescript": "~5.8.0"
5959
}
6060
}

packages/template-hello-world-ng/src/main.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,21 @@
11
import {
22
bootstrapApplication,
33
provideNativeScriptHttpClient,
4-
provideNativeScriptNgZone,
54
provideNativeScriptRouter,
65
runNativeScriptAngularApp,
76
} from '@nativescript/angular';
8-
import { provideExperimentalZonelessChangeDetection } from '@angular/core';
7+
import { provideZonelessChangeDetection } from '@angular/core';
98
import { withInterceptorsFromDi } from '@angular/common/http';
109
import { routes } from './app/app.routes';
1110
import { AppComponent } from './app/app.component';
1211

13-
/**
14-
* Disable zone by setting this to true
15-
* Then also adjust polyfills.ts (see note there)
16-
*/
17-
const EXPERIMENTAL_ZONELESS = false;
18-
1912
runNativeScriptAngularApp({
2013
appModuleBootstrap: () => {
2114
return bootstrapApplication(AppComponent, {
2215
providers: [
2316
provideNativeScriptHttpClient(withInterceptorsFromDi()),
2417
provideNativeScriptRouter(routes),
25-
EXPERIMENTAL_ZONELESS
26-
? provideExperimentalZonelessChangeDetection()
27-
: provideNativeScriptNgZone(),
18+
provideZonelessChangeDetection(),
2819
],
2920
});
3021
},

packages/template-hello-world-ng/src/polyfills.ts

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,4 @@
55
// Install @nativescript/core polyfills (XHR, setTimeout, requestAnimationFrame)
66
import '@nativescript/core/globals';
77
// Install @nativescript/angular specific polyfills
8-
import '@nativescript/angular/polyfills';
9-
10-
/**
11-
* Disable zone completely by removing the following 3 imports
12-
* alongside also adjusting main.ts to boot zoneless
13-
*/
14-
15-
/**
16-
* Zone.js and patches
17-
*/
18-
// Add pre-zone.js patches needed for the NativeScript platform
19-
import '@nativescript/zone-js/dist/pre-zone-polyfills';
20-
21-
// Zone JS is required by default for Angular itself
22-
import 'zone.js';
23-
24-
// Add NativeScript specific Zone JS patches
25-
import '@nativescript/zone-js';
8+
import '@nativescript/angular/polyfills';

0 commit comments

Comments
 (0)