@schematics/angular 18.0.0-next.1 → 18.0.0-next.2

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.
@@ -3,11 +3,8 @@
3
3
 
4
4
  import { AppModule } from './app/app.module';
5
5
 
6
- <% if(!!viewEncapsulation) { %>
7
6
  platformBrowserDynamic().bootstrapModule(AppModule, {
8
- defaultEncapsulation: ViewEncapsulation.<%= viewEncapsulation %>
7
+ ngZoneEventCoalescing: true<% if(!!viewEncapsulation) { %>,
8
+ defaultEncapsulation: ViewEncapsulation.<%= viewEncapsulation %><% } %>
9
9
  })
10
- .catch(err => console.error(err));<% } else { %>
11
- platformBrowserDynamic().bootstrapModule(AppModule)
12
10
  .catch(err => console.error(err));
13
- <% } %>
@@ -1,8 +1,8 @@
1
- import { ApplicationConfig } from '@angular/core';<% if (routing) { %>
1
+ import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';<% if (routing) { %>
2
2
  import { provideRouter } from '@angular/router';
3
3
 
4
4
  import { routes } from './app.routes';<% } %>
5
5
 
6
6
  export const appConfig: ApplicationConfig = {
7
- providers: [<% if (routing) { %>provideRouter(routes)<% } %>]
7
+ providers: [provideZoneChangeDetection({ eventCoalescing: true })<% if (routing) { %>, provideRouter(routes)<% } %>]
8
8
  };
@@ -173,7 +173,7 @@ export function app(): express.Express {
173
173
  }
174
174
 
175
175
  function run(): void {
176
- const port = process.env['SSR_PORT'] || 4000;
176
+ const port = process.env['PORT'] || 4000;
177
177
 
178
178
  // Start up the Node server
179
179
  const server = app();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schematics/angular",
3
- "version": "18.0.0-next.1",
3
+ "version": "18.0.0-next.2",
4
4
  "description": "Schematics specific to Angular",
5
5
  "homepage": "https://github.com/angular/angular-cli",
6
6
  "keywords": [
@@ -22,8 +22,8 @@
22
22
  },
23
23
  "schematics": "./collection.json",
24
24
  "dependencies": {
25
- "@angular-devkit/core": "18.0.0-next.1",
26
- "@angular-devkit/schematics": "18.0.0-next.1",
25
+ "@angular-devkit/core": "18.0.0-next.2",
26
+ "@angular-devkit/schematics": "18.0.0-next.2",
27
27
  "jsonc-parser": "3.2.1"
28
28
  },
29
29
  "repository": {
@@ -44,7 +44,7 @@ export function app(): express.Express {
44
44
  }
45
45
 
46
46
  function run(): void {
47
- const port = process.env['SSR_PORT'] || 4000;
47
+ const port = process.env['PORT'] || 4000;
48
48
 
49
49
  // Start up the Node server
50
50
  const server = app();
@@ -47,7 +47,7 @@ export function app(): express.Express {
47
47
  }
48
48
 
49
49
  function run(): void {
50
- const port = process.env['SSR_PORT'] || 4000;
50
+ const port = process.env['PORT'] || 4000;
51
51
 
52
52
  // Start up the Node server
53
53
  const server = app();
@@ -15,6 +15,6 @@ exports.latestVersions = {
15
15
  ...dependencies,
16
16
  // As Angular CLI works with same minor versions of Angular Framework, a tilde match for the current
17
17
  Angular: dependencies['@angular/core'],
18
- DevkitBuildAngular: '^18.0.0-next.1',
19
- AngularSSR: '^18.0.0-next.1',
18
+ DevkitBuildAngular: '^18.0.0-next.2',
19
+ AngularSSR: '^18.0.0-next.2',
20
20
  };