samuelgozi / firebase-firestore-lite

A lightweight cloud firestore library for the browser
MIT License
210 stars 12 forks source link

How to access/use Transform? #17

Closed Mytrill closed 4 years ago

Mytrill commented 4 years ago

Hi,

Thank you for the great library!

How can I access the Transform class? I cannot find it in the exports, nor can I see any examples of how to use it in the documentation.

Thanks!

Mytrill commented 4 years ago

For future reference:

import Transform from "firebase-firestore-lite/dist/Transform"
samuelgozi commented 4 years ago

Thanks. I forgot to update the docs.

Edit: I'm leaving this open because I'm considering changing the structure little bit in order to allow easier/cleaner imports/exports of common types(like GeoPoint, and Transforms).

samuelgozi commented 4 years ago

In version 1.0 the main export will change to:

import { Database, GeoPoint, Transform } from 'firebase-auth-lite';

Up until then I leave this open.

samuelgozi commented 4 years ago

RC1 for version v1.0.0 was released. The changes mentioned in the above comment are live. Please let me know if something doesn't work as expected, or if you have any suggestions.

arcticlula commented 4 years ago

In version 1.0 the main export will change to:

import { Database, GeoPoint, Transform } from 'firebase-auth-lite';

Up until then I leave this open.

Is the above right? shouldn't it be 'firebase-firestore-lite' instead of 'firebase-auth-lite'? Anyway i can't import it either way in the new version

samuelgozi commented 4 years ago

My mistake, you are right