René's URL Explorer Experiment


Title: chore(sample): update the sample app to Angular 22 by armando-navarro · Pull Request #3845 · angular/angularfire · GitHub

Open Graph Title: chore(sample): update the sample app to Angular 22 by armando-navarro · Pull Request #3845 · angular/angularfire

X Title: chore(sample): update the sample app to Angular 22 by armando-navarro · Pull Request #3845 · angular/angularfire

Description: Checklist Issue number for this PR: Refs #3669, Refs #3843 Docs included?: the sample's own README.md is updated. No library docs change. Test units included?: yes, the sample's two spec files (4 tests). app.component.spec.ts is updated for the new providers and name. Breaking change?: no. The library is untouched. In a clean directory, yarn install, yarn test run successfully?: yes, with npm, inside sample/ on Node 24: npm install ../angular-fire-22.0.0.tgz, ng build, ng test (2 files, 4 tests). Description Carries sample/ from Angular 21 to Angular 22, the way #3671 carried it from 19 to 21: ng update @angular/core@22 @angular/cli@22 Hand edits that match what ng new 22 generates AngularFire library installed from the tarball the root build produces. It also moves the sample's server-rendering setup to initializeBrowserOrServerApp from #3844, which replaces the hand-written server-app factory and releases the server app the old factory never released. Changes @angular/* 22.2, TypeScript 6.0, firebase 13, vitest 5, jsdom 30, @types/node 22, the ng22-test name, and Node 24 (firebase 13's packages require it). app.config.ts matches the 22 scaffold: provideBrowserGlobalErrorListeners() added provideZonelessChangeDetection() dropped (zoneless is the default) provideClientHydration() without withIncrementalHydration() (incremental hydration is the default). The spec drops the same two providers. Removed ChangeDetectionStrategy.Eager that Angular's change-detection-eager migration added to all nine components again (so it does not appear in the diff), and the sample runs on Angular 22's OnPush default. app.config.ts: one provideFirebaseApp(() => initializeBrowserOrServerApp(environment.firebase)) for both platforms, as step 4 of the Authentication guide shows. In the browser the helper returns the ordinary Firebase app. On the server it reads the ID token from the request context that server.ts already passes to handle(), builds a Firebase server app for a signed-in render and the ordinary app otherwise, and releases the server app once the render is garbage-collected. app.config.client.ts is deleted. Its browser-only providers (Analytics with the two tracking services, Messaging, Performance) move to app.config.ts, since each already provides nothing on the server, and main.ts bootstraps from appConfig, as ng new does. app.config.server.ts keeps only provideServerRendering. Calls to functions AngularFire does not wrap (doc, collection, query, orderBy, increment, serverTimestamp) sit outside runInInjectionContext, with a one-line comment on each. Only the wrapped functions, sign-in and sign-out calls run inside it. GoogleAuthProvider, onIdTokenChanged and signInWithPopup are imported from @angular/fire/auth. onAuthStateChanged stays the SDK's own inside the sample's authState, which applies the wrapper to the whole function. server.ts keeps the trustProxyHeaders: ['x-forwarded-host', 'x-forwarded-proto'] the trust-proxy-headers migration wrote, with a comment in place of its TODO. angular.json: security.allowedHosts gains localhost. Angular 22 gives a 400 Bad Request error to any host not on that list (Angular 21 logged an error and fell back to client-side rendering), and it was empty, so npm run serve:ssr:ng22-test could not be reached locally. README.md has a "Running the server build" section that says deployments add their hostnames there or in NG_ALLOWED_HOSTS. tsconfig.app.json keeps the extendedDiagnostics block the strict-safe-navigation-narrow migration wrote. functions/package.json moves to the Node 24 runtime. Both package-lock.json files regenerated with npm 10. Behavior to know The sample now needs Node 24.15 or later. On Node 22 the install prints EBADENGINE warnings for the firebase packages. Verification ng build and ng test (2 files, 4 tests) on Node 24.22.2, with one copy of firebase (npm ls firebase). Emulator session (firebase emulators:exec --import seed with the production server bundle): signed-out server render with the eight demos in the HTML, anonymous sign-in, an upboat write, the Cloud Function call, sign-out, then a signed-in server render whose HTML carries the uid. No AngularFire warning or error in the browser console or the server log. The same under ng serve, where AngularFire's injection-context warning prints: sign-in, a write and the function call with no AngularFire warning. The hydration log reports the seven @defer blocks on incremental hydration. npm run build of the Cloud Function from its regenerated lockfile. Not exercised: "New animal" (a window.prompt), "Log in with Google" (a real provider popup), Messaging (no token flow in the emulators).

Open Graph Description: Checklist Issue number for this PR: Refs #3669, Refs #3843 Docs included?: the sample's own README.md is updated. No library docs change. Test units included?: yes, the sample's two spec f...

