From e12916f27115f64f19464fdc68a1ab54628f38c2 Mon Sep 17 00:00:00 2001 From: cexbrayat Date: Thu, 20 Mar 2025 10:31:09 +0000 Subject: [PATCH] chore: version 20.0.0-next.2 --- ponyracer/package.json | 6 +++--- ponyracer/src/app/app.config.server.ts | 6 ++---- ponyracer/src/app/{app.component.css => app.css} | 0 .../src/app/{app.component.ng.html => app.ng.html} | 0 .../src/app/{app.component.spec.ts => app.spec.ts} | 12 ++++++------ ponyracer/src/app/{app.component.ts => app.ts} | 6 +++--- ponyracer/src/main.server.ts | 4 ++-- ponyracer/src/main.ts | 4 ++-- 8 files changed, 18 insertions(+), 20 deletions(-) rename ponyracer/src/app/{app.component.css => app.css} (100%) rename ponyracer/src/app/{app.component.ng.html => app.ng.html} (100%) rename ponyracer/src/app/{app.component.spec.ts => app.spec.ts} (68%) rename ponyracer/src/app/{app.component.ts => app.ts} (63%) diff --git a/ponyracer/package.json b/ponyracer/package.json index cbfc523..9508fe0 100644 --- a/ponyracer/package.json +++ b/ponyracer/package.json @@ -19,15 +19,15 @@ "@angular/platform-browser-dynamic": "^20.0.0-next.0", "@angular/platform-server": "^20.0.0-next.0", "@angular/router": "^20.0.0-next.0", - "@angular/ssr": "^20.0.0-next.1", + "@angular/ssr": "^20.0.0-next.2", "express": "^4.18.2", "rxjs": "~7.8.0", "tslib": "^2.3.0", "zone.js": "~0.15.0" }, "devDependencies": { - "@angular/build": "^20.0.0-next.1", - "@angular/cli": "^20.0.0-next.1", + "@angular/build": "^20.0.0-next.2", + "@angular/cli": "^20.0.0-next.2", "@angular/compiler-cli": "^20.0.0-next.0", "@types/express": "^4.17.17", "@types/jasmine": "~5.1.0", diff --git a/ponyracer/src/app/app.config.server.ts b/ponyracer/src/app/app.config.server.ts index 0125189..41031f1 100644 --- a/ponyracer/src/app/app.config.server.ts +++ b/ponyracer/src/app/app.config.server.ts @@ -1,13 +1,11 @@ import { mergeApplicationConfig, ApplicationConfig } from '@angular/core'; -import { provideServerRendering } from '@angular/platform-server'; -import { provideServerRouting } from '@angular/ssr'; +import { provideServerRendering, withRoutes } from '@angular/ssr'; import { appConfig } from './app.config'; import { serverRoutes } from './app.routes.server'; const serverConfig: ApplicationConfig = { providers: [ - provideServerRendering(), - provideServerRouting(serverRoutes) + provideServerRendering(withRoutes(serverRoutes)) ] }; diff --git a/ponyracer/src/app/app.component.css b/ponyracer/src/app/app.css similarity index 100% rename from ponyracer/src/app/app.component.css rename to ponyracer/src/app/app.css diff --git a/ponyracer/src/app/app.component.ng.html b/ponyracer/src/app/app.ng.html similarity index 100% rename from ponyracer/src/app/app.component.ng.html rename to ponyracer/src/app/app.ng.html diff --git a/ponyracer/src/app/app.component.spec.ts b/ponyracer/src/app/app.spec.ts similarity index 68% rename from ponyracer/src/app/app.component.spec.ts rename to ponyracer/src/app/app.spec.ts index 51a74cc..fbc7ee5 100644 --- a/ponyracer/src/app/app.component.spec.ts +++ b/ponyracer/src/app/app.spec.ts @@ -1,27 +1,27 @@ import { TestBed } from '@angular/core/testing'; -import { AppComponent } from './app.component'; +import { App } from './app'; -describe('AppComponent', () => { +describe('App', () => { beforeEach(async () => { await TestBed.configureTestingModule({ - imports: [AppComponent], + imports: [App], }).compileComponents(); }); it('should create the app', () => { - const fixture = TestBed.createComponent(AppComponent); + const fixture = TestBed.createComponent(App); const app = fixture.componentInstance; expect(app).toBeTruthy(); }); it(`should have the 'ponyracer' title`, () => { - const fixture = TestBed.createComponent(AppComponent); + const fixture = TestBed.createComponent(App); const app = fixture.componentInstance; expect(app.title).toEqual('ponyracer'); }); it('should render title', () => { - const fixture = TestBed.createComponent(AppComponent); + const fixture = TestBed.createComponent(App); fixture.detectChanges(); const compiled = fixture.nativeElement as HTMLElement; expect(compiled.querySelector('h1')?.textContent).toContain('Hello, ponyracer'); diff --git a/ponyracer/src/app/app.component.ts b/ponyracer/src/app/app.ts similarity index 63% rename from ponyracer/src/app/app.component.ts rename to ponyracer/src/app/app.ts index addd32d..95a5048 100644 --- a/ponyracer/src/app/app.component.ts +++ b/ponyracer/src/app/app.ts @@ -4,9 +4,9 @@ import { RouterOutlet } from '@angular/router'; @Component({ selector: 'app-root', imports: [RouterOutlet], - templateUrl: './app.component.ng.html', - styleUrl: './app.component.css' + templateUrl: './app.ng.html', + styleUrl: './app.css' }) -export class AppComponent { +export class App { title = 'ponyracer'; } diff --git a/ponyracer/src/main.server.ts b/ponyracer/src/main.server.ts index 4b9d4d1..154ce1c 100644 --- a/ponyracer/src/main.server.ts +++ b/ponyracer/src/main.server.ts @@ -1,7 +1,7 @@ import { bootstrapApplication } from '@angular/platform-browser'; -import { AppComponent } from './app/app.component'; +import { App } from './app/app'; import { config } from './app/app.config.server'; -const bootstrap = () => bootstrapApplication(AppComponent, config); +const bootstrap = () => bootstrapApplication(App, config); export default bootstrap; diff --git a/ponyracer/src/main.ts b/ponyracer/src/main.ts index 35b00f3..5df75f9 100644 --- a/ponyracer/src/main.ts +++ b/ponyracer/src/main.ts @@ -1,6 +1,6 @@ import { bootstrapApplication } from '@angular/platform-browser'; import { appConfig } from './app/app.config'; -import { AppComponent } from './app/app.component'; +import { App } from './app/app'; -bootstrapApplication(AppComponent, appConfig) +bootstrapApplication(App, appConfig) .catch((err) => console.error(err));