dexie-cloud-addon 4.2.2 → 4.2.4

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.
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * ==========================================================================
10
10
  *
11
- * Version 4.2.2, Sat Oct 04 2025
11
+ * Version 4.2.4, Tue Dec 09 2025
12
12
  *
13
13
  * https://dexie.org
14
14
  *
@@ -4057,7 +4057,8 @@ function createImplicitPropSetterMiddleware(db) {
4057
4057
  if (req.type === 'put') {
4058
4058
  delete req.criteria;
4059
4059
  delete req.changeSpec;
4060
- delete req.updates;
4060
+ if (!req.upsert)
4061
+ delete req.updates;
4061
4062
  obj.$ts = Date.now();
4062
4063
  }
4063
4064
  }
@@ -4383,7 +4384,7 @@ function createMutationTrackingMiddleware({ currentUserObservable, db, }) {
4383
4384
  userId,
4384
4385
  values,
4385
4386
  }
4386
- : upsert ? {
4387
+ : upsert && updates ? {
4387
4388
  type: 'upsert',
4388
4389
  ts,
4389
4390
  opNo,
@@ -5357,7 +5358,12 @@ const Styles = {
5357
5358
  outline: "none",
5358
5359
  fontSize: "16px",
5359
5360
  padding: "8px",
5360
- boxSizing: "border-box"
5361
+ boxSizing: "border-box",
5362
+ backgroundColor: "#f9f9f9",
5363
+ borderRadius: "4px",
5364
+ border: "1px solid #ccc",
5365
+ marginTop: "6px",
5366
+ fontFamily: "inherit"
5361
5367
  },
5362
5368
  Button: {
5363
5369
  padding: "10px 20px",
@@ -6091,7 +6097,7 @@ function dexieCloud(dexie) {
6091
6097
  const syncComplete = new Subject();
6092
6098
  dexie.cloud = {
6093
6099
  // @ts-ignore
6094
- version: "4.2.2",
6100
+ version: "4.2.4",
6095
6101
  options: Object.assign({}, DEFAULT_OPTIONS),
6096
6102
  schema: null,
6097
6103
  get currentUserId() {
@@ -6408,7 +6414,7 @@ function dexieCloud(dexie) {
6408
6414
  }
6409
6415
  }
6410
6416
  // @ts-ignore
6411
- dexieCloud.version = "4.2.2";
6417
+ dexieCloud.version = "4.2.4";
6412
6418
  Dexie.Cloud = dexieCloud;
6413
6419
 
6414
6420
  // In case the SW lives for a while, let it reuse already opened connections: