monsqlize 3.1.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -2
- package/README.md +23 -23
- package/SECURITY.md +1 -1
- package/changelogs/v3.1.11.md +12 -0
- package/changelogs/v3.1.12.md +12 -0
- package/changelogs/v3.1.13.md +12 -0
- package/changelogs/v3.1.14.md +12 -0
- package/changelogs/v3.1.5.md +3 -0
- package/changelogs/v3.1.6.md +4 -0
- package/changelogs/v3.1.7.md +7 -0
- package/changelogs/v3.1.8.md +12 -0
- package/changelogs/v3.2.0.md +24 -0
- package/dist/cjs/cli/data-task.cjs +22 -4
- package/dist/cjs/index.cjs +674 -38
- package/dist/cjs/transaction/Transaction.cjs +8 -0
- package/dist/cjs/transaction/TransactionManager.cjs +8 -0
- package/dist/esm/index.mjs +674 -38
- package/dist/types/aggregation.d.mts +58 -0
- package/dist/types/aggregation.d.ts +58 -0
- package/dist/types/base.d.mts +4 -0
- package/dist/types/base.d.ts +4 -0
- package/dist/types/collection.d.mts +20 -20
- package/dist/types/collection.d.ts +20 -20
- package/dist/types/model.d.mts +87 -1
- package/dist/types/model.d.ts +87 -1
- package/dist/types/runtime.d.mts +4 -0
- package/dist/types/runtime.d.ts +4 -0
- package/package.json +171 -153
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
-
> Summary index — the
|
|
4
|
-
> **Last updated**: 2026-07
|
|
3
|
+
> Summary index — the latest stable release details are in [changelogs/v3.2.0.md](./changelogs/v3.2.0.md); the earlier RC note remains an unpublished rehearsal archive.
|
|
4
|
+
> **Last updated**: 2026-08-07
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
| Version | Date | Summary | Details |
|
|
11
11
|
|---------|------|---------|---------|
|
|
12
|
+
| [v3.2.0](./changelogs/v3.2.0.md) | 2026-08-07 | Minor: Vector Search APIs, relation-safe Model deletion, and relation projection improvements | [View](./changelogs/v3.2.0.md) |
|
|
12
13
|
| [v3.1.0](./changelogs/v3.1.0.md) | 2026-07-15 | Minor: schema-dsl v3 GA consumption, canonical validation errors, and normalized full-document persistence | [View](./changelogs/v3.1.0.md) |
|
|
13
14
|
| [v3.0.0](./changelogs/v3.0.0.md) | 2026-07-14 | Major: two-instance preview/apply/restore data tasks, write-path policy, runtime-scoped schema DSL, stricter OCC/sync/query contracts, and release recovery controls | [View](./changelogs/v3.0.0.md) |
|
|
14
15
|
| [v2.0.7](./changelogs/v2.0.7.md) | Unpublished | Withdrawn patch candidate; never published and superseded by v3.0.0 | [Archive](./changelogs/v2.0.7.md) |
|
package/README.md
CHANGED
|
@@ -7,9 +7,9 @@ Database-native production data runtime layer for TypeScript services. monSQLize
|
|
|
7
7
|
[](https://www.mongodb.com/)
|
|
8
8
|
[](https://nodejs.org/)
|
|
9
9
|
|
|
10
|
-
Documentation: [English](https://
|
|
11
|
-
Quick path: [Installation](https://
|
|
12
|
-
Configuration reference: [English](https://
|
|
10
|
+
Documentation: [English](https://devcodex-labs.github.io/monSQLize/) · [简体中文](https://devcodex-labs.github.io/monSQLize/zh/)
|
|
11
|
+
Quick path: [Installation](https://devcodex-labs.github.io/monSQLize/getting-started) · [Basic Usage](https://devcodex-labs.github.io/monSQLize/basic-operations)
|
|
12
|
+
Configuration reference: [English](https://devcodex-labs.github.io/monSQLize/configuration) · [简体中文](https://devcodex-labs.github.io/monSQLize/zh/configuration)
|
|
13
13
|
Upgrade and security: [Migration Guide](./MIGRATION.md) · [Private Vulnerability Reporting](./SECURITY.md)
|
|
14
14
|
|
|
15
15
|
The npm `latest` dist-tag and GitHub Pages are the stable channel; `main` may contain the next release. Pages deployment accepts only a versioned Git tag whose package version is already present on npm, so unpublished APIs are not promoted as stable documentation.
|
|
@@ -134,7 +134,7 @@ await users.updateOne(
|
|
|
134
134
|
await msq.close();
|
|
135
135
|
```
|
|
136
136
|
|
|
137
|
-
Next, use the [Basic Usage guide](https://
|
|
137
|
+
Next, use the [Basic Usage guide](https://devcodex-labs.github.io/monSQLize/basic-operations) for common CRUD, pagination, read cache, and Model entry-point examples.
|
|
138
138
|
|
|
139
139
|
### ESM and TypeScript
|
|
140
140
|
|
|
@@ -496,34 +496,34 @@ The v3 line has been validated against the workspace consumers `chat`, `payment`
|
|
|
496
496
|
|
|
497
497
|
See the current support and verification documents:
|
|
498
498
|
|
|
499
|
-
- [English documentation](https://github.com/
|
|
500
|
-
- [Chinese documentation](https://github.com/
|
|
501
|
-
- [English common scenarios](https://github.com/
|
|
502
|
-
- [Support matrix](https://github.com/
|
|
503
|
-
- [test/compatibility/README.md](https://github.com/
|
|
504
|
-
- [test/validation/VERIFICATION-PROGRESS.md](https://github.com/
|
|
499
|
+
- [English documentation](https://github.com/devcodex-labs/monSQLize/blob/main/docs/en/README.md)
|
|
500
|
+
- [Chinese documentation](https://github.com/devcodex-labs/monSQLize/blob/main/docs/zh/README.md)
|
|
501
|
+
- [English common scenarios](https://github.com/devcodex-labs/monSQLize/blob/main/docs/en/recipes.md)
|
|
502
|
+
- [Support matrix](https://github.com/devcodex-labs/monSQLize/blob/main/docs/en/support-matrix.md)
|
|
503
|
+
- [test/compatibility/README.md](https://github.com/devcodex-labs/monSQLize/blob/main/test/compatibility/README.md)
|
|
504
|
+
- [test/validation/VERIFICATION-PROGRESS.md](https://github.com/devcodex-labs/monSQLize/blob/main/test/validation/VERIFICATION-PROGRESS.md)
|
|
505
505
|
|
|
506
506
|
## Documentation
|
|
507
507
|
|
|
508
508
|
Current TypeScript documentation and examples are the source of truth for the v3 package:
|
|
509
509
|
|
|
510
|
-
- Complete docs: [English](https://
|
|
511
|
-
- Constructor configuration: [English](https://
|
|
512
|
-
- Production rollout: [English](https://
|
|
513
|
-
- Production data migration: [English](https://
|
|
514
|
-
- Data tasks API: [English](https://
|
|
515
|
-
- Common scenarios: [English](https://
|
|
516
|
-
- Example source: [examples index](https://github.com/
|
|
517
|
-
- Documentation source: [docs/en](https://github.com/
|
|
518
|
-
- Compatibility checks: [test/compatibility](https://github.com/
|
|
519
|
-
- Verification mapping: [test/validation](https://github.com/
|
|
510
|
+
- Complete docs: [English](https://devcodex-labs.github.io/monSQLize/) · [简体中文](https://devcodex-labs.github.io/monSQLize/zh/)
|
|
511
|
+
- Constructor configuration: [English](https://devcodex-labs.github.io/monSQLize/configuration) · [简体中文](https://devcodex-labs.github.io/monSQLize/zh/configuration)
|
|
512
|
+
- Production rollout: [English](https://devcodex-labs.github.io/monSQLize/production-rollout) · [简体中文](https://devcodex-labs.github.io/monSQLize/zh/production-rollout)
|
|
513
|
+
- Production data migration: [English](https://devcodex-labs.github.io/monSQLize/production-data-migration) · [简体中文](https://devcodex-labs.github.io/monSQLize/zh/production-data-migration)
|
|
514
|
+
- Data tasks API: [English](https://devcodex-labs.github.io/monSQLize/data-tasks) · [简体中文](https://devcodex-labs.github.io/monSQLize/zh/data-tasks)
|
|
515
|
+
- Common scenarios: [English](https://devcodex-labs.github.io/monSQLize/recipes) · [简体中文](https://devcodex-labs.github.io/monSQLize/zh/recipes)
|
|
516
|
+
- Example source: [examples index](https://github.com/devcodex-labs/monSQLize/blob/main/examples/README.md)
|
|
517
|
+
- Documentation source: [docs/en](https://github.com/devcodex-labs/monSQLize/tree/main/docs/en) · [docs/zh](https://github.com/devcodex-labs/monSQLize/tree/main/docs/zh)
|
|
518
|
+
- Compatibility checks: [test/compatibility](https://github.com/devcodex-labs/monSQLize/tree/main/test/compatibility)
|
|
519
|
+
- Verification mapping: [test/validation](https://github.com/devcodex-labs/monSQLize/tree/main/test/validation)
|
|
520
520
|
|
|
521
521
|
Historical v1 and v2 assets are useful for tracing old behavior, but they are not the current publishing surface for v3.
|
|
522
522
|
|
|
523
523
|
## Development
|
|
524
524
|
|
|
525
525
|
```bash
|
|
526
|
-
git clone https://github.com/
|
|
526
|
+
git clone https://github.com/devcodex-labs/monSQLize.git
|
|
527
527
|
cd monSQLize
|
|
528
528
|
npm install
|
|
529
529
|
```
|
|
@@ -581,6 +581,6 @@ monSQLize is released under the [Apache License 2.0](./LICENSE).
|
|
|
581
581
|
|
|
582
582
|
## Support
|
|
583
583
|
|
|
584
|
-
- Issues: [GitHub Issues](https://github.com/
|
|
584
|
+
- Issues: [GitHub Issues](https://github.com/devcodex-labs/monSQLize/issues)
|
|
585
585
|
- npm: [monsqlize](https://www.npmjs.com/package/monsqlize)
|
|
586
|
-
- Website: [https://
|
|
586
|
+
- Website: [https://devcodex-labs.github.io/monSQLize/](https://devcodex-labs.github.io/monSQLize/)
|
package/SECURITY.md
CHANGED
|
@@ -9,7 +9,7 @@ support window.
|
|
|
9
9
|
|
|
10
10
|
## Reporting a Vulnerability / 报告安全问题
|
|
11
11
|
|
|
12
|
-
Use [GitHub private vulnerability reporting](https://github.com/
|
|
12
|
+
Use [GitHub private vulnerability reporting](https://github.com/devcodex-labs/monSQLize/security/advisories/new).
|
|
13
13
|
Do not open a public issue for an undisclosed vulnerability.
|
|
14
14
|
|
|
15
15
|
- Include the affected version, minimal reproduction, impact, and any known workaround.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# monSQLize v3.1.11
|
|
2
|
+
|
|
3
|
+
> Release date: 2026-07-27
|
|
4
|
+
|
|
5
|
+
## Highlights
|
|
6
|
+
|
|
7
|
+
- chore: republish package repository/homepage metadata for GitHub org `devcodex-labs`.
|
|
8
|
+
- Package name `monsqlize` unchanged.
|
|
9
|
+
|
|
10
|
+
## Compatibility boundaries
|
|
11
|
+
|
|
12
|
+
- No runtime API changes in this metadata release.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# monSQLize v3.1.12
|
|
2
|
+
|
|
3
|
+
> Release date: 2026-07-27
|
|
4
|
+
|
|
5
|
+
## Highlights
|
|
6
|
+
|
|
7
|
+
- chore: republish package repository/homepage metadata for GitHub org `devcodex-labs`.
|
|
8
|
+
- Package name `monsqlize` unchanged.
|
|
9
|
+
|
|
10
|
+
## Compatibility boundaries
|
|
11
|
+
|
|
12
|
+
- No runtime API changes in this metadata release.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# monSQLize v3.1.13
|
|
2
|
+
|
|
3
|
+
> Release date: 2026-07-27
|
|
4
|
+
|
|
5
|
+
## Highlights
|
|
6
|
+
|
|
7
|
+
- chore: republish package repository/homepage metadata for GitHub org `devcodex-labs`.
|
|
8
|
+
- Package name `monsqlize` unchanged.
|
|
9
|
+
|
|
10
|
+
## Compatibility boundaries
|
|
11
|
+
|
|
12
|
+
- No runtime API changes in this metadata release.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# monSQLize v3.1.14
|
|
2
|
+
|
|
3
|
+
> Release date: 2026-07-27
|
|
4
|
+
|
|
5
|
+
## Highlights
|
|
6
|
+
|
|
7
|
+
- chore: republish package repository/homepage metadata for GitHub org `devcodex-labs`.
|
|
8
|
+
- Package name `monsqlize` unchanged.
|
|
9
|
+
|
|
10
|
+
## Compatibility boundaries
|
|
11
|
+
|
|
12
|
+
- No runtime API changes in this metadata release.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# monSQLize v3.1.8
|
|
2
|
+
|
|
3
|
+
> Release date: 2026-07-27
|
|
4
|
+
|
|
5
|
+
## Highlights
|
|
6
|
+
|
|
7
|
+
- chore: republish package repository/homepage metadata for GitHub org `devcodex-labs`.
|
|
8
|
+
- Package name `monsqlize` unchanged.
|
|
9
|
+
|
|
10
|
+
## Compatibility boundaries
|
|
11
|
+
|
|
12
|
+
- No runtime API changes in this metadata release.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# monSQLize v3.2.0
|
|
2
|
+
|
|
3
|
+
> Release date: 2026-08-07
|
|
4
|
+
|
|
5
|
+
## Highlights
|
|
6
|
+
|
|
7
|
+
- Added first-class Vector Search entrypoints for Collections and Models.
|
|
8
|
+
- Added relation-aware Model deletion guards and completed relation projection behavior.
|
|
9
|
+
|
|
10
|
+
## Added
|
|
11
|
+
|
|
12
|
+
- Added `Collection.vectorSearch()` and `Model.vectorSearch()` with ANN/ENN option validation, score envelopes, and Model soft-delete visibility expressed inside `$vectorSearch.filter`.
|
|
13
|
+
- Added Model relation-usage reporting plus explicit restrict-style `deleteOneWithRelations()` and `forceDeleteWithRelations()` methods.
|
|
14
|
+
|
|
15
|
+
## Changed
|
|
16
|
+
|
|
17
|
+
- `populate()` now supports local ID arrays, relation-level default inclusion selection, server-side relation projections, and cleanup of internal join keys after nested population.
|
|
18
|
+
- Added stable `INVALID_VECTOR_SEARCH`, `INVALID_RELATION_SELECT`, `RELATION_IN_USE`, and `RELATION_USAGE_UNAVAILABLE` error codes.
|
|
19
|
+
- Updated production dependency overrides to resolve audited `fast-uri` and `brace-expansion` versions.
|
|
20
|
+
|
|
21
|
+
## Compatibility boundaries
|
|
22
|
+
|
|
23
|
+
- This is a backward-compatible minor release. Existing `expr` APIs remain unchanged.
|
|
24
|
+
- Vector Search requires a MongoDB-compatible deployment with a pre-created Vector Search index. The API validates its local contract; deployment/index execution remains an operator-managed prerequisite.
|
|
@@ -31,7 +31,7 @@ var import_node_url = require("node:url");
|
|
|
31
31
|
// package.json
|
|
32
32
|
var package_default = {
|
|
33
33
|
name: "monsqlize",
|
|
34
|
-
version: "3.
|
|
34
|
+
version: "3.2.0",
|
|
35
35
|
description: "TypeScript production data runtime layer for MongoDB today, with cache, transactions, pools, models, sync, and observability",
|
|
36
36
|
type: "commonjs",
|
|
37
37
|
main: "./dist/cjs/index.cjs",
|
|
@@ -52,10 +52,19 @@ var package_default = {
|
|
|
52
52
|
"./package.json": "./package.json"
|
|
53
53
|
},
|
|
54
54
|
files: [
|
|
55
|
+
"changelogs/v3.2.0.md",
|
|
56
|
+
"changelogs/v3.1.14.md",
|
|
57
|
+
"changelogs/v3.1.13.md",
|
|
58
|
+
"changelogs/v3.1.12.md",
|
|
59
|
+
"changelogs/v3.1.11.md",
|
|
60
|
+
"changelogs/v3.1.7.md",
|
|
61
|
+
"changelogs/v3.1.8.md",
|
|
55
62
|
"dist/**/*.cjs",
|
|
56
63
|
"dist/**/*.mjs",
|
|
57
64
|
"dist/**/*.d.ts",
|
|
58
65
|
"dist/**/*.d.mts",
|
|
66
|
+
"changelogs/v3.1.6.md",
|
|
67
|
+
"changelogs/v3.1.5.md",
|
|
59
68
|
"changelogs/v3.1.0.md",
|
|
60
69
|
"changelogs/v3.1.0-rc.0.md",
|
|
61
70
|
"changelogs/v3.0.0.md",
|
|
@@ -95,12 +104,12 @@ var package_default = {
|
|
|
95
104
|
license: "Apache-2.0",
|
|
96
105
|
repository: {
|
|
97
106
|
type: "git",
|
|
98
|
-
url: "git+https://github.com/
|
|
107
|
+
url: "git+https://github.com/devcodex-labs/monSQLize.git"
|
|
99
108
|
},
|
|
100
109
|
bugs: {
|
|
101
|
-
url: "https://github.com/
|
|
110
|
+
url: "https://github.com/devcodex-labs/monSQLize/issues"
|
|
102
111
|
},
|
|
103
|
-
homepage: "https://
|
|
112
|
+
homepage: "https://devcodex-labs.github.io/monSQLize/",
|
|
104
113
|
publishConfig: {
|
|
105
114
|
access: "public",
|
|
106
115
|
registry: "https://registry.npmjs.org/"
|
|
@@ -184,6 +193,15 @@ var package_default = {
|
|
|
184
193
|
mongodb: "6.21.0",
|
|
185
194
|
"schema-dsl": "3.0.0",
|
|
186
195
|
ssh2: "1.17.0"
|
|
196
|
+
},
|
|
197
|
+
overrides: {
|
|
198
|
+
"fast-uri": "3.1.5",
|
|
199
|
+
"minimatch@3.1.5": {
|
|
200
|
+
"brace-expansion": "1.1.18"
|
|
201
|
+
},
|
|
202
|
+
"minimatch@10.2.5": {
|
|
203
|
+
"brace-expansion": "5.0.9"
|
|
204
|
+
}
|
|
187
205
|
}
|
|
188
206
|
};
|
|
189
207
|
|