@real-router/angular 0.22.0 → 0.22.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/README.md CHANGED
@@ -640,12 +640,12 @@ Existing `provideRealRouter(router)` is unchanged — keep using it for SPA / po
640
640
 
641
641
  **SSR / SSG examples** — `provideRealRouterFactory({ baseRouter, plugins, deps })`:
642
642
 
643
- | Example | Demonstrates |
644
- | ----------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
645
- | [`examples/web/angular/ssr-examples/ssr/`](../../examples/web/angular/ssr-examples/ssr) | Classical SSR with cookie-based DI, auth guards, nested loaders |
646
- | [`examples/web/angular/ssr-examples/ssr-mixed/`](../../examples/web/angular/ssr-examples/ssr-mixed) | Mixed SSR/CSR routes — some routes server-rendered, others CSR-only |
647
- | [`examples/web/angular/ssr-examples/ssr-streaming/`](../../examples/web/angular/ssr-examples/ssr-streaming) | Streaming SSR with `@defer (on viewport)` + `@defer (on hover)` + `withIncrementalHydration()` |
648
- | [`examples/web/angular/ssr-examples/ssg/`](../../examples/web/angular/ssr-examples/ssg) | Static site generation via in-process AngularNodeAppEngine + `getStaticPaths()` |
643
+ | Example | Demonstrates |
644
+ | ----------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
645
+ | [`examples/web/angular/ssr-examples/ssr/`](../../examples/web/angular/ssr-examples/ssr) | Classical SSR with cookie-based DI, auth guards, nested loaders |
646
+ | [`examples/web/angular/ssr-examples/ssr-mixed/`](../../examples/web/angular/ssr-examples/ssr-mixed) | Mixed SSR/CSR routes — some routes server-rendered, others CSR-only |
647
+ | [`examples/web/angular/ssr-examples/ssr-streaming/`](../../examples/web/angular/ssr-examples/ssr-streaming) | Streaming SSR with `@defer (on viewport)` + `@defer (on hover)` + incremental hydration |
648
+ | [`examples/web/angular/ssr-examples/ssg/`](../../examples/web/angular/ssr-examples/ssg) | Static site generation via in-process AngularNodeAppEngine + `getStaticPaths()` |
649
649
 
650
650
  **Post-hydration loader skip (#599)** — `provideRealRouterFactory` automatically bridges Angular's `TransferState` to the cross-adapter hydration scratchpad. On the server pass, the resolved router state is written to `TransferState`; on the client, the bootstrap consumes the seed via `hydrateRouter(...)` and `ssr-data-plugin` reuses the server-resolved `state.context.data` without re-invoking the loader on first paint. Requires `provideServerRendering()` (server) + `provideClientHydration()` (client) — both standard for Angular SSR apps. Verified end-to-end in `ssr/` and `ssr-streaming/` examples via `window.__LOADER_CALLS__` counter assertion.
651
651
 
@@ -0,0 +1,2 @@
1
+ # Nested package.json's are only needed for development.
2
+ ssr/package.json
package/dist/README.md CHANGED
@@ -640,12 +640,12 @@ Existing `provideRealRouter(router)` is unchanged — keep using it for SPA / po
640
640
 
641
641
  **SSR / SSG examples** — `provideRealRouterFactory({ baseRouter, plugins, deps })`:
642
642
 
643
- | Example | Demonstrates |
644
- | ----------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
645
- | [`examples/web/angular/ssr-examples/ssr/`](../../examples/web/angular/ssr-examples/ssr) | Classical SSR with cookie-based DI, auth guards, nested loaders |
646
- | [`examples/web/angular/ssr-examples/ssr-mixed/`](../../examples/web/angular/ssr-examples/ssr-mixed) | Mixed SSR/CSR routes — some routes server-rendered, others CSR-only |
647
- | [`examples/web/angular/ssr-examples/ssr-streaming/`](../../examples/web/angular/ssr-examples/ssr-streaming) | Streaming SSR with `@defer (on viewport)` + `@defer (on hover)` + `withIncrementalHydration()` |
648
- | [`examples/web/angular/ssr-examples/ssg/`](../../examples/web/angular/ssr-examples/ssg) | Static site generation via in-process AngularNodeAppEngine + `getStaticPaths()` |
643
+ | Example | Demonstrates |
644
+ | ----------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
645
+ | [`examples/web/angular/ssr-examples/ssr/`](../../examples/web/angular/ssr-examples/ssr) | Classical SSR with cookie-based DI, auth guards, nested loaders |
646
+ | [`examples/web/angular/ssr-examples/ssr-mixed/`](../../examples/web/angular/ssr-examples/ssr-mixed) | Mixed SSR/CSR routes — some routes server-rendered, others CSR-only |
647
+ | [`examples/web/angular/ssr-examples/ssr-streaming/`](../../examples/web/angular/ssr-examples/ssr-streaming) | Streaming SSR with `@defer (on viewport)` + `@defer (on hover)` + incremental hydration |
648
+ | [`examples/web/angular/ssr-examples/ssg/`](../../examples/web/angular/ssr-examples/ssg) | Static site generation via in-process AngularNodeAppEngine + `getStaticPaths()` |
649
649
 
650
650
  **Post-hydration loader skip (#599)** — `provideRealRouterFactory` automatically bridges Angular's `TransferState` to the cross-adapter hydration scratchpad. On the server pass, the resolved router state is written to `TransferState`; on the client, the bootstrap consumes the seed via `hydrateRouter(...)` and `ssr-data-plugin` reuses the server-resolved `state.context.data` without re-invoking the loader on first paint. Requires `provideServerRendering()` (server) + `provideClientHydration()` (client) — both standard for Angular SSR apps. Verified end-to-end in `ssr/` and `ssr-streaming/` examples via `window.__LOADER_CALLS__` counter assertion.
651
651
 
@@ -2068,8 +2068,8 @@ function provideRealRouterFactory(options) {
2068
2068
  //
2069
2069
  // 1. **Client after hydration** — server populated TransferState with
2070
2070
  // the SSR-resolved router state. Consume it via `hydrateRouter`,
2071
- // which deposits the parsed state into the one-shot
2072
- // `RouterInternals.hydrationState` scratchpad before invoking
2071
+ // which deposits the parsed state into `@real-router/ssr-utils`'
2072
+ // one-shot scratchpad before invoking
2073
2073
  // `router.start(state.path)`. SSR loader plugins
2074
2074
  // (`@real-router/ssr-data-plugin`, `@real-router/rsc-server-plugin`)
2075
2075
  // read the scratchpad and skip the loader on first paint — parity