fix(classes.collection): Guard against missing collection before attaching document constructor in Collection decorator
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
# Changelog
|
||||
|
||||
## 2025-11-28 - 7.0.6 - fix(classes.collection)
|
||||
Guard against missing collection before attaching document constructor in Collection decorator
|
||||
|
||||
- Added a truthy check for `coll` before setting `(coll as any).docCtor` in the Collection decorator (ts/classes.collection.ts).
|
||||
- Prevents a potential TypeError when `collectionFactory.getCollection` returns null/undefined during decorator initialization.
|
||||
|
||||
## 2025-11-28 - 7.0.5 - fix(package)
|
||||
Add package exports entry and remove legacy main/typings fields
|
||||
|
||||
|
||||
Reference in New Issue
Block a user