Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Rename update method to replaceData in DocumentReference
This commit renames the `update` method to `replaceData` in the `DocumentReference` class. The purpose of this change is to provide a more descriptive and accurate method name that reflects the behavior of replacing the entire data object with a new one. This change aligns with the recent refactoring of other methods in the `DocumentReference` class, such as `updatePartial` to `mergeItemData`, `remove` to `removeItem`, `append` to `appendItem`, `add` to `addItem`, `getItem` to `getItemData`, and `exists` to `itemExists`. The renaming of methods improves code readability and consistency. BREAKING CHANGE: The `update` method has been replaced with `replaceData` in the `DocumentReference` class. Developers should update their code to use the new method name.
- Loading branch information