Releases: firebase/firebase-admin-node
Releases · firebase/firebase-admin-node
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_CREDENTIALS
environment 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
UserRecord
type.
Firebase Admin Node.js SDK v6.4.0
- [added]
messaging.Aps
type now supports configuring a critical sound. A newmessaging.CriticalSound
type has been introduced for this purpose. - [added]
messaging.AndroidNotification
type now supportschannel_id
. - [added]
AppOptions
now accepts an optionalhttp.Agent
object. Thehttp.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()
, andadmin.credential.refreshToken()
methods now accept anhttp.Agent
as an optional argument. If specified, thehttp.Agent
will 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
AndroidApp
andIosApp
APIs for updating individual apps.
Cloud Messaging
ApsAlert
type 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
Transaction
type from theadmin.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
- Upgraded Cloud Firestore client to v0.18.0.
- Exposed the
CollectionReference
,WriteBatch
,WriteResult
and
QueryDocumentSnapshot
types from theadmin.firestore
namespace.
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-contains
query 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
Timestamp
type from theadmin.firestore
namespace.
Firebase Admin Node.js SDK v5.13.0
- The Admin SDK can now read the Firebase/Google Cloud Platform project ID from both
GCLOUD_PROJECT
andGOOGLE_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
- 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.