X Description: Checklist Issue number for this PR: Refs #3669, Refs #3843 Docs included?: the sample's own README.md is updated. No library docs change. Test units included?: yes, the sample's tw...

Opengraph URL: https://github.com/angular/angularfire/pull/3845

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:a25a617a-0664-5fa0-62e9-c7e5502064c7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id992E:10AD06:22ABF0F:2DE75E0:6B036088
html-safe-nonce0c485865ffc8b7246ea83cbb40b784828d2d8e389736fced2a2af6a900936bac
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTJFOjEwQUQwNjoyMkFCRjBGOjJERTc1RTA6NkIwMzYwODgiLCJ2aXNpdG9yX2lkIjoiNzU0MzM1MDQ1MzU5ODM4MDE2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacba785b686b106ec592db668ebdca43d731b5702cb62fa8209dd93edfd06599ed
hovercard-subject-tagpull_request:5251856294
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/angular/angularfire/pull/3845/files
twitter:imagehttps://avatars.githubusercontent.com/u/13904589?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/13904589?s=400&v=4
og:image:altChecklist Issue number for this PR: Refs #3669, Refs #3843 Docs included?: the sample's own README.md is updated. No library docs change. Test units included?: yes, the sample's two spec f...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/angular/angularfire git https://github.com/angular/angularfire.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id49453413
octolytics-dimension-repository_nwoangular/angularfire
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49453413
octolytics-dimension-repository_network_root_nwoangular/angularfire
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/angular/angularfire/pull/3845/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangularfire%2Fpull%2F3845%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangularfire%2Fpull%2F3845%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=angular%2Fangularfire
Reloadhttps://github.com/angular/angularfire/pull/3845/files
Reloadhttps://github.com/angular/angularfire/pull/3845/files
Reloadhttps://github.com/angular/angularfire/pull/3845/files
angularhttps://github.com/angular
angularfirehttps://github.com/angular/angularfire
Codehttps://github.com/angular/angularfire
Issues162 (162)https://github.com/angular/angularfire/issues
Pull requests5 (5)https://github.com/angular/angularfire/pulls
Discussionshttps://github.com/angular/angularfire/discussions
Actionshttps://github.com/angular/angularfire/actions
Projectshttps://github.com/angular/angularfire/projects
Security and qualityhttps://github.com/angular/angularfire/security
Insightshttps://github.com/angular/angularfire/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fangular%2Fangularfire%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fangular%2Fangularfire%2Fissues%2Fnew%2Fchoose
armando-navarrohttps://github.com/armando-navarro
angular:mainhttps://github.com/angular/angularfire/tree/main
armando-navarro:sample-angular-22https://github.com/armando-navarro/angularfire/tree/sample-angular-22
Conversation 0 https://github.com/angular/angularfire/pull/3845
Commits 1 https://github.com/angular/angularfire/pull/3845/commits
Checks 25 https://github.com/angular/angularfire/pull/3845/checks
Files changed https://github.com/angular/angularfire/pull/3845/files
Please reload this pagehttps://github.com/angular/angularfire/pull/3845/files
chore(sample): update the sample app to Angular 22 https://github.com/angular/angularfire/pull/3845/files#top
Show all changes 1 commit https://github.com/angular/angularfire/pull/3845/files
ab768c8 chore(sample): update the sample app to Angular 22 armando-navarro Nov 11, 2026 https://github.com/angular/angularfire/pull/3845/commits/ab768c84c3773445d349f4c3e66f6e98fdbd5cb7
Clear filters https://github.com/angular/angularfire/pull/3845/files
Please reload this pagehttps://github.com/angular/angularfire/pull/3845/files
Please reload this pagehttps://github.com/angular/angularfire/pull/3845/files
README.md https://github.com/angular/angularfire/pull/3845/files#diff-13d1bb8b37eeb4fabb1329de90134fd1276a4309ef42251a4f7b4695b9a56e0a
angular.json https://github.com/angular/angularfire/pull/3845/files#diff-673981e01e9445ce6e90b8ab8ef79129220685c25f4d43610f61ef6dca5bc106
package-lock.json https://github.com/angular/angularfire/pull/3845/files#diff-8dd263eb6e3f74ca68ce8ebd1d94942e40adbc0cd1ba00674c91319b1515a955
package.json https://github.com/angular/angularfire/pull/3845/files#diff-e2410be51c52689eb30077be85d12b829a96f5b8e0640f7b3c086470d1cf751a
package-lock.json https://github.com/angular/angularfire/pull/3845/files#diff-58b632485a6caac41a5fa0a0feb46d8efc2d744bdd4478af0c9dab7c9ad44e23
package.json https://github.com/angular/angularfire/pull/3845/files#diff-5dec6eb863b466eafeca10c5b7785c4a02ec70313949f7bb468403c272195ba1
app.component.spec.ts https://github.com/angular/angularfire/pull/3845/files#diff-8b8097e08be1551db1050d03a5d6774952c847c950f251f37c0fad0b331a0769
app.component.ts https://github.com/angular/angularfire/pull/3845/files#diff-150b40c6accc0141e6d20aaba6ac21401a51427e7f242a672888eb44c3bfbd18
app.config.client.ts https://github.com/angular/angularfire/pull/3845/files#diff-928037ac6c6bbdd20833b1d0febd602650305eeea51ce8604c2cc7c1b41cc643
app.config.server.ts https://github.com/angular/angularfire/pull/3845/files#diff-8f1c388b26e06726aa0e169be4aa6751a9d07585503fca8a1fea62d23be38408
app.config.ts https://github.com/angular/angularfire/pull/3845/files#diff-6b61e6ccd76430a2db66ccc9b218a580e6de7625417734d3cd53644d733cf5fd
auth.component.ts https://github.com/angular/angularfire/pull/3845/files#diff-831f2ce0ebd99c4100bc714ddf72da894e90f21cb9e9df23705972be86b6fad9
firestore.component.ts https://github.com/angular/angularfire/pull/3845/files#diff-1183815d4947c494e42ad317e8cdb60e314654e760e4c78d3bdd432cc7e611cb
upboats.component.ts https://github.com/angular/angularfire/pull/3845/files#diff-474a72be1f959fe66127532b394c46f152dfe01851bd70d90cfe9d07107f0d84
index.html https://github.com/angular/angularfire/pull/3845/files#diff-611fe310817f9ba9c78bad30c8048f5152ab862c99a99216948462e80cebffb6
main.ts https://github.com/angular/angularfire/pull/3845/files#diff-c6ab88b40307b746b3ebbb6bbe25dbaa6c68ad6fa195cb11a43e907da0a81fe4
server.ts https://github.com/angular/angularfire/pull/3845/files#diff-8fa273c68f78040a196f1c7a31f22d4e26917ed7ec242bdf5012b4c78978c93a
tsconfig.app.json https://github.com/angular/angularfire/pull/3845/files#diff-34a0339e8591f96f7c1ff426288306c0695a716307da30b4780c1487e3643152
sample/README.mdhttps://github.com/angular/angularfire/pull/3845/files#diff-13d1bb8b37eeb4fabb1329de90134fd1276a4309ef42251a4f7b4695b9a56e0a
View file https://github.com/armando-navarro/angularfire/blob/ab768c84c3773445d349f4c3e66f6e98fdbd5cb7/sample/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angularfire/pull/3845/{{ revealButtonHref }}
https://github.com/angular/angularfire/pull/3845/files#diff-13d1bb8b37eeb4fabb1329de90134fd1276a4309ef42251a4f7b4695b9a56e0a
https://github.com/angular/angularfire/pull/3845/files#diff-13d1bb8b37eeb4fabb1329de90134fd1276a4309ef42251a4f7b4695b9a56e0a
https://github.com/angular/angularfire/pull/3845/files#diff-13d1bb8b37eeb4fabb1329de90134fd1276a4309ef42251a4f7b4695b9a56e0a
https://github.com/angular/angularfire/pull/3845/files#diff-13d1bb8b37eeb4fabb1329de90134fd1276a4309ef42251a4f7b4695b9a56e0a
sample/angular.jsonhttps://github.com/angular/angularfire/pull/3845/files#diff-673981e01e9445ce6e90b8ab8ef79129220685c25f4d43610f61ef6dca5bc106
View file https://github.com/armando-navarro/angularfire/blob/ab768c84c3773445d349f4c3e66f6e98fdbd5cb7/sample/angular.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angularfire/pull/3845/{{ revealButtonHref }}
https://github.com/angular/angularfire/pull/3845/files#diff-673981e01e9445ce6e90b8ab8ef79129220685c25f4d43610f61ef6dca5bc106
https://github.com/angular/angularfire/pull/3845/files#diff-673981e01e9445ce6e90b8ab8ef79129220685c25f4d43610f61ef6dca5bc106
https://github.com/angular/angularfire/pull/3845/files#diff-673981e01e9445ce6e90b8ab8ef79129220685c25f4d43610f61ef6dca5bc106
https://github.com/angular/angularfire/pull/3845/files#diff-673981e01e9445ce6e90b8ab8ef79129220685c25f4d43610f61ef6dca5bc106
https://github.com/angular/angularfire/pull/3845/files#diff-673981e01e9445ce6e90b8ab8ef79129220685c25f4d43610f61ef6dca5bc106
Please reload this pagehttps://github.com/angular/angularfire/pull/3845/files
Please reload this pagehttps://github.com/angular/angularfire/pull/3845/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.