Accept firebase 13 in @angular/fire 22
維護者通常 3 天內回覆
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 25/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- angular, typescript
- 領域
- tooling
研究方向
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.
由索引模型根據 Issue 內容生成。
描述
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.
- 主要語言
- TypeScript
- 星號
- 7.8k
- 分支
- 2.2k
- 平均合併
- 2 天 12 小時
- 30 天內合併 PR
- 24
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
angular/angularfire 的其他 Issue
-
Document the 22.0.0-rc.1 changes可能已有人在做 @armando-navarro 於 1 天前認領。 未關閉comp: docs type: chore
難度 3/5 半天 新手友好度 18/100
angular/angularfire#3834 ·
維護者通常 3 天內回覆
-
comp: compat comp: ssr comp: zones type: feature version: current (v17+)
難度 3/5 1-2 天 新手友好度 74/100
angular/angularfire#3832 ·
維護者通常 3 天內回覆
-
`ɵzoneWrap` ignores a handler passed as an observer object, and holds a wrapped promise forever once its injector is destroyed可能已有人在做 @armando-navarro 於 1 天前認領。 未關閉comp: app-check comp: core comp: firestore comp: remote-config comp: zones type: bug version: current (v17+)
難度 4/5 3-5 天 新手友好度 25/100
angular/angularfire#3828 ·
維護者通常 3 天內回覆
-
Eleven wrapped callbacks and remote-config `isSupported` hold the app unstable until something that may never happen可能已有人在做 @armando-navarro 於 2 天前認領。 未關閉comp: app-check comp: core comp: database comp: remote-config comp: ssr comp: zones type: bug version: current (v17+)
難度 4/5 3-5 天 新手友好度 48/100
angular/angularfire#3826 ·
維護者通常 3 天內回覆
-
comp: compat comp: firestore comp: storage type: chore
難度 4/5 3-5 天 新手友好度 48/100
angular/angularfire#3822 ·
維護者通常 3 天內回覆
查看 angular/angularfire 的全部 Issue
相似的 Issue
-
check:passed streams:remove
難度 1/5 1 小時以內 新手友好度 62/100
維護者通常 1 天內回覆
-
bug needs triage
難度 2/5 1-3 小時 新手友好度 62/100
actions/setup-node#1659 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
vercel-labs/wterm#267 ·
維護者通常 2 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 75/100
microsoft/AI-Engineering-Coach#355 · 1 個 reaction ·
維護者通常 4 天內回覆
-
level1 nsoc26
難度 2/5 1-3 小時 新手友好度 70/100
GauravKarakoti/SecureFlow#1501 ·
維護者通常 1 天內回覆