@mongosh/service-provider-core 3.3.5 → 3.3.7

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/closable.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export default interface Closable {
2
- close(force: boolean): Promise<void>;
2
+ close(): Promise<void>;
3
3
  suspend(): Promise<() => Promise<void>>;
4
4
  }
package/lib/writable.d.ts CHANGED
@@ -17,7 +17,9 @@ export default interface Writable {
17
17
  insertOne(database: string, collection: string, doc: Document, options: InsertOneOptions, dbOptions?: DbOptions): Promise<InsertOneResult>;
18
18
  replaceOne(database: string, collection: string, filter: Document, replacement: Document, options?: ReplaceOptions, dbOptions?: DbOptions): Promise<UpdateResult>;
19
19
  updateMany(database: string, collection: string, filter: Document, update: Document, options?: UpdateOptions, dbOptions?: DbOptions): Promise<UpdateResult>;
20
- updateOne(database: string, collection: string, filter: Document, update: Document, options?: UpdateOptions, dbOptions?: DbOptions): Promise<UpdateResult>;
20
+ updateOne(database: string, collection: string, filter: Document, update: Document, options?: UpdateOptions & {
21
+ sort?: Document;
22
+ }, dbOptions?: DbOptions): Promise<UpdateResult>;
21
23
  createIndexes(database: string, collection: string, indexSpecs: Document[], options?: CreateIndexesOptions, dbOptions?: DbOptions): Promise<string[]>;
22
24
  dropCollection(database: string, collection: string, options: DropCollectionOptions, dbOptions?: DbOptions): Promise<boolean>;
23
25
  renameCollection(database: string, oldName: string, newName: string, options?: RenameOptions, dbOptions?: DbOptions): Promise<Collection>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mongosh/service-provider-core",
3
- "version": "3.3.5",
3
+ "version": "3.3.7",
4
4
  "description": "MongoDB Shell Core Service Provider Package",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -33,27 +33,15 @@
33
33
  "node": ">=14.15.1"
34
34
  },
35
35
  "mongosh": {
36
- "unitTestsOnly": true,
37
- "ciRequiredOptionalDependencies": {
38
- "mongodb-client-encryption": [
39
- "darwin",
40
- "linux",
41
- "win32"
42
- ]
43
- }
36
+ "unitTestsOnly": true
44
37
  },
45
38
  "dependencies": {
46
- "@aws-sdk/credential-providers": "^3.525.0",
47
- "@mongosh/errors": "2.4.2",
48
- "bson": "^6.10.3",
49
- "mongodb": "^6.16.0",
39
+ "@mongosh/errors": "2.4.4",
40
+ "bson": "^6.10.4",
41
+ "mongodb": "^6.18.0",
50
42
  "mongodb-build-info": "^1.7.2",
51
- "mongodb-client-encryption": "^6.3.0",
52
43
  "mongodb-connection-string-url": "^3.0.1"
53
44
  },
54
- "optionalDependencies": {
55
- "mongodb-client-encryption": "^6.3.0"
56
- },
57
45
  "devDependencies": {
58
46
  "@mongodb-js/eslint-config-mongosh": "^1.0.0",
59
47
  "@mongodb-js/prettier-config-devtools": "^1.0.1",
@@ -62,5 +50,5 @@
62
50
  "eslint": "^7.25.0",
63
51
  "prettier": "^2.8.8"
64
52
  },
65
- "gitHead": "511befbaf032b589d7f3e81325e5e389d360cc3f"
53
+ "gitHead": "535ab3f767e2a27c05a6be6a299e0285eebfcc9e"
66
54
  }
package/src/closable.ts CHANGED
@@ -1,10 +1,8 @@
1
1
  export default interface Closable {
2
2
  /**
3
3
  * Close the connection.
4
- *
5
- * @param {boolean} force - Whether to force close.
6
4
  */
7
- close(force: boolean): Promise<void>;
5
+ close(): Promise<void>;
8
6
 
9
7
  /**
10
8
  * Suspends the connection, i.e. temporarily force-closes it
package/src/writable.ts CHANGED
@@ -319,7 +319,7 @@ export default interface Writable {
319
319
  collection: string,
320
320
  filter: Document,
321
321
  update: Document,
322
- options?: UpdateOptions,
322
+ options?: UpdateOptions & { sort?: Document },
323
323
  dbOptions?: DbOptions
324
324
  ): Promise<UpdateResult>;
325
325