mongodb 4.1.2 → 4.1.3
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/README.md +2 -2
- package/lib/operations/list_databases.js.map +1 -1
- package/mongodb.d.ts +11 -2
- package/mongodb.ts34.d.ts +11 -2
- package/package.json +10 -6
- package/src/collection.ts +1 -1
- package/src/operations/list_databases.ts +6 -1
package/README.md
CHANGED
|
@@ -40,8 +40,8 @@ Change history can be found in [`HISTORY.md`](https://github.com/mongodb/node-mo
|
|
|
40
40
|
|
|
41
41
|
For version compatibility matrices, please refer to the following links:
|
|
42
42
|
|
|
43
|
-
- [MongoDB](https://docs.mongodb.com/drivers/node/compatibility
|
|
44
|
-
- [NodeJS](https://docs.mongodb.com/drivers/node/compatibility
|
|
43
|
+
- [MongoDB](https://docs.mongodb.com/drivers/node/current/compatibility/#mongodb-compatibility)
|
|
44
|
+
- [NodeJS](https://docs.mongodb.com/drivers/node/current/compatibility/#language-compatibility)
|
|
45
45
|
|
|
46
46
|
#### Typescript Version
|
|
47
47
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list_databases.js","sourceRoot":"","sources":["../../src/operations/list_databases.ts"],"names":[],"mappings":";;;AAAA,uCAAsE;AACtE,2CAAoD;AACpD,oCAAsD;
|
|
1
|
+
{"version":3,"file":"list_databases.js","sourceRoot":"","sources":["../../src/operations/list_databases.ts"],"names":[],"mappings":";;;AAAA,uCAAsE;AACtE,2CAAoD;AACpD,oCAAsD;AAwBtD,gBAAgB;AAChB,MAAa,sBAAuB,SAAQ,0BAAqC;IAG/E,YAAY,EAAM,EAAE,OAA8B;QAChD,KAAK,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC;QAC7B,IAAI,CAAC,EAAE,GAAG,IAAI,wBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAClD,CAAC;IAED,OAAO,CAAC,MAAc,EAAE,OAAsB,EAAE,QAAuC;QACrF,MAAM,GAAG,GAAa,EAAE,aAAa,EAAE,CAAC,EAAE,CAAC;QAC3C,IAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE;YACzB,GAAG,CAAC,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;SACrC;QAED,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;YACvB,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;SAClC;QAED,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC,mBAAmB,KAAK,SAAS,EAAE;YACzD,GAAG,CAAC,mBAAmB,GAAG,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC;SAC5D;QAED,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC;IACvD,CAAC;CACF;AAzBD,wDAyBC;AAED,yBAAa,CAAC,sBAAsB,EAAE,CAAC,kBAAM,CAAC,cAAc,EAAE,kBAAM,CAAC,SAAS,CAAC,CAAC,CAAC"}
|
package/mongodb.d.ts
CHANGED
|
@@ -1729,7 +1729,7 @@ export declare class Collection<TSchema extends Document = Document> {
|
|
|
1729
1729
|
* @param pipeline - An array of aggregation pipelines to execute
|
|
1730
1730
|
* @param options - Optional settings for the command
|
|
1731
1731
|
*/
|
|
1732
|
-
aggregate<T =
|
|
1732
|
+
aggregate<T = Document>(pipeline?: Document[], options?: AggregateOptions): AggregationCursor<T>;
|
|
1733
1733
|
/**
|
|
1734
1734
|
* Create a new Change Stream, watching for new changes (insertions, updates, replacements, deletions, and invalidations) in this collection.
|
|
1735
1735
|
*
|
|
@@ -3617,7 +3617,16 @@ export declare interface ListDatabasesOptions extends CommandOperationOptions {
|
|
|
3617
3617
|
}
|
|
3618
3618
|
|
|
3619
3619
|
/** @public */
|
|
3620
|
-
export declare
|
|
3620
|
+
export declare interface ListDatabasesResult {
|
|
3621
|
+
databases: ({
|
|
3622
|
+
name: string;
|
|
3623
|
+
sizeOnDisk?: number;
|
|
3624
|
+
empty?: boolean;
|
|
3625
|
+
} & Document)[];
|
|
3626
|
+
totalSize?: number;
|
|
3627
|
+
totalSizeMb?: number;
|
|
3628
|
+
ok: 1 | 0;
|
|
3629
|
+
}
|
|
3621
3630
|
|
|
3622
3631
|
/** @public */
|
|
3623
3632
|
export declare class ListIndexesCursor extends AbstractCursor {
|
package/mongodb.ts34.d.ts
CHANGED
|
@@ -1661,7 +1661,7 @@ export declare class Collection<TSchema extends Document = Document> {
|
|
|
1661
1661
|
* @param pipeline - An array of aggregation pipelines to execute
|
|
1662
1662
|
* @param options - Optional settings for the command
|
|
1663
1663
|
*/
|
|
1664
|
-
aggregate<T =
|
|
1664
|
+
aggregate<T = Document>(pipeline?: Document[], options?: AggregateOptions): AggregationCursor<T>;
|
|
1665
1665
|
/**
|
|
1666
1666
|
* Create a new Change Stream, watching for new changes (insertions, updates, replacements, deletions, and invalidations) in this collection.
|
|
1667
1667
|
*
|
|
@@ -3379,7 +3379,16 @@ export declare interface ListDatabasesOptions extends CommandOperationOptions {
|
|
|
3379
3379
|
authorizedDatabases?: boolean;
|
|
3380
3380
|
}
|
|
3381
3381
|
/** @public */
|
|
3382
|
-
export declare
|
|
3382
|
+
export declare interface ListDatabasesResult {
|
|
3383
|
+
databases: ({
|
|
3384
|
+
name: string;
|
|
3385
|
+
sizeOnDisk?: number;
|
|
3386
|
+
empty?: boolean;
|
|
3387
|
+
} & Document)[];
|
|
3388
|
+
totalSize?: number;
|
|
3389
|
+
totalSizeMb?: number;
|
|
3390
|
+
ok: 1 | 0;
|
|
3391
|
+
}
|
|
3383
3392
|
/** @public */
|
|
3384
3393
|
export declare class ListIndexesCursor extends AbstractCursor {
|
|
3385
3394
|
parent: Collection;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mongodb",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.3",
|
|
4
4
|
"description": "The official MongoDB driver for Node.js",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"files": [
|
|
@@ -100,23 +100,27 @@
|
|
|
100
100
|
"build:dts": "npm run build:ts && api-extractor run && rimraf 'lib/**/*.d.ts*' && downlevel-dts mongodb.d.ts mongodb.ts34.d.ts",
|
|
101
101
|
"build:docs": "typedoc",
|
|
102
102
|
"check:bench": "node test/benchmarks/driverBench",
|
|
103
|
-
"check:coverage": "nyc npm run
|
|
103
|
+
"check:coverage": "nyc npm run test:all",
|
|
104
104
|
"check:lint": "npm run build:dts && npm run check:dts && npm run check:eslint && npm run check:tsd",
|
|
105
105
|
"check:eslint": "eslint -v && eslint --max-warnings=0 --ext '.js,.ts' src test",
|
|
106
106
|
"check:tsd": "tsd --version && tsd",
|
|
107
107
|
"check:dts": "tsc --noEmit mongodb.d.ts && tsd",
|
|
108
|
-
"check:test": "mocha --
|
|
108
|
+
"check:test": "mocha --file test/tools/runner --recursive test/functional",
|
|
109
|
+
"check:unit": "mocha --recursive test/unit/",
|
|
109
110
|
"check:ts": "tsc -v && tsc --noEmit",
|
|
110
111
|
"check:atlas": "mocha --config \"test/manual/mocharc.json\" test/manual/atlas_connectivity.test.js",
|
|
111
|
-
"check:adl": "mocha test/manual/data_lake.test.js",
|
|
112
|
+
"check:adl": "mocha --file test/tools/runner test/manual/data_lake.test.js",
|
|
113
|
+
"check:aws": "mocha --file test/tools/runner test/functional/mongodb_aws.test.js",
|
|
112
114
|
"check:ocsp": "mocha --config \"test/manual/mocharc.json\" test/manual/ocsp_support.test.js",
|
|
113
115
|
"check:kerberos": "mocha --config \"test/manual/mocharc.json\" test/manual/kerberos.test.js",
|
|
114
116
|
"check:tls": "mocha --config \"test/manual/mocharc.json\" test/manual/tls_support.test.js",
|
|
115
117
|
"check:ldap": "mocha --config \"test/manual/mocharc.json\" test/manual/ldap.test.js",
|
|
116
|
-
"check:csfle": "mocha test/functional/client_side_encryption",
|
|
118
|
+
"check:csfle": "mocha --file test/tools/runner test/functional/client_side_encryption",
|
|
119
|
+
"check:snappy": "mocha --file test/tools/runner test/functional/unit_snappy.test.js",
|
|
117
120
|
"prepare": "node etc/prepare.js",
|
|
118
121
|
"release": "standard-version -i HISTORY.md",
|
|
119
|
-
"test": "npm run check:lint && npm run
|
|
122
|
+
"test": "npm run check:lint && npm run test:all",
|
|
123
|
+
"test:all": "npm run check:unit && npm run check:test"
|
|
120
124
|
},
|
|
121
125
|
"tsd": {
|
|
122
126
|
"directory": "test/types",
|
package/src/collection.ts
CHANGED
|
@@ -1366,7 +1366,7 @@ export class Collection<TSchema extends Document = Document> {
|
|
|
1366
1366
|
* @param pipeline - An array of aggregation pipelines to execute
|
|
1367
1367
|
* @param options - Optional settings for the command
|
|
1368
1368
|
*/
|
|
1369
|
-
aggregate<T =
|
|
1369
|
+
aggregate<T = Document>(
|
|
1370
1370
|
pipeline: Document[] = [],
|
|
1371
1371
|
options?: AggregateOptions
|
|
1372
1372
|
): AggregationCursor<T> {
|
|
@@ -7,7 +7,12 @@ import type { Db } from '../db';
|
|
|
7
7
|
import type { ClientSession } from '../sessions';
|
|
8
8
|
|
|
9
9
|
/** @public */
|
|
10
|
-
export
|
|
10
|
+
export interface ListDatabasesResult {
|
|
11
|
+
databases: ({ name: string; sizeOnDisk?: number; empty?: boolean } & Document)[];
|
|
12
|
+
totalSize?: number;
|
|
13
|
+
totalSizeMb?: number;
|
|
14
|
+
ok: 1 | 0;
|
|
15
|
+
}
|
|
11
16
|
|
|
12
17
|
/** @public */
|
|
13
18
|
export interface ListDatabasesOptions extends CommandOperationOptions {
|