google_cloud_firestore 0.5.5
google_cloud_firestore: ^0.5.5 copied to clipboard
A Dart client library for Google Cloud Firestore, a flexible, scalable database for mobile, web, and server development from Firebase and Google Cloud.
0.5.5 #
- Fixed slow and failing requests under high concurrency by pooling shared HTTP/2 connections by default instead of opening a new HTTP/1.1 connection per request, via
package:http2'sHttp2Client. Credential endpoints that speak plain HTTP, such as the GCE/Cloud Run metadata server, keep using HTTP/1.1. - Widen dependency upper bounds for
google_cloud_firestore_v1(>=0.5.2 <0.7.0) andgoogle_cloud_rpc(>=0.5.2 <0.7.0). - Update
handleFirestoreExceptionto inspectServiceException.statusandServiceException.messagefor compatibility withgoogle_cloud_rpc 0.6.0.
0.5.4 #
- Added support for Firestore Pipelines:
Firestore.pipeline(), thePipelinestage builders, thePipelineFunctionsexpression catalog, and the top-levelequal,notEqual,lessThan,lessThanOrEqual,greaterThan,greaterThanOrEqual,and,or,not,field,constant,ascendinganddescendinghelpers. The expression surface mirrors the Node Admin SDK. - Added
PipelineSource.createFrom()to convert aQueryorVectorQueryinto an equivalent Pipeline. - Added
Transaction.executePipeline()to run a Pipeline at a transaction's snapshot, with the sameindexMode,explainandrawOptionsparameters asPipeline.execute(). - Added Pipeline execution options on
Pipeline.execute():indexMode,explainfor planner statistics (read back fromPipelineSnapshot.explainStats), and arawOptionsescape hatch for options this SDK does not wrap yet. PipelineFunctions.minimum()/maximum()are aggregate-only; uselogicalMinimum()/logicalMaximum()for the element-wise form.- Fixed
Settings.sslbeing ignored when connecting to a customSettings.hostendpoint withoutFIRESTORE_EMULATOR_HOST. - Fixed
FirestoreHttpClient.getProjectId()and_run()ignoringSettings.projectIdandSettings.credentialservice account project IDs whenGOOGLE_CLOUD_PROJECTis set in the ambient process environment.
0.5.3 #
- Added
Settings.headersto attach custom HTTP headers to every outgoing Firestore request. - Fixed intermittent
ClientException: Connection closed before full header was receivedon queries and aggregations under high concurrency; these now retry with backoff. - Fixed
Firestore.getAll()retrying transient errors indefinitely; it now retries a bounded number of times before surfacing the error. - Updated
Transaction.deleteandTransaction.updatetype constraints to acceptDocumentReference<Object?>. (thanks to @Levin-Me) - Made
Timestampencodable by addingtoJsonmethod. (thanks to @OutdatedGuy) - Update dependency
googleapis_auth: ^2.3.3to fixauth/insufficient-permissionerrors with Application Default Credentials that have no quota project set.
0.5.2 #
- Fixed
Firestore.projectIdnot readingGOOGLE_CLOUD_PROJECTwhen using Application Default Credentials locally. - Fixed
FieldMasknot available from export. (thanks to @OutdatedGuy) - Require
google_cloud: '>=0.4.0 <0.6.0'
0.5.1 #
- Added retry support for
WriteBatch.commit()on transient errors (ABORTED,UNAVAILABLE,RESOURCE_EXHAUSTED). - Added an example.
- Added a more detailed project description.
- Update dependency
meta: ^1.17.0to allow workspaces with stable Flutter.
0.5.0 #
- First release.