angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

Angularfire 21 release?

Open elkhalifte opened this issue 10 months ago • 38 comments

It's been over 2 months now when angular 21 was released but angular fire is still at the 20.. and it is the only thing stopping us from upgrading our projects to 21, and the RC version has too much incompatibilities.

elkhalifte avatar Jan 22 '26 03:01 elkhalifte

After seeing all this delay in releasing a version compatible with Angular 21, I'm also dropping this library and migrating to the Firebase JS SDK. I don't intend to keep my project stuck on version 20 just because of this library.

AdanRezende avatar Apr 07 '26 22:04 AdanRezende

I am going to stop this using as well. Not recommended to override, use --force, or --legacy-peer-deps.

AmirSavand avatar May 13 '26 22:05 AmirSavand

Same, AI made switching to the official Firebase JS SDK a breeze.

For the continues updates:

/**
 * Custom RxJS Observable wrapper for Firestore Document snapshots.
 */
export function docData<T = DocumentData>(ref: DocumentReference<T>): Observable<T | undefined> {
  return new Observable<T | undefined>((subscriber) => {
    return onSnapshot(
      ref,
      (snapshot) => subscriber.next(snapshot.data() as T),
      (error) => subscriber.error(error)
    );
  });
}

/**
 * Custom RxJS Observable wrapper for Firestore Query snapshots.
 */
export function collectionSnapshots<T = DocumentData>(q: Query<T>): Observable<QueryDocumentSnapshot<T>[]> {
  return new Observable<QueryDocumentSnapshot<T>[]>((subscriber) => {
    return onSnapshot(
      q,
      (snapshot) => subscriber.next(snapshot.docs),
      (error) => subscriber.error(error)
    );
  });
}

Hypenate avatar May 17 '26 15:05 Hypenate

@jamesdaniels I’d like to hear your thoughts as a maintainer. If you no longer intend to maintain AngularFire, please make an official announcement. The development experience for the Angular community—having to constantly worry about every move the official team makes—is absolutely terrible.

acn-masatadakurihara avatar May 18 '26 07:05 acn-masatadakurihara

21.0.0-rc.0-canary works for us, no problems. Before you go to the effort of removing AngularFire from your codebase please test Angular 22 with 21.0.0-rc.0-canary and report the results here. Maybe it'll work. :-)

tdkehoe avatar Jun 06 '26 22:06 tdkehoe

Is @angular/fire depricated? I mean angular 22 is out abd @angular/fire us still on 20?

SvenBudak avatar Jun 07 '26 21:06 SvenBudak

It is not just problem with Angular, but also angular/fire 20.0.1 use very old firebase package - 11.x, while the available version is 12.x

tscislo avatar Jun 08 '26 11:06 tscislo

wondering if it's time to create a community fork of angular fire....

markgoho avatar Jun 10 '26 14:06 markgoho

@markgoho You should migrate away instead, there is no need for the library any longer with zoneless. You can use the native Firebase SDK just fine.

spock123 avatar Jun 19 '26 07:06 spock123

Ditto, just use a.i to convert to the plain.js SDK.

I managed to do it with excellent results.

tayambamwanza avatar Jun 19 '26 08:06 tayambamwanza

thanks @spock123 -- I'll take a crack at that!

in the meantime I messaged a handful of Googlers and @mgechev got back to me saying the Angular team would be looking into this repo very soon

I think at a minimum, we'd expect this project to be archived with a complete set of migration instructions to the Firebase JS SDK for Angular 20+ projects that can use zoneless

markgoho avatar Jun 19 '26 14:06 markgoho

What about those who are not yet zoneless?

ilyakonrad avatar Jul 01 '26 12:07 ilyakonrad

Alternative to @angular/fire for Angular 22+ and Native Firebase JS SDK 12+

Like many of you, our team faced significant roadblocks when upgrading our production projects to Angular 22+ and the latest Firebase JS SDK v12+ due to the current maintenance status and delayed updates of @angular/fire.

Instead of waiting, we decided to build and publish a lightweight, zoneless-friendly, and modern alternative: ngx-firebase.

We have just released version 22.0.1 and integrated it into our own production monorepo, and we wanted to share it with the community to help others get unstuck.

⚡ What is ngx-firebase? It is a drop-in, lightweight DI wrapper around the official Firebase JS SDK (v12+) built specifically for Angular 22+.

🌟 Key Features: Fully Compatible: Built from the ground up for Angular 22+ and the latest Firebase JS SDK v12+. Zoneless-Friendly: Works seamlessly in modern Angular applications running without Zone.js. Zero API Bloat / Developer Autonomy: It does not try to reinvent or hide the native Firebase API. You import native Firebase methods directly (getFirestore, signInWithEmailAndPassword, etc.) and use ngx-firebase strictly for Angular Dependency Injection and reactive RxJS helper wrappers (docData, collectionSnapshots, user, etc.). Future-Proof: If Firebase releases a new SDK update tomorrow, you don't have to wait for a library update; you can immediately use any new native Firebase features alongside our DI wrappers. 📦 Quick Start: bash npm install ngx-firebase firebase 🔗 Links & Resources: GitHub Repository: quedicesebas/ngx-firebase NPM Package: ngx-firebase We are actively maintaining this project and would love to hear your feedback, issues, or pull requests to make it even better. Let's keep moving the Angular + Firebase ecosystem forward! 🚀

quedicesebas avatar Jul 16 '26 22:07 quedicesebas

I was thinking of doing the same but I feel like it's not worth doing this anymore. Your library is just wrappers. I started a small project and currenlty have a small service that handles the firebase methods

Are you gonna maintain this project 4 or 5 years down the line?

I seen too many angular packages that got abandoned and kept certain projects stuck at certain angular versions. Now with the power of AI it's really not worth it anymore

JGSolutions avatar Jul 17 '26 10:07 JGSolutions

It is a good observation. The idea is to keep the small library up-to-date; contributors are welcome.

quedicesebas avatar Jul 17 '26 17:07 quedicesebas

At this moment, I'm not even use this library anymore. Claude Code (or others) has the ability to read the official docs and integrate to Angular correctly. I will stop subscribe to this thread. Good luck everyone 👋

dalenguyen avatar Jul 17 '26 17:07 dalenguyen

I solved this by migrating from angular/fire to the native firebase, since the newer angular versions are zoneless I see why the angular team dropped support to angular/fire it just is not worthy anymore, simple as that.... Migration wasn't complicated my web app was complicated but I think it's time for everyone else to drop the angular/fire... Cheers

elkhalifte avatar Jul 18 '26 02:07 elkhalifte