fix(classes.collection): Centralize TC39 decorator metadata initialization and use context.metadata in class decorators

This commit is contained in:
2025-11-28 15:45:15 +00:00
parent 49b121aa5b
commit 3c8308561e
3 changed files with 68 additions and 117 deletions

View File

@@ -1,5 +1,13 @@
# Changelog
## 2025-11-28 - 7.0.14 - fix(classes.collection)
Centralize TC39 decorator metadata initialization and use context.metadata in class decorators
- Add initializeDecoratorMetadata helper to initialize prototype and constructor properties from TC39 decorator metadata
- Refactor Collection and managed decorators to call initializeDecoratorMetadata with context.metadata
- Remove direct reliance on constructor[Symbol.metadata] in class decorators to avoid read-only assignment issues
- Ensure consistent initialization of saveableProperties, globalSaveableProperties, uniqueIndexes, regularIndexes, searchableFields and _svDbOptions
## 2025-11-28 - 7.0.13 - fix(classes.doc)
Remove noisy debug logging from decorators and serialization logic