@naturalcycles/db-lib 10.20.1 → 10.20.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.
@@ -160,8 +160,8 @@ export declare class CommonDao<BM extends BaseDBEntity, DBM extends BaseDBEntity
160
160
  ping(): Promise<void>;
161
161
  withId(id: ID): DaoWithId<typeof this>;
162
162
  withIds(ids: ID[]): DaoWithIds<typeof this>;
163
- withRowsToSave(rows: BM[]): DaoWithRows<typeof this>;
164
- withRowToSave(row: BM, opt?: DaoWithRowOptions<BM>): DaoWithRow<typeof this>;
163
+ withRowsToSave(rows: Unsaved<BM>[]): DaoWithRows<typeof this>;
164
+ withRowToSave(row: Unsaved<BM>, opt?: DaoWithRowOptions<BM>): DaoWithRow<typeof this>;
165
165
  /**
166
166
  * Load rows (by their ids) from Multiple tables at once.
167
167
  * An optimized way to load data, minimizing DB round-trips.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/db-lib",
3
3
  "type": "module",
4
- "version": "10.20.1",
4
+ "version": "10.20.2",
5
5
  "dependencies": {
6
6
  "@naturalcycles/js-lib": "^15",
7
7
  "@naturalcycles/nodejs-lib": "^15"
@@ -1049,14 +1049,14 @@ export class CommonDao<
1049
1049
  }
1050
1050
  }
1051
1051
 
1052
- withRowsToSave(rows: BM[]): DaoWithRows<typeof this> {
1052
+ withRowsToSave(rows: Unsaved<BM>[]): DaoWithRows<typeof this> {
1053
1053
  return {
1054
1054
  dao: this,
1055
1055
  rows: rows as any,
1056
1056
  }
1057
1057
  }
1058
1058
 
1059
- withRowToSave(row: BM, opt?: DaoWithRowOptions<BM>): DaoWithRow<typeof this> {
1059
+ withRowToSave(row: Unsaved<BM>, opt?: DaoWithRowOptions<BM>): DaoWithRow<typeof this> {
1060
1060
  return {
1061
1061
  dao: this,
1062
1062
  row: row as any,