Skip to content

docs: document the 22.0.0 changes - #3853

Open
armando-navarro wants to merge 7 commits into
angular:mainfrom
armando-navarro:docs-22.1.0
Open

armando-navarro wants to merge 7 commits into
angular:mainfrom
armando-navarro:docs-22.1.0

Conversation

@armando-navarro

@armando-navarro armando-navarro commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

This is the one docs PR for 22.0.0. It works the way #3835 did for 22.0.0-rc.1: one commit per code change, and it merges only just before the 22.0.0 tag, so the docs on main and the published package change together.

Commits so far

  • docs(messaging): say Messaging can be null, and check in the example, for fix(messaging): inject null where the browser has no service worker #3852: one sentence after the inject(Messaging) snippet in docs/messaging.md saying Messaging is null during server rendering and in a browser with no service worker support, and null checks in the example service's constructor, message$ and unregister.
  • docs: say RemoteConfig is null during server rendering, a fix for already-released behavior: one sentence after the inject(RemoteConfig) snippet in docs/remote-config.md saying RemoteConfig is null during server rendering.
  • docs(testing): correct the builder range and put long errors in blocks, a fix for already-released docs: in docs/testing.md, adding the setup file to include in tsconfig.spec.json is needed on @angular/build 21.2 to 22.1, so the page now says to always add it.
  • docs(deploy): describe the ng deploy setup that ng add writes, for feat(schematics): set up ng deploy in ng add for Hosting or App Hosting #3851: rewrites the deploy guide for the new ng add deploy setup, and updates the Quickstart, the upgrade guide and the App Hosting guide to match.
  • docs: describe AngularFire 22 as released, not as a release candidate, for the 22.0.0 release: the upgrade guide drops its release candidate title and installs @angular/fire@22 instead of @next, and the Quickstart creates an Angular 22 project and no longer asks for npm 11.6, since npm 10 installs a new Angular 22 project.

Checklist

  • Issue number for this PR: none.
  • Docs included?: yes, this PR is docs only.
  • Test units included?: no, docs only.
  • Breaking change?: no
  • In a clean directory, yarn install, yarn test run successfully?: not applicable, docs only.

Messaging is null during server rendering, and with the fix for angular#3672
also in a browser with no service worker support. The page showed
inject(Messaging) with no mention of either. The example service used
the injected value in its constructor, so an app copied from it failed
to render in those browsers.

Add one sentence after the injection snippet, and null checks in the
example's constructor, message$ and unregister.

Refs angular#3672
@armando-navarro armando-navarro added backport: 21.1.x Cherry-pick onto the 21.1.x branch for a 21.1 minor release comp: docs Documentation. type: chore Maintenance with no user-facing behavior change. labels Nov 26, 2026
@armando-navarro armando-navarro added this to the 22.1.0 milestone Nov 26, 2026
@armando-navarro
armando-navarro deleted the docs-22.1.0 branch November 27, 2026 01:20
@armando-navarro
armando-navarro restored the docs-22.1.0 branch November 27, 2026 01:21
@armando-navarro armando-navarro changed the title docs: document the 22.1.0 changes docs: document the 22.0.0 changes Nov 27, 2026
@armando-navarro armando-navarro modified the milestones: 22.1.0, 22.0.0 Nov 27, 2026
AngularFire creates no Remote Config instance on the server, so
inject(RemoteConfig) returns null there while its type says
RemoteConfig. The page showed the injection without mentioning it.
The step that adds the setup file to include in tsconfig.spec.json is
needed on @angular/build 21.2 to 22.1, not only on 21.2. Measured on
21.0.6, 21.1.5, 21.2.0, 21.2.31, 22.0.0, 22.0.9, 22.1.9, 22.2.0, 22.2.8
and 22.3.0. The page now says to always add it, which works on all of
them.

Four error messages longer than 80 characters move from inline code
into fenced blocks after the sentence that introduces them.
Documents angular#3851: the deploy question in ng add, what it writes for
Firebase App Hosting and Firebase Hosting, how ng deploy picks the
Firebase project, and the three behavior changes in the upgrade guide.
The deploy guide drops its out-of-date note and its siteTarget section,
whose option does not exist.
@armando-navarro
armando-navarro marked this pull request as ready for review December 3, 2026 19:01
The upgrade guide drops its release candidate title and the sentence
about the next tag, and its commands install @angular/fire@22 instead
of @next. A 22.0.1 canary build is told to run npm install, because
ng update does not offer 22.0.0 to a higher version number.

The Quickstart creates an Angular 22 project. Its npm 11.6 note is
removed: npm 10.9.11 installs a new Angular 22.3 project without the
edgesOut crash, and npm/cli#9787 is closed as fixed in npm 11.

@tyler-reitz tyler-reitz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking: the "Which Firebase project" section reads as if firebaseProject and --firebase-project also choose the project for App Hosting. From reading firebaseProject.ts, with appHostingBackend set any value other than projects.default throws the conflict error. A clause saying App Hosting always uses the default project would cover it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport: 21.1.x Cherry-pick onto the 21.1.x branch for a 21.1 minor release comp: docs Documentation. type: chore Maintenance with no user-facing behavior change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants