@opra/mongodb 0.30.0 → 0.31.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/mongodb",
3
- "version": "0.30.0",
3
+ "version": "0.31.0",
4
4
  "description": "Opra MongoDB adapter package",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
@@ -36,8 +36,8 @@
36
36
  "ts-gems": "^2.5.0"
37
37
  },
38
38
  "peerDependencies": {
39
- "@opra/common": "^0.30.0",
40
- "@opra/core": "^0.30.0",
39
+ "@opra/common": "^0.31.0",
40
+ "@opra/core": "^0.31.0",
41
41
  "mongodb": ">=6.x.x"
42
42
  },
43
43
  "type": "module",
@@ -22,7 +22,7 @@ export declare class MongoEntityServiceBase<T extends mongodb.Document> extends
22
22
  protected _insertOne(doc: mongodb.OptionalUnlessRequiredId<T>, options?: mongodb.InsertOneOptions): Promise<PartialOutput<T>>;
23
23
  protected _updateOne(filter: mongodb.Filter<T>, doc: UpdateFilter<T> | Partial<T>, options?: mongodb.UpdateOptions): Promise<PartialOutput<T> | undefined>;
24
24
  protected _updateMany(filter: mongodb.Filter<T>, doc: UpdateFilter<T> | Partial<T>, options?: StrictOmit<mongodb.UpdateOptions, 'upsert'>): Promise<number>;
25
- forContext(context: RequestContext, db?: mongodb.Db, session?: mongodb.ClientSession): typeof this;
25
+ forContext(context: RequestContext, db?: mongodb.Db, session?: mongodb.ClientSession): this;
26
26
  protected _onError(error: unknown): Promise<void>;
27
27
  protected getDatabase(): mongodb.Db | Promise<mongodb.Db>;
28
28
  protected getCollection(db: mongodb.Db): Promise<mongodb.Collection<T>>;