googlearchive / firebase-dart

Dart wrapper for Firebase
https://pub.dev/packages/firebase
404 stars 144 forks source link

Will this lib implement module bundlers per the new Firebase APIs for web and will it even help? #406

Open atebitftw opened 2 years ago

atebitftw commented 2 years ago

See step 4: https://firebase.google.com/docs/web/setup

I ask because this might help with the problem I describe below (maybe not) for Flutter web apps.

The dart API wrappers in this lib are so helpful (thank you!), but it becomes a bit tricky to know which firebase APIs are supported in the current version of this lib. For example. When does which version of this lib supports which firebase features/js version? I got caught up in this today when I tried to use the "!=" operator in a query filter, which is now supported by firebase, but the dart lib and with the underlying js libs at version 8.10.0 do not appear to support it. If I try to fast-forward the js lib versions to the most recent (9.0.1) then more of the API breaks, including initialization.

I know it's tricky to keep all these things in sync. Just wanted to put out some experience with it on my end.

kevmoo commented 2 years ago

@prujohn – ha! That's...tricky.

We'd have to go pretty deep in w/ the JS compiler to support this.

In theory possible, but it would have to start w/ JS compilers.