monsqlize 3.3.0 → 3.3.1

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.
@@ -332,8 +332,8 @@ export interface FindPageOptions<TSchema = any> {
332
332
  hint?: Document | string;
333
333
  collation?: Document;
334
334
  batchSize?: number;
335
- /** Cache TTL in milliseconds for the non-stream/non-explain page result */
336
- cache?: number;
335
+ /** MongoDB expression variables; overrides `options.let` when both are supplied. */ let?: Document;
336
+ /** Cache TTL in milliseconds for the non-stream/non-explain page result */ cache?: number;
337
337
  /** Include timing/meta info in result — pass true or MetaOptions for sub-step detail */
338
338
  meta?: boolean | MetaOptions;
339
339
  }
@@ -504,10 +504,10 @@ export interface UpdateBatchResult {
504
504
  errors: BatchErrorRecord[];
505
505
  /** Per-batch retry records. */
506
506
  retries: BatchRetryRecord[];
507
- /** Number of documents skipped by strict model version conflict handling. */
508
- conflictCount?: number;
509
- /** Document ids skipped by strict model version conflict handling. */
510
- conflictedIds?: unknown[];
507
+ /** Number of documents skipped by strict model version conflict handling. */ conflictCount?: number;
508
+ /** Document ids skipped by strict model version conflict handling. */ conflictedIds?: unknown[];
509
+ /** Selected model candidates that no longer match the filter or were removed before writing. */ skippedCount?: number;
510
+ skippedIds?: unknown[];
511
511
  }
512
512
 
513
513
  export interface DeleteBatchResult {
@@ -332,8 +332,8 @@ export interface FindPageOptions<TSchema = any> {
332
332
  hint?: Document | string;
333
333
  collation?: Document;
334
334
  batchSize?: number;
335
- /** Cache TTL in milliseconds for the non-stream/non-explain page result */
336
- cache?: number;
335
+ /** MongoDB expression variables; overrides `options.let` when both are supplied. */ let?: Document;
336
+ /** Cache TTL in milliseconds for the non-stream/non-explain page result */ cache?: number;
337
337
  /** Include timing/meta info in result — pass true or MetaOptions for sub-step detail */
338
338
  meta?: boolean | MetaOptions;
339
339
  }
@@ -504,10 +504,10 @@ export interface UpdateBatchResult {
504
504
  errors: BatchErrorRecord[];
505
505
  /** Per-batch retry records. */
506
506
  retries: BatchRetryRecord[];
507
- /** Number of documents skipped by strict model version conflict handling. */
508
- conflictCount?: number;
509
- /** Document ids skipped by strict model version conflict handling. */
510
- conflictedIds?: unknown[];
507
+ /** Number of documents skipped by strict model version conflict handling. */ conflictCount?: number;
508
+ /** Document ids skipped by strict model version conflict handling. */ conflictedIds?: unknown[];
509
+ /** Selected model candidates that no longer match the filter or were removed before writing. */ skippedCount?: number;
510
+ skippedIds?: unknown[];
511
511
  }
512
512
 
513
513
  export interface DeleteBatchResult {
@@ -155,6 +155,7 @@ export interface DataTaskPreviewOptions {
155
155
  }
156
156
 
157
157
  export interface DataTaskBackupRef {
158
+ /** Canonical EJSON backup manifest. BSON identities and payloads remain typed when reopened. */
158
159
  runId: string;
159
160
  manifestPath: string;
160
161
  checksum: string;
@@ -155,6 +155,7 @@ export interface DataTaskPreviewOptions {
155
155
  }
156
156
 
157
157
  export interface DataTaskBackupRef {
158
+ /** Canonical EJSON backup manifest. BSON identities and payloads remain typed when reopened. */
158
159
  runId: string;
159
160
  manifestPath: string;
160
161
  checksum: string;
@@ -206,6 +206,9 @@ export type ModelUpdateManyOptions = ModelWriteOptions & {
206
206
  export type ModelStrictUpdateManyResult = UpdateResult & {
207
207
  conflictCount: number;
208
208
  conflictedIds: unknown[];
209
+ /** Selected candidates no longer matching the business filter or removed before the write. */
210
+ skippedCount: number;
211
+ skippedIds: unknown[];
209
212
  };
210
213
 
211
214
  export type ModelIndexSource = 'definition' | 'softDelete';
@@ -206,6 +206,9 @@ export type ModelUpdateManyOptions = ModelWriteOptions & {
206
206
  export type ModelStrictUpdateManyResult = UpdateResult & {
207
207
  conflictCount: number;
208
208
  conflictedIds: unknown[];
209
+ /** Selected candidates no longer matching the business filter or removed before the write. */
210
+ skippedCount: number;
211
+ skippedIds: unknown[];
209
212
  };
210
213
 
211
214
  export type ModelIndexSource = 'definition' | 'softDelete';
@@ -24,6 +24,10 @@ export interface SSHConfig {
24
24
  readyTimeout?: number;
25
25
  /** Keep-alive interval in milliseconds (default: 30000). */
26
26
  keepaliveInterval?: number;
27
+ /** ssh2 host-key hash algorithm; pair with hostVerifier for pinned fingerprints. */
28
+ hostHash?: string;
29
+ /** Reject untrusted SSH server host keys by returning false. */
30
+ hostVerifier?: (key: string | Buffer) => boolean;
27
31
  /** Target database host as seen from the SSH server (default: auto-parsed from URI). */
28
32
  dstHost?: string;
29
33
  /** Target database port as seen from the SSH server (default: auto-parsed from URI). */
@@ -24,6 +24,10 @@ export interface SSHConfig {
24
24
  readyTimeout?: number;
25
25
  /** Keep-alive interval in milliseconds (default: 30000). */
26
26
  keepaliveInterval?: number;
27
+ /** ssh2 host-key hash algorithm; pair with hostVerifier for pinned fingerprints. */
28
+ hostHash?: string;
29
+ /** Reject untrusted SSH server host keys by returning false. */
30
+ hostVerifier?: (key: string | Buffer) => boolean;
27
31
  /** Target database host as seen from the SSH server (default: auto-parsed from URI). */
28
32
  dstHost?: string;
29
33
  /** Target database port as seen from the SSH server (default: auto-parsed from URI). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monsqlize",
3
- "version": "3.3.0",
3
+ "version": "3.3.1",
4
4
  "description": "TypeScript production data runtime layer for MongoDB today, with cache, transactions, pools, models, sync, and observability",
5
5
  "type": "commonjs",
6
6
  "main": "./dist/cjs/index.cjs",
@@ -21,6 +21,7 @@
21
21
  "./package.json": "./package.json"
22
22
  },
23
23
  "files": [
24
+ "changelogs/v3.3.1.md",
24
25
  "changelogs/v3.3.0.md",
25
26
  "changelogs/v3.2.0.md",
26
27
  "changelogs/v3.1.14.md",
@@ -165,7 +166,7 @@
165
166
  "ssh2": "1.17.0"
166
167
  },
167
168
  "overrides": {
168
- "fast-uri": "3.1.5",
169
+ "fast-uri": "^3.1.8",
169
170
  "minimatch@3.1.5": {
170
171
  "brace-expansion": "1.1.18"
171
172
  },