You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,15 @@
1
1
# CHANGELOG
2
2
3
-
> Summary index — current release details are packaged in [changelogs/v2.0.0.md](./changelogs/v2.0.0.md); historical details live in the repository changelog archive.
4
-
> **Last updated**: 2026-06-01
3
+
> Summary index — current release details are packaged in [changelogs/v2.0.1.md](./changelogs/v2.0.1.md); historical details live in the repository changelog archive.
4
+
> **Last updated**: 2026-06-03
5
5
6
6
---
7
7
8
8
## Version Overview
9
9
10
10
| Version | Date | Summary | Details |
11
11
|---------|------|---------|---------|
12
+
|[v2.0.1](./changelogs/v2.0.1.md)| 2026-06-03 | Patch: model collection/pool compatibility, automatic-index task dedupe, runtime cache/pool v1 smooth-upgrade fixes, and current docs/types alignment |[View](./changelogs/v2.0.1.md)|
12
13
|[v2.0.0](./changelogs/v2.0.0.md)| 2026-06-01 | 🎉 **v2.0.0 — TypeScript rewrite**: full TypeScript source, cache-hub integration, schema-dsl `^2.0.3` TS dependency, Apache-2.0 licensing, English README, MultiLevel cache support, v1 API compat preserved, optimized npm artifact boundary without default sourcemaps, JSDoc coverage complete, `getPoolStats/getPoolHealth` keyed by pool name, v1 compat fixes included, workspace smooth-upgrade bridge validated for downstream consumers |[View](./changelogs/v2.0.0.md)|
The current v2.0.0 release candidate has been validated against the workspace consumers `chat`, `payment`, `user`, `admin`, `search`, `vext`, and `permission-core` without requiring business-source changes in those projects.
426
+
The current v2.0.1 release has been validated against the workspace consumers `chat`, `payment`, `user`, `admin`, `search`, `vext`, and `permission-core` without requiring business-source changes in those projects.
- v1 smooth-upgrade compatibility patch for Model actual collection names, scoped pools/databases, automatic-index dedupe, and cache/pool option aliases.
509
+
- Documentation and public types aligned with the current runtime behavior.
v2.0.1 is a compatibility and documentation patch for the v2 TypeScript line. It preserves the v2.0.0 public package shape while tightening v1 smooth-upgrade behavior and aligning the published documentation with the current runtime.
6
+
7
+
---
8
+
9
+
## Fixes
10
+
11
+
-**Model routing:**`definition.collection` is now used as the actual MongoDB collection name, with `definition.name` and the registered model name as fallbacks.
12
+
-**Model pool scope:** Model connection metadata now routes through the configured pool and database when creating scoped collections.
13
+
-**Model cache identity:** Model instance cache keys include pool, database, registered model name, and actual collection name to avoid cross-scope reuse.
14
+
-**Populate compatibility:**`relations.from` resolves registered Model names to their actual MongoDB collection names, while still allowing direct collection names when no registered Model exists.
15
+
-**Automatic indexes:** Model index creation is deduplicated per runtime / pool / database / collection / index fingerprint; pending and fulfilled tasks are reused, while failed tasks may retry.
-**Pool compatibility:** Pool selector operation names accept v1-style string inputs.
18
+
19
+
---
20
+
21
+
## Documentation and Types
22
+
23
+
- Added `ModelDefinition.collection` and `ModelDefinition.name` to the public type surface.
24
+
- Documented the actual automatic-index flow: `connect()` only registers models; `ModelInstance` creation schedules per-index `createIndex()` calls; no `listIndexes()` preflight is performed.
25
+
- Updated the current release status, API index count, examples count, and advanced capability index entries.
26
+
- Kept historical changelog archive links unchanged; current published package links remain clean.
0 commit comments