Skip to content

Commit

Permalink
Revert "feat: add deprecation message to WriteBatch (#1251)" (#1255)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Chen authored Jul 8, 2020
1 parent d0c6c4b commit 3686816
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
4 changes: 0 additions & 4 deletions dev/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
*
Expand Down
4 changes: 0 additions & 4 deletions dev/src/write-batch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 0 additions & 8 deletions types/firestore.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 3686816

Please sign in to comment.