Skip to content

docs: the reference and installation pages say what the code does - #106

Merged
ChristopherPHolder merged 1 commit into
mainfrom
docs/factual-fixes
Nov 28, 2026
Merged

ChristopherPHolder merged 1 commit into
mainfrom
docs/factual-fixes

Conversation

@ChristopherPHolder

Copy link
Copy Markdown
Collaborator

I checked the docs' reference pages against each package's exports and implementation, and fixed what was wrong or missing. Closes #100.

Wrong

  • reference/core.md: a loadTemplate that rejects isn't answered with 404. Only a template response that isn't ok is. A rejection reaches the runtime, which usually answers 500.
  • reference/nestjs.md: forRootAsync() was documented with AngularStreamModuleAsyncOptions, which nothing exports. It now shows Nest's own ConfigurableModuleAsyncOptions, including OptionalFactoryDependency and provideInjectionTokensFrom.
  • Installation: it said releases go to npm's next dist-tag, then that the packages exist only as source. It now says once that no release is out yet, and what the first one will do.
  • _shared/browser-config.md: imported ./routes, which no example has. It now imports ./app.routes.
  • Angular CLI: said four files change. A fifth, angular.json, does too.
  • packages/nestjs/README.md: said GET only. The module answers GET and HEAD.

Missing

  • Introduction: the package table now lists @push-based/angular-ssr-stream-angular-ssr, and the text says how an Angular CLI app uses it.
  • Install lines: every adapter's reference page installs the core next to the adapter, because the app imports the core's providers and pnpm won't resolve it otherwise.
  • core: StreamingAppOptions is shown as its own interface, which StreamingHandlerOptions extends. StreamingRootComponent, StreamingBootstrapFunction and StreamingBootstrap are named, and so are the wire-format types. The renderer sets Content-Type itself.
  • angular-ssr:
    • StreamingRouteRender's fields.
    • The @angular/ssr and @angular/router peers.
    • That an NgModule app renders unstreamed.
    • Content-Language.
    • Redirect statuses: 3xx from the route, otherwise 302.
    • The error for an engine it doesn't recognise.
  • nestjs: ANGULAR_STREAM_OPTIONS has a type and an example, and angularStreamNest() takes routes.
  • aws-lambda: where the URL's protocol and host come from, and HEAD.
  • nitro: the build fails without a top-level index.html, and a dev template is cleared before a build.
  • Installation: Node 20 or later for the Node adapters, which use Headers.getSetCookie(). Vite 7 or later for the dev plugins, Vite 8 for Nitro's.

Checked

  • vp check: 0 errors.
  • pnpm nx build docs: every page prerenders, and the link and heading checks pass.

- Introduction lists the angular-ssr adapter, and Installation says once
  that no release is out yet.
- Every adapter's install line installs the core next to it.
- core: a rejecting loadTemplate is not a 404; StreamingAppOptions,
  the bootstrap types and every wire-format type are named.
- angular-ssr: StreamingRouteRender, its peers, the NgModule fallback,
  Content-Language, redirect statuses and the unknown-engine error.
- nestjs: forRootAsync() takes Nest's own ConfigurableModuleAsyncOptions,
  ANGULAR_STREAM_OPTIONS has a type, angularStreamNest() takes routes.
- aws-lambda and nitro: URL protocol and host, HEAD, and the build checks.
- Node 20 to run the Node adapters, Vite 7 or 8 for the dev plugins.

Closes #100
@ChristopherPHolder
ChristopherPHolder merged commit 5a1c1a9 into main Nov 28, 2026
24 checks passed
@ChristopherPHolder
ChristopherPHolder deleted the docs/factual-fixes branch November 28, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: facts that are wrong or missing in the docs and package READMEs

1 participant