Skip to content

Releases: swantzter/apollo-datasource-firestore

v6.2.0

17 Mar 09:37
v6.2.0
aac7ab2
Compare
Choose a tag to compare
  • Update dependencies

v6.1.0

19 Nov 16:29
v6.1.0
94da1ce
Compare
Choose a tag to compare

Update dependencies, mark compatibility with @google-cloud/firestore@^7

v6.0.1

17 Jun 00:37
v6.0.1
d96a168
Compare
Choose a tag to compare

Bug fixes

  • Fix a type bug where ts accidentally required createdAt and updatedAt in some scenarios for createOne and updateOne

v6.0.0

17 Jun 00:08
Compare
Choose a tag to compare

Breaking changes

  • This package is now updated for Apollo Server v4, which also makes it easier to use without apollo server.
    This changes how initialisation works, there is no longer a need to call .initialize() on the class after creating it with new
    Instead you just pass it all to the constructor, therefore the second options argument of the constructor now takes a cache as well, and if none is provided an in-memory key value cache will be used
  • documents now automatically get createdAt and updatedAt timestamps

v5.3.0

14 Aug 12:31
v5.3.0
7a8bafa
Compare
Choose a tag to compare
  • Update dependencies, mark compatibility with @google-cloud/firestore@^6

v5.2.0

27 Jan 20:11
Compare
Choose a tag to compare
  • If the datasource is initialised with something that isn't a firestore collection a normal Error will be thrown instead of an ApolloError, this allows the package to not depend on apollo-server-errors which in turn depends on graphql, which saves us ~2.7M unpacked

v5.1.0

14 Dec 00:26
Compare
Choose a tag to compare
  • If ttl isn't set the cache will be bypassed on find operations

v5.0.0

14 Dec 00:14
Compare
Choose a tag to compare

Breaking Changes

  • Dropped support for @google-cloud/firestore < 5

Improvements

  • All methods now handle FieldValue
  • The internal reviver and replacer used with JSON.parse and JSON.stringify are now present on the initialised array, to make custom interactions with the cache easier

v4.0.0

13 Nov 18:14
Compare
Choose a tag to compare
  • Breaking: Major version bumps of dependencies
  • Use Dataloader's native maxBatchSize feature

v3.0.0

18 Jun 22:26
Compare
Choose a tag to compare
  • Serialise/deserialise DocumentReference, Timestamp, and GeoPoint when caching
  • Fix a bug where the dataloader could only get 10 documents by ID at a time