Skip to content

Releases: firebase/firebase-admin-node

Firebase Admin Node.js SDK v6.5.1

23 Jan 21:35
2952450
Compare
Choose a tag to compare
  • Implemented a Node.js environment check that is executed at package import time.
  • Setting the GOOGLE_APPLICATION_CREDENTIALS environment variable to a refresh token file instead of a service account is now supported.

Firebase Admin Node.js SDK v6.5.0

09 Jan 21:44
0fdc901
Compare
Choose a tag to compare

Authentication

  • Fixed how the SDK parses the error codes sent by auth backend servers.
  • Correctly marked optional fields in the UserRecord type.

Firebase Admin Node.js SDK v6.4.0

12 Dec 21:34
e19fc51
Compare
Choose a tag to compare
  • [added] messaging.Aps type now supports configuring a critical sound. A new messaging.CriticalSound type has been introduced for this purpose.
  • [added] messaging.AndroidNotification type now supports channel_id.
  • [added] AppOptions now accepts an optional http.Agent object. The http.Agent specified 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(), and admin.credential.refreshToken() methods now accept an http.Agent as an optional argument. If specified, the http.Agent will be used when calling Google backend servers to fetch OAuth2 access tokens.

Firebase Admin Node.js SDK v6.3.0

28 Nov 22:29
245f31c
Compare
Choose a tag to compare
  • A new admin.projectManagement() API for managing apps in a Firebase project.
  • New listAndroidApps() and listIosApps() methods for listing the existing apps in a project.
  • New createAndroidApp() and createIosApp() methods for creating new apps in a project.
  • New AndroidApp and IosApp APIs for updating individual apps.

Cloud Messaging

Firebase Admin Node.js SDK v6.2.0

19 Nov 19:17
a69424b
Compare
Choose a tag to compare

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() and auth.generateSignInWithEmailLink().

Cloud Firestore

  • Upgraded Cloud Firestore client to v0.19.0.
  • Exposed the Transaction type from the admin.firestore namespace.

Cloud Messaging

  • Improved error handling in FCM. The SDK now checks the key type.googleapis.com/google.firebase.fcm.v1.FcmError to set error code. Thanks chemidy for the contribution.

Firebase Admin Node.js SDK v6.1.0

23 Oct 21:08
2bc7a90
Compare
Choose a tag to compare
  • Upgraded Cloud Firestore client to v0.18.0.
  • Exposed the CollectionReference, WriteBatch, WriteResult and
    QueryDocumentSnapshot types from the admin.firestore namespace.

Firebase Admin Node.js SDK v6.0.0

09 Aug 20:15
2ad53f7
Compare
Choose a tag to compare
  • 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-contains query operator and FieldValue.arrayUnion() and FieldValue.arrayRemove() APIs.

Firebase Admin Node.js SDK v5.13.1

23 Jul 21:53
f1423e3
Compare
Choose a tag to compare
  • Upgraded Cloud Firestore client to v0.15.4.
  • Exposed the Firestore Timestamp type from the admin.firestore namespace.

Firebase Admin Node.js SDK v5.13.0

17 Jul 20:10
fe3a0fd
Compare
Choose a tag to compare
  • The Admin SDK can now read the Firebase/Google Cloud Platform project ID from both GCLOUD_PROJECT and GOOGLE_CLOUD_PROJECT environment variables.
  • Upgraded the Cloud Firestore client from 0.14.0 to 0.15.2. This version of the Firestore client changes how date values are handled.

Authentication

  • The Admin SDK can now create custom tokens without being initialized with service account credentials.
  • The SDK accepts a new serviceAccountId app option, which can be used to specify just the client email of a service account.
  • When deployed in an environment managed by Google (e.g. Google Cloud Functions), the SDK can auto discover a service account ID without any explicit configuration.

Database

  • Updated typings of the admin.database.Query.once() method to return a more specific type.

Cloud Messaging

  • Updated typings of the admin.messaging.WebpushNotification type to include all supported notification fields.

Firebase Admin Node.js SDK v5.12.1

15 May 20:30
af6f04a
Compare
Choose a tag to compare
  • Admin SDK now lazy loads all child namespaces and certain heavy dependencies for faster load times. This change also ensures that only the sources for namespaces that are actually used get loaded into the Node.js process.
  • Upgraded Cloud Firestore client to v0.14.0.