From c16d164900954b7d51c516b5f7637e54b1fb8ab7 Mon Sep 17 00:00:00 2001 From: Ali Mihandoost Date: Sat, 31 Aug 2024 20:33:15 +0330 Subject: [PATCH] refactor: Rename `update` method to `updatePartial` in DocumentReference The `update` method in the `DocumentReference` class has been renamed to `updatePartial` to better reflect its purpose. This change improves the clarity and readability of the code. BREAKING CHANGE: The `update` method in the `DocumentReference` not available anymore. use `updatePartial` instead. Co-authored-by: Mohammad Honarvar --- packages/reference/src/document-reference.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/reference/src/document-reference.ts b/packages/reference/src/document-reference.ts index f5900e22..484e0c29 100644 --- a/packages/reference/src/document-reference.ts +++ b/packages/reference/src/document-reference.ts @@ -285,18 +285,17 @@ export class DocumentReference): void { - this.logger__.logMethodArgs?.('update', data); + updatePartial(data: Partial): void { + this.logger__.logMethodArgs?.('updatePartial', data); Object.assign(this.context__.data, data); this.updated__(); }