From 3686816d4a98cabaee4bac089c34a335aa4ddbf8 Mon Sep 17 00:00:00 2001 From: Brian Chen Date: Wed, 8 Jul 2020 10:02:44 -0700 Subject: [PATCH] Revert "feat: add deprecation message to WriteBatch (#1251)" (#1255) --- dev/src/index.ts | 4 ---- dev/src/write-batch.ts | 4 ---- types/firestore.d.ts | 8 -------- 3 files changed, 16 deletions(-) diff --git a/dev/src/index.ts b/dev/src/index.ts index 32997e695..df80fdd01 100644 --- a/dev/src/index.ts +++ b/dev/src/index.ts @@ -658,10 +658,6 @@ export class Firestore implements firestore.Firestore { * @returns {WriteBatch} A WriteBatch that operates on this Firestore * client. * - * @deprecated This class is now deprecated. Use `runTransaction()` to update - * multiple documents atomically or `bulkWriter()` to update a large number - * of documents in parallel. - * * @example * let writeBatch = firestore.batch(); * diff --git a/dev/src/write-batch.ts b/dev/src/write-batch.ts index 74119736c..77a819135 100644 --- a/dev/src/write-batch.ts +++ b/dev/src/write-batch.ts @@ -121,10 +121,6 @@ type PendingWriteOp = () => api.IWrite; * A Firestore WriteBatch that can be used to atomically commit multiple write * operations at once. * - * @deprecated This class is now deprecated. Use `runTransaction()` to update - * multiple documents atomically or `bulkWriter()` to update a large number - * of documents in parallel. - * * @class */ export class WriteBatch implements firestore.WriteBatch { diff --git a/types/firestore.d.ts b/types/firestore.d.ts index 1fed3cb28..c574113cf 100644 --- a/types/firestore.d.ts +++ b/types/firestore.d.ts @@ -284,10 +284,6 @@ declare namespace FirebaseFirestore { /** * Creates a write batch, used for performing multiple writes as a single * atomic operation. - * - * @deprecated This class is now deprecated. Use `runTransaction()` to update - * multiple documents atomically or `bulkWriter()` to update a large number - * of documents in parallel. */ batch(): WriteBatch; } @@ -607,10 +603,6 @@ declare namespace FirebaseFirestore { * * Unlike transactions, write batches are persisted offline and therefore are * preferable when you don't need to condition your writes on read data. - * - * @deprecated This class is now deprecated. Use `runTransaction()` to update - * multiple documents atomically or `bulkWriter()` to update a large number - * of documents in parallel. */ export class WriteBatch { private constructor();