@naturalcycles/db-lib 9.7.1 → 9.7.2

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.
@@ -86,7 +86,7 @@ export declare class CommonDao<BM extends BaseDBEntity, DBM extends BaseDBEntity
86
86
  * Similar to `save` with skipIfEquals.
87
87
  * Similar to `patch`, but doesn't load the object from the Database.
88
88
  */
89
- savePatch(bm: BM, patch: Partial<BM>, opt: CommonDaoSaveBatchOptions<DBM>): Promise<BM>;
89
+ savePatch(bm: BM, patch: Partial<BM>, opt?: CommonDaoSaveBatchOptions<DBM>): Promise<BM>;
90
90
  /**
91
91
  * Convenience method to replace 3 operations (loading+patching+saving) with one:
92
92
  *
package/package.json CHANGED
@@ -40,7 +40,7 @@
40
40
  "engines": {
41
41
  "node": ">=18.12"
42
42
  },
43
- "version": "9.7.1",
43
+ "version": "9.7.2",
44
44
  "description": "Lowest Common Denominator API to supported Databases",
45
45
  "keywords": [
46
46
  "db",
@@ -612,7 +612,7 @@ export class CommonDao<BM extends BaseDBEntity, DBM extends BaseDBEntity = BM> {
612
612
  * Similar to `save` with skipIfEquals.
613
613
  * Similar to `patch`, but doesn't load the object from the Database.
614
614
  */
615
- async savePatch(bm: BM, patch: Partial<BM>, opt: CommonDaoSaveBatchOptions<DBM>): Promise<BM> {
615
+ async savePatch(bm: BM, patch: Partial<BM>, opt?: CommonDaoSaveBatchOptions<DBM>): Promise<BM> {
616
616
  const patched: BM = {
617
617
  ...bm,
618
618
  ...patch,