fix(collectionfactory): isolate collection caching per database and add easy store replace semantics

This commit is contained in:
2026-04-07 16:24:42 +00:00
parent 97d9302e71
commit d30ce5ccc7
5 changed files with 134 additions and 6 deletions

View File

@@ -1,5 +1,12 @@
# Changelog
## 2026-04-07 - 7.1.7 - fix(collectionfactory)
isolate collection caching per database and add easy store replace semantics
- Change CollectionFactory to cache collections per SmartdataDb instance instead of by class name globally, preventing cross-database collection reuse.
- Add EasyStore.replace() for full object replacement while keeping writeAll() merge behavior for backward compatibility.
- Add regression tests covering multi-database collection isolation, replace() key removal, and writeAll() merge behavior.
## 2026-04-05 - 7.1.6 - fix(collection)
improve duplicate key error reporting on insert