graphddb 0.2.2 → 0.2.3

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.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ChangeCaptureRegistry,
3
3
  resolveModelClass
4
- } from "./chunk-3MI43FHU.js";
4
+ } from "./chunk-FWDJSGF3.js";
5
5
 
6
6
  // src/cdc/prng.ts
7
7
  var SeededRandom = class {
@@ -1954,11 +1954,11 @@ function collapseSameKey(items, view) {
1954
1954
  for (const bucket of groups.values()) {
1955
1955
  if (bucket.length === 1) continue;
1956
1956
  const kinds = new Set(bucket.map((it) => view.kind(it)));
1957
- if (kinds.has("Delete") && kinds.has("Put")) {
1957
+ if (kinds.size === 2 && kinds.has("Delete") && kinds.has("Put")) {
1958
1958
  for (const it of bucket) dropped.add(it);
1959
1959
  continue;
1960
1960
  }
1961
- if (kinds.has("Put") && kinds.has("Update")) {
1961
+ if (kinds.size === 2 && kinds.has("Put") && kinds.has("Update")) {
1962
1962
  throw new Error(
1963
1963
  `Contract runtime: a derived counter (\`increment\`) resolves to the SAME item as the entity write at runtime (the call-time key values made an aliased target coincide with the written row). A Put+Update on one transaction item is unsupported \u2014 DynamoDB rejects touching one key twice, and collapsing it would silently drop the increment. A \`w.increment(...)\` must target a DIFFERENT row (e.g. a parent aggregate's counter); to maintain a counter ON the written entity, write the field as part of the entity itself, not via a derived counter onto its own row.`
1964
1964
  );
@@ -32,7 +32,7 @@ import {
32
32
  serializeFieldValue,
33
33
  serializeRawCondition,
34
34
  skTemplate
35
- } from "./chunk-3MI43FHU.js";
35
+ } from "./chunk-FWDJSGF3.js";
36
36
 
37
37
  // src/spec/types.ts
38
38
  var SPEC_VERSION = "1.0";
package/dist/cli.js CHANGED
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  buildBridgeBundle,
4
4
  normalizeSelectSpec
5
- } from "./chunk-CXIAECRS.js";
5
+ } from "./chunk-NJEC76TX.js";
6
6
  import {
7
7
  MetadataRegistry
8
- } from "./chunk-3MI43FHU.js";
8
+ } from "./chunk-FWDJSGF3.js";
9
9
 
10
10
  // src/cli.ts
11
11
  import { createRequire } from "module";
package/dist/index.js CHANGED
@@ -86,11 +86,11 @@ import {
86
86
  validateDepth,
87
87
  when,
88
88
  wholeKeysSentinel
89
- } from "./chunk-CXIAECRS.js";
89
+ } from "./chunk-NJEC76TX.js";
90
90
  import {
91
91
  CdcEmulator,
92
92
  createCdcEmulator
93
- } from "./chunk-27XBTYVK.js";
93
+ } from "./chunk-CVUDLLRS.js";
94
94
  import {
95
95
  BATCH_GET_MAX_KEYS,
96
96
  BATCH_WRITE_MAX_ITEMS,
@@ -134,7 +134,7 @@ import {
134
134
  resolveKey,
135
135
  resolveModelClass,
136
136
  serializeFieldValue
137
- } from "./chunk-3MI43FHU.js";
137
+ } from "./chunk-FWDJSGF3.js";
138
138
 
139
139
  // src/metadata/prefix.ts
140
140
  function derivePrefix(customPrefix, className) {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  createCdcEmulator
3
- } from "../chunk-27XBTYVK.js";
3
+ } from "../chunk-CVUDLLRS.js";
4
4
  import {
5
5
  ClientManager,
6
6
  MetadataRegistry,
7
7
  TableMapping,
8
8
  resolveModelClass
9
- } from "../chunk-3MI43FHU.js";
9
+ } from "../chunk-FWDJSGF3.js";
10
10
 
11
11
  // src/memory/memory-store.ts
12
12
  function deepClone(value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphddb",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Graph data modeling on DynamoDB with adjacency list pattern",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",