Releases: firebase/firebase-admin-node
Releases · firebase/firebase-admin-node
Firebase Admin Node.js SDK v5.5.0
Realtime Database
app.database()
method now optionally accepts a database URL. This feature can be used to access multiple Realtime Database instances from the same app.- Upgraded the Realtime Database client to the latest available version.
Cloud Firestore
- Upgraded the Cloud Firestore client to the latest available version.
Firebase Admin Node.js SDK v5.4.3
- Fixed a regression in module loading that prevented using the Admin SDK in environments like AWS Lambda. This regression was introduced in the 5.4.0 release, which added a new dependency to Firestore and gRPC. This fix lazily loads Firestore and gRPC, thus enabling Admin SDK usage in the affected environments as long as no explicit attempts are made to use the Firestore API.
Firebase Admin Node.js SDK v5.4.2
- Upgraded the Cloud Firestore client dependency to 0.8.2, which resolves an issue with saving objects with nested document references.
Firebase Admin Node.js SDK v5.4.1
- Upgraded the Firestore client dependency to 0.8.1, which resolves the installation issues reported in the Yarn environment.
Firebase Admin Node.js SDK v5.4.0
- A new
admin.firestore()
API that facilitates accessing Google Cloud Firestore databases using the@google-cloud/firestore
library. See Set Up Your Node.js App for Cloud Firestore to get started.
Firebase Admin Node.js SDK v5.3.0
- SDK now retries outbound HTTP calls on all low-level I/O errors.
Authentication
- A new
setCustomUserClaims()
method for setting custom claims on user accounts. Custom claims set via this method become available on the ID tokens of the corresponding users when they sign in. To learn how to use this API for controlling access to Firebase resources, see Control Access with Custom Claims and Security Rules. - A new
listUsers()
method for listing all the users in a Firebase project in batches.
Storage
- Declared a more concrete TypeScript return type (
Bucket
) for thebucket()
method in the {{storage}} API.
Firebase Admin Node.js SDK v5.2.1
- A bug in the TypeScript type declarations that come bundled with the SDK (
index.d.ts
) has been fixed (#70).
Firebase Admin Node.js SDK v5.2.0
- A new Cloud Storage API that facilitates accessing Google Cloud Storage buckets using the
@google-cloud/storage
library.
Authentication
- New type definitions for the arguments of
createUser()
andupdateUser()
methods.
Cloud Messaging
- Redefined the arguments of
sendToDevice()
using intersection instead of overloading.
Firebase Admin Node.js SDK v5.1.0
- Added the method
getUserByPhoneNumber()
to theadmin.auth
interface. This method enables retrieving user profile information by a phone number. createUser()
andupdateUser()
methods now accept aphoneNumber
property, which can be used to create users with a phone number field and/or update the phone number associated with a user.- Added the
phoneNumber
field toadmin.auth.UserRecord
, which exposes the phone number associated with a user account. - Added the
phoneNumber
field toadmin.auth.UserInfo
, which exposes the phone number associated with a user account by a linked identity provider.