mongodb 6.7.0-dev.20240607.sha.aa429f8c → 6.7.0-dev.20240608.sha.0655c730
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/lib/cursor/abstract_cursor.js +234 -268
- package/lib/cursor/abstract_cursor.js.map +1 -1
- package/lib/cursor/aggregation_cursor.js +10 -17
- package/lib/cursor/aggregation_cursor.js.map +1 -1
- package/lib/cursor/change_stream_cursor.js +6 -6
- package/lib/cursor/change_stream_cursor.js.map +1 -1
- package/lib/cursor/find_cursor.js +64 -72
- package/lib/cursor/find_cursor.js.map +1 -1
- package/mongodb.d.ts +23 -53
- package/package.json +1 -1
- package/src/cursor/abstract_cursor.ts +259 -348
- package/src/cursor/aggregation_cursor.ts +13 -23
- package/src/cursor/change_stream_cursor.ts +12 -15
- package/src/cursor/find_cursor.ts +67 -74
package/mongodb.d.ts
CHANGED
|
@@ -10,17 +10,17 @@ import type { ConnectionOptions as ConnectionOptions_2 , TLSSocket , TLSSocketOp
|
|
|
10
10
|
|
|
11
11
|
/** @public */
|
|
12
12
|
export declare abstract class AbstractCursor<TSchema = any, CursorEvents extends AbstractCursorEvents = AbstractCursorEvents> extends TypedEventEmitter<CursorEvents> {
|
|
13
|
-
/* Excluded from this release type:
|
|
14
|
-
/* Excluded from this release type:
|
|
15
|
-
/* Excluded from this release type:
|
|
16
|
-
/* Excluded from this release type:
|
|
17
|
-
/* Excluded from this release type:
|
|
18
|
-
/* Excluded from this release type:
|
|
19
|
-
/* Excluded from this release type:
|
|
20
|
-
/* Excluded from this release type:
|
|
21
|
-
/* Excluded from this release type:
|
|
22
|
-
/* Excluded from this release type:
|
|
23
|
-
/* Excluded from this release type:
|
|
13
|
+
/* Excluded from this release type: cursorId */
|
|
14
|
+
/* Excluded from this release type: cursorSession */
|
|
15
|
+
/* Excluded from this release type: selectedServer */
|
|
16
|
+
/* Excluded from this release type: cursorNamespace */
|
|
17
|
+
/* Excluded from this release type: documents */
|
|
18
|
+
/* Excluded from this release type: cursorClient */
|
|
19
|
+
/* Excluded from this release type: transform */
|
|
20
|
+
/* Excluded from this release type: initialized */
|
|
21
|
+
/* Excluded from this release type: isClosed */
|
|
22
|
+
/* Excluded from this release type: isKilled */
|
|
23
|
+
/* Excluded from this release type: cursorOptions */
|
|
24
24
|
/** @event */
|
|
25
25
|
static readonly CLOSE: "close";
|
|
26
26
|
/* Excluded from this release type: __constructor */
|
|
@@ -33,7 +33,6 @@ export declare abstract class AbstractCursor<TSchema = any, CursorEvents extends
|
|
|
33
33
|
get readConcern(): ReadConcern | undefined;
|
|
34
34
|
/* Excluded from this release type: session */
|
|
35
35
|
/* Excluded from this release type: session */
|
|
36
|
-
/* Excluded from this release type: cursorOptions */
|
|
37
36
|
get closed(): boolean;
|
|
38
37
|
get killed(): boolean;
|
|
39
38
|
get loadBalanced(): boolean;
|
|
@@ -153,7 +152,13 @@ export declare abstract class AbstractCursor<TSchema = any, CursorEvents extends
|
|
|
153
152
|
abstract clone(): AbstractCursor<TSchema>;
|
|
154
153
|
/* Excluded from this release type: _initialize */
|
|
155
154
|
/* Excluded from this release type: getMore */
|
|
156
|
-
/* Excluded from this release type:
|
|
155
|
+
/* Excluded from this release type: cursorInit */
|
|
156
|
+
/* Excluded from this release type: fetchBatch */
|
|
157
|
+
/* Excluded from this release type: cleanup */
|
|
158
|
+
/* Excluded from this release type: hasEmittedClose */
|
|
159
|
+
/* Excluded from this release type: emitClose */
|
|
160
|
+
/* Excluded from this release type: transformDocument */
|
|
161
|
+
/* Excluded from this release type: throwIfInitialized */
|
|
157
162
|
}
|
|
158
163
|
|
|
159
164
|
/** @public */
|
|
@@ -351,10 +356,9 @@ export declare interface AggregateOptions extends CommandOperationOptions {
|
|
|
351
356
|
* @public
|
|
352
357
|
*/
|
|
353
358
|
export declare class AggregationCursor<TSchema = any> extends AbstractCursor<TSchema> {
|
|
354
|
-
|
|
355
|
-
/* Excluded from this release type:
|
|
359
|
+
readonly pipeline: Document[];
|
|
360
|
+
/* Excluded from this release type: aggregateOptions */
|
|
356
361
|
/* Excluded from this release type: __constructor */
|
|
357
|
-
get pipeline(): Document[];
|
|
358
362
|
clone(): AggregationCursor<TSchema>;
|
|
359
363
|
map<T>(transform: (doc: TSchema) => T): AggregationCursor<T>;
|
|
360
364
|
/* Excluded from this release type: _initialize */
|
|
@@ -3653,9 +3657,9 @@ export declare interface FilterOperators<TValue> extends NonObjectIdLikeDocument
|
|
|
3653
3657
|
|
|
3654
3658
|
/** @public */
|
|
3655
3659
|
export declare class FindCursor<TSchema = any> extends AbstractCursor<TSchema> {
|
|
3656
|
-
/* Excluded from this release type:
|
|
3657
|
-
/* Excluded from this release type:
|
|
3658
|
-
/* Excluded from this release type:
|
|
3660
|
+
/* Excluded from this release type: cursorFilter */
|
|
3661
|
+
/* Excluded from this release type: numReturned */
|
|
3662
|
+
/* Excluded from this release type: findOptions */
|
|
3659
3663
|
/* Excluded from this release type: __constructor */
|
|
3660
3664
|
clone(): FindCursor<TSchema>;
|
|
3661
3665
|
map<T>(transform: (doc: TSchema) => T): FindCursor<T>;
|
|
@@ -4426,8 +4430,6 @@ export declare type Join<T extends unknown[], D extends string> = T extends [] ?
|
|
|
4426
4430
|
|
|
4427
4431
|
/* Excluded from this release type: kBeforeHandshake */
|
|
4428
4432
|
|
|
4429
|
-
/* Excluded from this release type: kBuiltOptions */
|
|
4430
|
-
|
|
4431
4433
|
/* Excluded from this release type: kCancellationToken */
|
|
4432
4434
|
|
|
4433
4435
|
/* Excluded from this release type: kCancellationToken_2 */
|
|
@@ -4438,12 +4440,8 @@ export declare type Join<T extends unknown[], D extends string> = T extends [] ?
|
|
|
4438
4440
|
|
|
4439
4441
|
/* Excluded from this release type: kCheckedOut */
|
|
4440
4442
|
|
|
4441
|
-
/* Excluded from this release type: kClient */
|
|
4442
|
-
|
|
4443
4443
|
/* Excluded from this release type: kClosed */
|
|
4444
4444
|
|
|
4445
|
-
/* Excluded from this release type: kClosed_2 */
|
|
4446
|
-
|
|
4447
4445
|
/* Excluded from this release type: kConnectionCounter */
|
|
4448
4446
|
|
|
4449
4447
|
/* Excluded from this release type: kConnections */
|
|
@@ -4452,8 +4450,6 @@ export declare type Join<T extends unknown[], D extends string> = T extends [] ?
|
|
|
4452
4450
|
|
|
4453
4451
|
/* Excluded from this release type: kDecorateResult */
|
|
4454
4452
|
|
|
4455
|
-
/* Excluded from this release type: kDocuments */
|
|
4456
|
-
|
|
4457
4453
|
/* Excluded from this release type: kErrorLabels */
|
|
4458
4454
|
|
|
4459
4455
|
/** @public */
|
|
@@ -4466,20 +4462,10 @@ export declare type KeysOfOtherType<TSchema, Type> = {
|
|
|
4466
4462
|
[key in keyof TSchema]: NonNullable<TSchema[key]> extends Type ? never : key;
|
|
4467
4463
|
}[keyof TSchema];
|
|
4468
4464
|
|
|
4469
|
-
/* Excluded from this release type: kFilter */
|
|
4470
|
-
|
|
4471
4465
|
/* Excluded from this release type: kGeneration */
|
|
4472
4466
|
|
|
4473
|
-
/* Excluded from this release type: kId */
|
|
4474
|
-
|
|
4475
|
-
/* Excluded from this release type: kInit */
|
|
4476
|
-
|
|
4477
|
-
/* Excluded from this release type: kInitialized */
|
|
4478
|
-
|
|
4479
4467
|
/* Excluded from this release type: kInternalClient */
|
|
4480
4468
|
|
|
4481
|
-
/* Excluded from this release type: kKilled */
|
|
4482
|
-
|
|
4483
4469
|
/* Excluded from this release type: kMetrics */
|
|
4484
4470
|
|
|
4485
4471
|
/* Excluded from this release type: kMinPoolSizeTimer */
|
|
@@ -4609,22 +4595,12 @@ export declare interface KMSProviders {
|
|
|
4609
4595
|
} | Record<string, never>;
|
|
4610
4596
|
}
|
|
4611
4597
|
|
|
4612
|
-
/* Excluded from this release type: kNamespace */
|
|
4613
|
-
|
|
4614
|
-
/* Excluded from this release type: kNumReturned */
|
|
4615
|
-
|
|
4616
4598
|
/* Excluded from this release type: kOptions */
|
|
4617
4599
|
|
|
4618
|
-
/* Excluded from this release type: kOptions_2 */
|
|
4619
|
-
|
|
4620
|
-
/* Excluded from this release type: kOptions_3 */
|
|
4621
|
-
|
|
4622
4600
|
/* Excluded from this release type: kPending */
|
|
4623
4601
|
|
|
4624
4602
|
/* Excluded from this release type: kPinnedConnection */
|
|
4625
4603
|
|
|
4626
|
-
/* Excluded from this release type: kPipeline */
|
|
4627
|
-
|
|
4628
4604
|
/* Excluded from this release type: kPoolState */
|
|
4629
4605
|
|
|
4630
4606
|
/* Excluded from this release type: kProcessingWaitQueue */
|
|
@@ -4633,8 +4609,6 @@ export declare interface KMSProviders {
|
|
|
4633
4609
|
|
|
4634
4610
|
/* Excluded from this release type: kServer_2 */
|
|
4635
4611
|
|
|
4636
|
-
/* Excluded from this release type: kServer_3 */
|
|
4637
|
-
|
|
4638
4612
|
/* Excluded from this release type: kServerError */
|
|
4639
4613
|
|
|
4640
4614
|
/* Excluded from this release type: kServerSession */
|
|
@@ -4643,14 +4617,10 @@ export declare interface KMSProviders {
|
|
|
4643
4617
|
|
|
4644
4618
|
/* Excluded from this release type: kSession */
|
|
4645
4619
|
|
|
4646
|
-
/* Excluded from this release type: kSession_2 */
|
|
4647
|
-
|
|
4648
4620
|
/* Excluded from this release type: kSnapshotEnabled */
|
|
4649
4621
|
|
|
4650
4622
|
/* Excluded from this release type: kSnapshotTime */
|
|
4651
4623
|
|
|
4652
|
-
/* Excluded from this release type: kTransform */
|
|
4653
|
-
|
|
4654
4624
|
/* Excluded from this release type: kTxnNumberIncrement */
|
|
4655
4625
|
|
|
4656
4626
|
/* Excluded from this release type: kWaitQueue */
|