firebase_admin_interop 2.1.0
firebase_admin_interop: ^2.1.0 copied to clipboard
Firebase Admin SDK for Dart written as a wrapper around official Node.js SDK.
2.1.0 #
Upgraded to support firebase-admin Messaging features to send cloud message payloads to device, topic, all, multicast, and subscribe/unsubscribe from topic.
NotificationMessagePayload notification = NotificationMessagePayload(
title: title,
body: body,
clickAction: "FLUTTER_NOTIFICATION_CLICK",
);
MessagingPayload payload = new MessagingPayload(notification: notification, data: DataMessagePayload(data: {"doc" : event.reference.path}));
MessagingDevicesResponse result = await firestoreApp.messaging().sendToDevice(token, payload);
// or firestoreApp.messaging().sendToTopic(topic, payload);
- Breaking change: Updated versions of many dependencies in pubspec
2.0.0 #
Upgraded to support firebase-admin Node.js SDK 8.0.0 or greater and @google-cloud/firestore 2.0.0.
Make sure to update your package.json with following version constraints:
{
"dependencies": {
"firebase-admin": "8.5.0",
"@google-cloud/firestore": "2.0.0"
}
}
- Breaking change: library now requires Node.js >= 8.13.0
- Breaking change: DocumentReference
getCollectionsmethod renamed tolistCollections. - Breaking change: Firestore
getCollectionsmethod renamed tolistCollections. - Added support for Collection Groups in Firestore
1.2.2 #
- Fixed issue with converting to JS types in startAt/startAfter/endAt/endAfter (#45).
1.2.1 #
- Added support for updating nested fields in Firestore (#44)
1.2.0 #
- Added
Query.onandQuery.offmethods (#39). - Added
EventTypenamespace for list of all event types supported byQuery.on. - Added support for
FieldValue.arrayUnionandFieldValue.arrayRemovein Firestore (#42).
1.1.0 #
Upgraded to support firebase-admin Node.js SDK 6.2.0 and @google-cloud/firestore 0.18.0.
Make sure to update your package.json with following version constraints:
{
"dependencies": {
"firebase-admin": "~6.2.0",
"@google-cloud/firestore": "0.18.0"
}
}
Other updates:
- Added
Firestore.getAll()method.
Note that 6.2.0 of JS SDK introduced several breaking changes to JS APIs:
QuerySnapshot.docChangesis no more a field but a methodQuerySnapshot.docChanges().- For query snapshots returned from
DocumentQuery.get()allDocumentChanges now return their type asaddedinstead ofnull. GeoPointno longer exposestoStringmethod.
1.0.0 #
No functional changes in this version, it is published to replace obsolete 0.0.1 version on the Pub's package homepage to improve discoverability.
Ongoing work will continue in 1.0.0-dev.* branch until it's considered stable and feature complete. Make sure to checkout recent dev version for latest updates.
Non-breaking changes may be published to the stable track periodically.
Other updates:
- Brought back dependency on
quiver_hashcode(2.0.0) and removed copy-pasted implementation.
1.0.0-dev.24.0 #
- Added
Firestore.getCollections. - Added
DocumentReference.getCollections. - Added
CollectionReference.idandCollectionReference.path.
1.0.0-dev.23.0 #
- Fixed Firestore queries with
GeoPointandBlobarguments.
1.0.0-dev.22.0 #
- Fixed Firestore queries with
Timestamps. (#35)
1.0.0-dev.21.0 #
- Upgraded to latest node_interop and fixed declaration of
FirebaseErrorclass.
1.0.0-dev.20.0 #
This version introduces several fixes and breaking changes related to Firestore Timestamps. It also should be compatible with latest build_runner (1.0.0) and build_node_compilers (0.2.0).
Users are encouraged to start migrating to use Firestore Timestamps instead of DateTime objects as soon as possible. Read "Firestore Timestamps migration" in README.md for more details.
- Added: Firestore DocumentReference.parent (#30).
- Added: Firestore
Timestamptype. - Added:
FirestoreSettingstype andFirestore.settings()method which allows to controltimestampsInSnapshotsoption for migration to new timestamps. - Breaking: DocumentSnapshot.createTime and DocumentSnapshot.updateTime now return an instance of new
Timestamptype. - Deprecated:
DocumentData.setDateTimeandDocumentData.getDateTimeare deprecated in favor ofsetTimestampandgetTimestampaccordingly.
1.0.0-dev.19.0 #
- Temporarily removed dependency and copied hash functions from quiver_hashcode until it supports Dart 2 stable.
1.0.0-dev.18.0 #
- Fixed: analysis warnings with latest Pub and Dart SDK, prepare for Dart 2 stable.
1.0.0-dev.17.0 #
- Added: complex types support to Firestore lists
- Breaking: removed generic type argument from
DocumentData.setListandDocumentData.getListmethods. Firestore does not enforce single type to all elements in a list, so having generic type on those methods was limiting.
1.0.0-dev.16.0 #
- Fixed: strong mode errors with latest Dart 2 SDK (dev.68).
1.0.0-dev.15.0 #
- Added:
Firestore.runTransaction - Breaking: Firestore
DocumentSnapshot.updateTimetype changed toStringfromDateTime. This field contains ISO formatted datetime string with nanosecond precision and can't be converted to Dart'sDateTimeobject without loosing information (DateTimeonly stores microseconds). This value should be treated as opaque when passed to any transaction as a precondition. - Fixed: dartdevc build by upgrading to latest build_runner.
1.0.0-dev.14.0 #
- Fixed: Firestore, fixed error calling
CollectionReference.document()without arguments. - Fixed: Firestore, fixed error calling
DocumentQuery.where()withDocumentReferenceas value.
1.0.0-dev.13.0 #
- Added: Firestore, support for
SetOptionsandWriteBatch(#14).
1.0.0-dev.12.0 #
- Added: Firestore, support for Blob fields (#13).
1.0.0-dev.11.0 #
- Fixed: Firestore, QuerySnapshot.documentChanges was wrongly testing for isEmpty (#11).
1.0.0-dev.10.0 #
- Added: Firestore, support for
select,offset,startAt,startAfter,endAt,endBefore,FieldValue.deleteandFieldValue.timestamp(#8). - Deprecated: Firestore, deprecated
createGeoPointandcreateFieldPathfunctions. These will be hidden from public API before stable1.0.0release. - Added: Firestore,
Firestore.documentId()function as a replacement for the library-leveldocumentId()function. The library-level function is now deprecated and will be removed before stable1.0.0release.
1.0.0-dev.9.0 #
- Upgraded to JS sdk v5.11.0
FirebaseAdmin.initializeAppcan now be invoked without explicit credentials, in which case the app will be initialized with Google Application Default Credentials (introduced in JS SDK v5.9.1).
1.0.0-dev.8.0 #
- Fixed: GeoPoint treated as invalid type when used in Firebase Functions.
1.0.0-dev.7.0 #
- Added: Firebase Database
Reference.transactionmethod.
1.0.0-dev.6.0 #
- Added: following methods to Firebase
Query:ref,endAt,equalTo,isEqual,limitToFirst,limitToLast,orderByChild,orderByKey,orderByPriority,orderByValue,startAt,toJson,toString. - Added: Firebase Database
Reference.updatemethod.
1.0.0-dev.5.0 #
- Added: Auth service implementation. See
App.auth()method andAuthclass for more details.
1.0.0-dev.4.0 #
- Breaking change:
CollectionReference.addnow expects instance ofDocumentDatainstead of regular DartMap. UseDocumentData.fromMapto upgrade from previous version. - Fixed: Handle nested maps in
DocumentData.fromMap.
1.0.0-dev.3.0 #
- Added: Firestore
DocumentData.keysandDocumentData.toMap().
1.0.0-dev.2.0 #
- Fixed:
DocumentQuery.snapshotswas subscribing to a wrong stream of updates. - Added:
DocumentQuery.get.
1.0.0-dev.1.0 #
- Breaking change: Depends on Dart SDK >= 2.0.0-dev.
- Breaking change: Depends on node_interop >= 1.0.0-dev.
- Breaking change: removed built_value integration.
- Added: Firestore support.
- Internal: run tests in both dart2js and dartdevc.
- Updated documentation with new instructions.
0.1.0-beta.4 #
- Breaking:
FirebaseAdmin.initializeApp()now expects newAppOptionsobject as the first argument and optionalnameargument. See documentation forFirebaseAdmin.initializeApp()for more details and example.
0.1.0-beta.3 #
- Updated JS bindings with type arguments for Promises.
0.1.0-beta.2 #
- New: Preliminary support for built_value models and serializers.
- Breaking: Removed
Jsprefix for interface classes. - Breaking:
Credentialgot split in toCredentialServiceandCredential. Similar changes withDatabaseandDatabaseService. - Upgraded to
node_interop: 0.1.0-beta.4. - Consolidated all JS bindings in to one file.
- Completed interface bindings for Realtime Database.
- Added interface bindings for Firestore.
- Many dartdoc updates for JS bindings.
0.1.0-beta.1 #
- Breaking change:
FirebaseAdmin.initializeApp()now accepts separate named arguments for credential and databaseURL - Breaking change:
Credential.cert()now accepts separate named arguments for service account key parameters - New
Credential.certFromPath()method added. - Added
DataSnapshot.forEach(). - Many dartdoc updates
- Updated to node_interop
0.1.0-beta.1
0.0.1 #
- Initial version