Repository navigation
docs: document the 22.0.0 changes - #3853
Open
armando-navarro wants to merge 7 commits into
Open
armando-navarro wants to merge 7 commits into
armando-navarro wants to merge 7 commits into
Conversation
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
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
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
approved these changes
Dec 3, 2026
tyler-reitz
left a comment
Collaborator
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is the one docs PR for
22.0.0. It works the way #3835 did for22.0.0-rc.1: one commit per code change, and it merges only just before the22.0.0tag, so the docs onmainand 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 theinject(Messaging)snippet indocs/messaging.mdsayingMessagingisnullduring server rendering and in a browser with no service worker support, andnullchecks in the example service's constructor,message$andunregister.docs: say RemoteConfig is null during server rendering, a fix for already-released behavior: one sentence after theinject(RemoteConfig)snippet indocs/remote-config.mdsayingRemoteConfigisnullduring server rendering.docs(testing): correct the builder range and put long errors in blocks, a fix for already-released docs: indocs/testing.md, adding the setup file toincludeintsconfig.spec.jsonis needed on@angular/build21.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 newng adddeploy 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 the22.0.0release: the upgrade guide drops its release candidate title and installs@angular/fire@22instead 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
yarn install,yarn testrun successfully?: not applicable, docs only.