kossnocorp / typesaurus

🦕 Type-safe TypeScript-first ODM for Firestore
https://typesaurus.com
412 stars 34 forks source link

Support for firebase 9 #99

Closed buster95 closed 3 months ago

buster95 commented 2 years ago

I'm trying to use typesaurus with firebase 9 but doesn't have support, is there a possibility to configure typesaurus with a custom adapter for firestore??

SS when I configure firebase image

SS about mistake image

xbaun commented 2 years ago

I tried to upgrade typesaurus to v9, but with the current typesaurus code base it's only possible to use firebase v9 in compat mode (which isn't compatible to new v9 api).

It appears that either the typesaurus adapter or all typesaurus functions need to be adjusted to reflect the new v9 api. Another problem, I think, is that firebase-admin and firebase@v9 (without compat) no longer share the same API and thus typesaurus no longer work isomporphically between browser and node env.

You can try firebase v9 in compat mode with my fork by declaring in package.json:

"dependencies": {
    "typesaurus": "https://github.com/xbaun/typesaurus-pkg.git"
}
SrBrahma commented 2 years ago

@xbaun looks good but you built in on top of master branch instead of the incoming v8: https://github.com/kossnocorp/typesaurus/tree/v8

@kossnocorp

kossnocorp commented 2 years ago

Sorry, guys for the silence, v9 support is coming.

kossnocorp commented 3 months ago

Shipped with v10