Releases: firebase/firebase-admin-node
Releases · firebase/firebase-admin-node
Firebase Admin Node.js SDK v7.1.0
Firebase Cloud Messaging
- A new
messaging.sendMulticast()API for sending a message to a list of device registration tokens. - A new
messaging.sendAll()API for sending a list of messages as a single batch.
Firebase Auth
- Improved typings of the
auth.UpdateRequestinterface to clearly specify the nullable fields.
Cloud Firestore
- Upgraded the Cloud Firestore client dependency to v1.1.0.
Firebase Admin Node.js SDK v7.0.0
- Updated the Google Cloud Firestore client to v1.0.1. This contains breaking changes. Refer to the Cloud Firestore release notes for more details and migration instructions.
- Updated the Google Cloud Storage client to v2.3.0. This contains breaking changes. Refer to the Cloud Storage release notes for more details and migration instructions.
Authentication
- The
verifyIdToken()andverifySessionCookie()methods now returnauth/id-token-expiredandauth/session-cookie-expirederror codes for expired JWTs. - Credentials-related errors are now reported with additional helpful details.
Firebase Admin Node.js SDK v6.5.1
- Implemented a Node.js environment check that is executed at package import time.
- Setting the
GOOGLE_APPLICATION_CREDENTIALSenvironment variable to a refresh token file instead of a service account is now supported.
Firebase Admin Node.js SDK v6.5.0
- A new
shaCertificate()method for creating instances ofadmin.projectManagement.ShaCertificate.
Authentication
- Fixed how the SDK parses the error codes sent by auth backend servers.
- Correctly marked optional fields in the
UserRecordtype.
Firebase Admin Node.js SDK v6.4.0
- [added]
messaging.Apstype now supports configuring a critical sound. A newmessaging.CriticalSoundtype has been introduced for this purpose. - [added]
messaging.AndroidNotificationtype now supportschannel_id. - [added]
AppOptionsnow accepts an optionalhttp.Agentobject. Thehttp.Agentspecified via this API is used when the SDK makes backend HTTP calls. This can be used when it is required to deploy the Admin SDK behind a proxy. - [added]
admin.credential.cert(),admin.credential.applicationDefault(), andadmin.credential.refreshToken()methods now accept anhttp.Agentas an optional argument. If specified, thehttp.Agentwill be used when calling Google backend servers to fetch OAuth2 access tokens.
Firebase Admin Node.js SDK v6.3.0
- A new
admin.projectManagement()API for managing apps in a Firebase project. - New
listAndroidApps()andlistIosApps()methods for listing the existing apps in a project. - New
createAndroidApp()andcreateIosApp()methods for creating new apps in a project. - New
AndroidAppandIosAppAPIs for updating individual apps.
Cloud Messaging
ApsAlerttype now supports specifying a subtitle. Thanks chemidy for the
contribution.
Firebase Admin Node.js SDK v6.2.0
Authentication
- Added the email action link generation APIs for creating links for password reset, email verification and email link sign-in via
auth.generatePasswordResetLink(),auth.generateEmailVerificationLink()andauth.generateSignInWithEmailLink().
Cloud Firestore
- Upgraded Cloud Firestore client to v0.19.0.
- Exposed the
Transactiontype from theadmin.firestorenamespace.
Cloud Messaging
- Improved error handling in FCM. The SDK now checks the key
type.googleapis.com/google.firebase.fcm.v1.FcmErrorto set error code. Thanks chemidy for the contribution.
Firebase Admin Node.js SDK v6.1.0
- Upgraded Cloud Firestore client to v0.18.0.
- Exposed the
CollectionReference,WriteBatch,WriteResultand
QueryDocumentSnapshottypes from theadmin.firestorenamespace.
Firebase Admin Node.js SDK v6.0.0
- The Admin SDK no longer supports Node.js 4. Developers must use Node.js 6 or higher to deploy the Admin SDK.
- The Admin SDK now installs Cloud Firestore and Cloud Storage libraries as optional dependencies. SDK installation no longer fails when encountering errors from Cloud Firestore, Cloud Storage or gRPC dependencies.
- Upgraded the Cloud Firestore client from 0.15.4 to 0.16.0. This version contains a new
array-containsquery operator andFieldValue.arrayUnion()andFieldValue.arrayRemove()APIs.
Firebase Admin Node.js SDK v5.13.1
- Upgraded Cloud Firestore client to v0.15.4.
- Exposed the Firestore
Timestamptype from theadmin.firestorenamespace.