Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Refresh metadata in CollectionReference when updating or re…
…freshing items This commit updates the `CollectionReference` class to refresh the metadata when updating or refreshing items. The `updateMetadata_` method has been renamed to `refreshMetadata_` to better reflect its purpose of recalculating the collection's metadata timestamp and revision. This change aligns with the recent refactoring of other methods in the `CollectionReference` 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 `updateMetadata_` method has been replaced with `refreshMetadata_` in the `CollectionReference` class. Developers should update their code to use the new method name.
- Loading branch information