dexie 4.2.1-rc.1 → 4.3.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/dist/dexie.d.ts CHANGED
@@ -4,13 +4,13 @@
4
4
  *
5
5
  * By David Fahlander, david.fahlander@gmail.com
6
6
  *
7
- * Version 4.2.1-rc.1, Mon Aug 25 2025
7
+ * Version 4.3.0, Sat Dec 20 2025
8
8
  *
9
9
  * https://dexie.org
10
10
  *
11
11
  * Apache License Version 2.0, January 2004, http://www.apache.org/licenses/
12
12
  */
13
- // Generated by dts-bundle-generator v9.3.1
13
+ // Generated by dts-bundle-generator v9.5.1
14
14
 
15
15
  export interface IndexSpec {
16
16
  name: string;
@@ -588,6 +588,7 @@ export interface DBCorePutRequest {
588
588
  values: readonly any[];
589
589
  keys?: any[];
590
590
  mutatedParts?: ObservabilitySet;
591
+ upsert?: boolean; // If true, will insert the object if it does not exist. If false, will only update existing objects using the 'updates' property.
591
592
  criteria?: {
592
593
  index: string | null;
593
594
  range: DBCoreKeyRange;
@@ -764,6 +765,7 @@ export interface Table<T = any, TKey = any, TInsertType = T> {
764
765
  value: any;
765
766
  primKey: IndexableType;
766
767
  }) => void | boolean)): PromiseExtended<number>;
768
+ upsert(key: TKey | T, changes: UpdateSpec<TInsertType>): PromiseExtended<boolean>;
767
769
  put(item: TInsertType, key?: TKey): PromiseExtended<TKey>;
768
770
  delete(key: TKey): PromiseExtended<void>;
769
771
  clear(): PromiseExtended<void>;