ahmed-rivet-convex 2.3.0 → 2.3.1

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.
@@ -139,7 +139,7 @@ import {
139
139
  withWrite,
140
140
  withWriteNoImplicitCommit,
141
141
  wrapIterable
142
- } from "./chunk-FVFX5V7B.js";
142
+ } from "./chunk-STMINOLV.js";
143
143
 
144
144
  // ../zero-schema/src/builder/table-builder.ts
145
145
  function table(name) {
@@ -16033,7 +16033,7 @@ function makeMessage(message, context, logLevel) {
16033
16033
  }
16034
16034
 
16035
16035
  // ../zero-client/src/client/version.ts
16036
- var version2 = "2.3.0";
16036
+ var version2 = "2.3.1";
16037
16037
 
16038
16038
  // ../zero-client/src/client/log-options.ts
16039
16039
  var LevelFilterLogSink = class {
@@ -7808,6 +7808,11 @@ function applyChange(parentEntry, change, schema, relationship, format, withIDs
7808
7808
  }
7809
7809
  }
7810
7810
  function applyEdit(existing, change, schema, withIDs) {
7811
+ for (const key in change.oldNode.row) {
7812
+ if (!(key in change.node.row)) {
7813
+ delete existing[key];
7814
+ }
7815
+ }
7811
7816
  Object.assign(existing, change.node.row);
7812
7817
  if (withIDs) {
7813
7818
  existing[idSymbol] = makeID(change.node.row, schema);
@@ -22,7 +22,7 @@ import {
22
22
  unreachable,
23
23
  valita_exports,
24
24
  withRead
25
- } from "./chunk-FVFX5V7B.js";
25
+ } from "./chunk-STMINOLV.js";
26
26
 
27
27
  // ../zero-client/src/client/inspector/html-dialog-prompt.ts
28
28
  function canUseHTMLDialog() {
package/dist/react.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Zero
3
- } from "./chunk-BGJEHD4Y.js";
3
+ } from "./chunk-6XD2JH5S.js";
4
4
  import {
5
5
  DEFAULT_TTL_MS
6
- } from "./chunk-FVFX5V7B.js";
6
+ } from "./chunk-STMINOLV.js";
7
7
 
8
8
  // ../zero-react/src/use-query.tsx
9
9
  import React, { useSyncExternalStore } from "react";
package/dist/zero.js CHANGED
@@ -6,8 +6,8 @@ import {
6
6
  number,
7
7
  string,
8
8
  table
9
- } from "./chunk-BGJEHD4Y.js";
10
- import "./chunk-FVFX5V7B.js";
9
+ } from "./chunk-6XD2JH5S.js";
10
+ import "./chunk-STMINOLV.js";
11
11
 
12
12
  // src/adapters/convex.ts
13
13
  var ConvexSyncAdapter = class {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ahmed-rivet-convex",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "Client-only local-first data runtime for the browser: reactive queries over IndexedDB with optimistic writes.",
5
5
  "author": "Ahmed Banihani",
6
6
  "license": "Apache-2.0",