Releases: swantzter/apollo-datasource-firestore
Releases · swantzter/apollo-datasource-firestore
v6.2.0
v6.1.0
v6.0.1
v6.0.0
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 withnew
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
andupdatedAt
timestamps
v5.3.0
v5.2.0
- If the datasource is initialised with something that isn't a firestore collection a normal
Error
will be thrown instead of anApolloError
, this allows the package to not depend onapollo-server-errors
which in turn depends ongraphql
, which saves us ~2.7M unpacked
v5.1.0
v5.0.0
Breaking Changes
- Dropped support for
@google-cloud/firestore < 5
Improvements
- All methods now handle
FieldValue
- The internal
reviver
andreplacer
used withJSON.parse
andJSON.stringify
are now present on the initialised array, to make custom interactions with the cache easier