MichaelSolati/geofirestore-js

Support for Firebase JS SDK 9

tu4mo opened this issue ยท 9 comments

tu4mo commented

Sorry for not using the template, I don't have a bug to report. Only curious if you have plans to support the new Firebase SDK?

I haven't had time to keep up to date with firebase. I'd say yes though, I'm not even sure if there are compatibility issues, so I'll take some time over the next week to test and update the library to support v9.

Ok, it looks like SDK v9 isn't official yet and is still in beta. So I will add support for it when it launched, but unlikely before. There's some work on testing I'm going to focus on before that, though I'll keep the issue open until v9 lands.

So i've been super busy and haven't been able to get to this yet... If you're using the compat you can just ignore the typing error, but as for supporting modular I'll hopefully look at it over the holidays.

Hello, any news on supporting the Modular approach?

So i've been super busy and haven't been able to get to this yet... If you're using the compat you can just ignore the typing error, but as for supporting modular I'll hopefully look at it over the holidays.

Ok, so I've updated the lib to v5 which supports cloud and web compat (as they're basically the same). I'm currently working on the modular solution, but that will take some time and planning... It is coming though.

In my case, the mobile clients only update their locations on firestore but don't query so I removed the client library and replaced the update with:

import { hash } from 'geokit';
await updateDoc(doc(firestore, 'collection', id), {
 coordinates: location,
  g: {
    geopoint: location,
    geohash: hash({
      lat: location.latitude,
      lng: location.longitude,
    }),
  }
});

Hello, any update on supporting the Modular approach?

Ok, so I've updated the lib to v5 which supports cloud and web compat (as they're basically the same). I'm currently working on the modular solution, but that will take some time and planning... It is coming though.

hschk commented

Hi,
Do you have any updates on supporting modular version of firebase?

Can we help you with anything @MichaelSolati ?

Hello I could help too