Accept firebase 13 in @angular/fire 22
Les mainteneurs répondent en général sous 3 jours
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 25/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- angular, typescript
- Domaine
- tooling
Piste de recherche
A linked pull request is already open, so check its status before starting. The proposal identifies the package peer dependencies, the ng add and v22 ng update migration, generated wrappers, and CI specs as the areas to review; done means Firebase 12 remains supported, Firebase 13 is accepted and tested, and migrations write the installed major's range.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
firebase 13.1.0 is now npm latest, and @angular/fire 22.0.0-rc.0 declares firebase ^12.18.0 as a peer dependency (#3805). So on a new Angular 22 app, running npm install firebase before ng add @angular/fire@next fails:
npm error ERESOLVE unable to resolve dependency tree
npm error peer firebase@"^12.18.0" from @angular/[email protected]
Proposal
I'd like @angular/fire 22.0.0 to accept firebase ^12.18.0 || ^13.0.0:
- Apps on firebase 12 keep working with no change.
rxfiremoves to^6.3.0, the first release whose peer range includes firebase 13.- When
ng addor the v22ng updatemigration writes afirebaseentry, it writes the range of the major already installed:^13.0.0when firebase 13 is installed.^12.18.0otherwise.
- The package keeps building against firebase 12, because the generated wrappers import each function by name from the installed firebase. A new CI job runs the specs against firebase 13.
Why the written range follows the installed major
On npm, ng add installs a missing firebase peer before its schematic runs, at the newest version the range allows. If the schematic then wrote ^12.18.0, the reinstall would downgrade firebase and leave two @firebase/app copies, and the app would fail at startup with "No Firebase App '[DEFAULT]' has been created".
What changes for an app that moves to firebase 13
@angular/fire/aire-exportsfirebase/ai, soVertexAIBackendand theChatSessionclass are no longer available.AgentPlatformBackendreplacesVertexAIBackend, and the v21ng updatemigration already handles it.
- firebase 13's packages declare Node 24.12 or newer.
If you're already on firebase 13 and run into something this doesn't cover, please comment here.
- Langage dominant
- TypeScript
- Étoiles
- 7.8k
- Forks
- 2.2k
- Merge moyen
- 2 j 12 h
- PR mergées (30 j)
- 24
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de angular/angularfire
-
Document the 22.0.0-rc.1 changesPeut-être pris @armando-navarro l’a pris il y a 2 jours. Ouvertecomp: docs type: chore
Difficulté 3/5 Une demi-journée Accessibilité débutants 18/100
angular/angularfire#3834 ·
Les mainteneurs répondent en général sous 3 jours
-
comp: compat comp: ssr comp: zones type: feature version: current (v17+)
Difficulté 3/5 1-2 jours Accessibilité débutants 74/100
angular/angularfire#3832 ·
Les mainteneurs répondent en général sous 3 jours
-
`ɵzoneWrap` ignores a handler passed as an observer object, and holds a wrapped promise forever once its injector is destroyedPeut-être pris @armando-navarro l’a pris il y a 3 jours. Ouvertecomp: app-check comp: core comp: firestore comp: remote-config comp: zones type: bug version: current (v17+)
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
angular/angularfire#3828 ·
Les mainteneurs répondent en général sous 3 jours
-
Eleven wrapped callbacks and remote-config `isSupported` hold the app unstable until something that may never happenPeut-être pris @armando-navarro l’a pris il y a 3 jours. Ouvertecomp: app-check comp: core comp: database comp: remote-config comp: ssr comp: zones type: bug version: current (v17+)
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
angular/angularfire#3826 ·
Les mainteneurs répondent en général sous 3 jours
-
comp: compat comp: firestore comp: storage type: chore
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
angular/angularfire#3822 ·
Les mainteneurs répondent en général sous 3 jours
Toutes les issues de angular/angularfire
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
kunchenguid/gh-axi#247 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
lidge-jun/opencodex#8101 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
effort:S P3 refactor
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
nightscout/nocturne#3243 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
JuliusBrussee/caveman#1449 ·
Les mainteneurs répondent en général sous 1 jour