geofirestore-js icon indicating copy to clipboard operation
geofirestore-js copied to clipboard

Support for Firebase JS SDK 9

Open tu4mo opened this issue 3 years ago • 9 comments

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?

tu4mo avatar Jun 09 '21 10:06 tu4mo

~~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.

MichaelSolati avatar Jun 10 '21 18:06 MichaelSolati

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.

MichaelSolati avatar Dec 20 '21 19:12 MichaelSolati

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.

spotvin42 avatar Jan 22 '22 14:01 spotvin42

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.

MichaelSolati avatar Feb 09 '22 22:02 MichaelSolati

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,
    }),
  }
});

pdandradeb avatar Feb 25 '22 12:02 pdandradeb

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.

Spark-Cybel avatar Nov 06 '22 10:11 Spark-Cybel

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

hschk avatar Feb 26 '23 10:02 hschk

Can we help you with anything @MichaelSolati ?

kimonneuhoff avatar Apr 06 '23 14:04 kimonneuhoff

Hello I could help too

pikilon avatar Jun 01 '23 13:06 pikilon