Skip to content

Releases: lupas/firewings

v1.0.0

10 Apr 15:00
ad729a3
Compare
Choose a tag to compare

‼️ 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: add id and path to the item (default)
  • false: add nothing to the item
  • function(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

16 Mar 20:56
Compare
Choose a tag to compare
  • Added copyCollection() function
  • Restructured entire module

v0.2.5

15 Mar 18:05
Compare
Choose a tag to compare
  • Added Types for Firebase-Admin resp. Client SDK separately, see here

(So far only for the Client SDK and the "queryFirestore()" function, will add more typings later)

v0.2.4

04 Jan 09:08
Compare
Choose a tag to compare

(skipped v0.2.2 and v0.2.3)

  • Added deleteEntireCollection()

v0.2.1

30 Dec 14:47
Compare
Choose a tag to compare
v0.2.1 Pre-release
Pre-release

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! 👍

v0.1.2

30 Dec 12:44
Compare
Choose a tag to compare
v0.1.2 Pre-release
Pre-release

addToFirestore() now also clones the payload, so the payload does not get changed.
id and path will be added to the clone, which is returned from the function.

v0.1.0

28 Dec 17:39
Compare
Choose a tag to compare
v0.1.0 Pre-release
Pre-release

Added two new functions that remove added pathand id attributes again before adding/setting a document to Firestore:

  • addToFirestore()
  • setToFirestore()

Thanks to @Command2017 for the contribution!

v0.0.10

22 Dec 16:55
Compare
Choose a tag to compare
v0.0.10 Pre-release
Pre-release

Added Babel, package exports now an es_module for wider support.

v0.0.5

23 Nov 20:39
Compare
Choose a tag to compare
v0.0.5 Pre-release
Pre-release

Used typescript internally.

v0.0.1

22 Nov 20:46
Compare
Choose a tag to compare
v0.0.1 Pre-release
Pre-release

Initial release