@nativescript/template-blank-ng 8.9.0 → 8.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/App_Resources/iOS/build.xcconfig +1 -0
- package/package.json +14 -14
- package/src/main.ts +2 -11
- package/src/polyfills.ts +0 -17
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"main": "src/main.ts",
|
|
4
4
|
"displayName": "Blank",
|
|
5
5
|
"templateType": "App template",
|
|
6
|
-
"version": "8.9.
|
|
6
|
+
"version": "8.9.1",
|
|
7
7
|
"description": "Blank template for NativeScript apps using Angular",
|
|
8
8
|
"author": "NativeScript Team <oss@nativescript.org>",
|
|
9
9
|
"license": "Apache-2.0",
|
|
@@ -40,27 +40,27 @@
|
|
|
40
40
|
"url": "https://github.com/NativeScript/NativeScript/issues"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@angular/animations": "~
|
|
44
|
-
"@angular/common": "~
|
|
45
|
-
"@angular/compiler": "~
|
|
46
|
-
"@angular/core": "~
|
|
47
|
-
"@angular/forms": "~
|
|
48
|
-
"@angular/platform-browser": "~
|
|
49
|
-
"@angular/platform-browser-dynamic": "~
|
|
50
|
-
"@angular/router": "~
|
|
51
|
-
"@nativescript/angular": "^
|
|
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",
|
|
52
52
|
"@nativescript/core": "~8.9.0",
|
|
53
53
|
"rxjs": "~7.8.0",
|
|
54
54
|
"zone.js": "~0.15.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@angular-devkit/build-angular": "~
|
|
58
|
-
"@angular/compiler-cli": "~
|
|
57
|
+
"@angular-devkit/build-angular": "~20.0.0",
|
|
58
|
+
"@angular/compiler-cli": "~20.0.0",
|
|
59
59
|
"@nativescript/tailwind": "^2.1.0",
|
|
60
60
|
"@nativescript/types": "~8.9.0",
|
|
61
61
|
"@nativescript/webpack": "~5.0.0",
|
|
62
|
-
"@ngtools/webpack": "~
|
|
62
|
+
"@ngtools/webpack": "~20.0.0",
|
|
63
63
|
"tailwindcss": "~3.4.0",
|
|
64
|
-
"typescript": "~5.
|
|
64
|
+
"typescript": "~5.8.0"
|
|
65
65
|
}
|
|
66
66
|
}
|
package/src/main.ts
CHANGED
|
@@ -1,30 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
bootstrapApplication,
|
|
3
3
|
provideNativeScriptHttpClient,
|
|
4
|
-
provideNativeScriptNgZone,
|
|
5
4
|
provideNativeScriptRouter,
|
|
6
5
|
runNativeScriptAngularApp,
|
|
7
6
|
} from '@nativescript/angular';
|
|
8
|
-
import {
|
|
7
|
+
import { provideZonelessChangeDetection } from '@angular/core';
|
|
9
8
|
import { withInterceptorsFromDi } from '@angular/common/http';
|
|
10
9
|
import { routes } from './app/app.routes';
|
|
11
10
|
import { AppComponent } from './app/app.component';
|
|
12
11
|
|
|
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
|
-
|
|
19
12
|
runNativeScriptAngularApp({
|
|
20
13
|
appModuleBootstrap: () => {
|
|
21
14
|
return bootstrapApplication(AppComponent, {
|
|
22
15
|
providers: [
|
|
23
16
|
provideNativeScriptHttpClient(withInterceptorsFromDi()),
|
|
24
17
|
provideNativeScriptRouter(routes),
|
|
25
|
-
|
|
26
|
-
? provideExperimentalZonelessChangeDetection()
|
|
27
|
-
: provideNativeScriptNgZone(),
|
|
18
|
+
provideZonelessChangeDetection(),
|
|
28
19
|
],
|
|
29
20
|
});
|
|
30
21
|
},
|
package/src/polyfills.ts
CHANGED
|
@@ -6,20 +6,3 @@
|
|
|
6
6
|
import '@nativescript/core/globals';
|
|
7
7
|
// Install @nativescript/angular specific polyfills
|
|
8
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';
|