Releases: lupas/firewings
Releases · lupas/firewings
v1.0.0
‼️ BREAKING
queryFirestore()
does NOT return an object of items anymore. The second argument = true
does not change anything anymore the function always returns an array of objects now.
The second argument is used for serialization now, see below.
✨ New
queryFirestore(item, serialize)
now takes serialize
as second argument, which can be the following:
true
: addid
andpath
to the item (default)false
: add nothing to the itemfunction(doc): item
: A serialization function that takes a snapshot/doc and returns the item. You can do your own serialization in the function, like converting timestampts to date objects. See documentation for more info.
v0.3.0
v0.2.5
v0.2.4
v0.2.1
setToFirestore()
- Now takes in an optional third argument
batch
, which takes in an uncommited batch and returns it with the .set() added to the batch.
queryFirestore()
- Now takes in an optional second argument
asObject
, returning a map of objects instead of an array of objects if set to true.
unwrapFirestoreDoc()
- same as queryFirestore()
Thanks to @Command2017 for these new features! 👍