@niscorp/vex 0.4.0 → 0.4.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.
Files changed (50) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/DESIGN.md +12 -7
  3. package/DOCS.md +64 -19
  4. package/README.md +2 -2
  5. package/dist/adapters/express/index.cjs +1 -1
  6. package/dist/adapters/express/index.cjs.map +1 -1
  7. package/dist/adapters/express/index.d.cts +2 -2
  8. package/dist/adapters/express/index.d.ts +2 -2
  9. package/dist/adapters/express/index.js +1 -1
  10. package/dist/adapters/hono/index.cjs +1 -1
  11. package/dist/adapters/hono/index.cjs.map +1 -1
  12. package/dist/adapters/hono/index.d.cts +2 -2
  13. package/dist/adapters/hono/index.d.ts +2 -2
  14. package/dist/adapters/hono/index.js +1 -1
  15. package/dist/adapters/pg/index.cjs +44 -0
  16. package/dist/adapters/pg/index.cjs.map +1 -0
  17. package/dist/adapters/pg/index.d.cts +28 -0
  18. package/dist/adapters/pg/index.d.ts +28 -0
  19. package/dist/adapters/pg/index.js +31 -0
  20. package/dist/adapters/pg/index.js.map +1 -0
  21. package/dist/adapters/pglite/index.cjs +3 -1
  22. package/dist/adapters/pglite/index.cjs.map +1 -1
  23. package/dist/adapters/pglite/index.d.cts +5 -4
  24. package/dist/adapters/pglite/index.d.ts +5 -4
  25. package/dist/adapters/pglite/index.js +3 -3
  26. package/dist/adapters/pglite/index.js.map +1 -1
  27. package/dist/agent/index.cjs +144 -22
  28. package/dist/agent/index.cjs.map +1 -1
  29. package/dist/agent/index.d.cts +1 -1
  30. package/dist/agent/index.d.ts +1 -1
  31. package/dist/agent/index.js +144 -22
  32. package/dist/agent/index.js.map +1 -1
  33. package/dist/chunk-DFWYYBJU.js +7 -0
  34. package/dist/chunk-DFWYYBJU.js.map +1 -0
  35. package/dist/{chunk-7F2OH4IP.js → chunk-RGJRUOGQ.js} +7 -4
  36. package/dist/chunk-RGJRUOGQ.js.map +1 -0
  37. package/dist/date-parsers-BaUuE_ax.d.cts +4 -0
  38. package/dist/date-parsers-BaUuE_ax.d.ts +4 -0
  39. package/dist/{handler-Bw7xVmBM.d.ts → handler-CoJxInw-.d.ts} +1 -1
  40. package/dist/{handler-Cy0gNM6K.d.cts → handler-CsFbanZA.d.cts} +1 -1
  41. package/dist/index.cjs +6 -3
  42. package/dist/index.cjs.map +1 -1
  43. package/dist/index.d.cts +3 -3
  44. package/dist/index.d.ts +3 -3
  45. package/dist/index.js +3 -3
  46. package/dist/index.js.map +1 -1
  47. package/dist/{types-DO-rYZci.d.cts → types-B2HEmyNq.d.cts} +1 -1
  48. package/dist/{types-Bs_9VM9p.d.ts → types-DC68ZUuq.d.ts} +1 -1
  49. package/package.json +13 -1
  50. package/dist/chunk-7F2OH4IP.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import { a as QueryEngine, aa as ScopeValues } from '../../types-DO-rYZci.cjs';
2
- import { V as VexHandlerConfig } from '../../handler-Cy0gNM6K.cjs';
1
+ import { a as QueryEngine, aa as ScopeValues } from '../../types-B2HEmyNq.cjs';
2
+ import { V as VexHandlerConfig } from '../../handler-CsFbanZA.cjs';
3
3
  import '../../query.schema-B-LVNfyX.cjs';
4
4
  import 'zod';
5
5
  import '@niscorp/prism';
@@ -1,5 +1,5 @@
1
- import { a as QueryEngine, aa as ScopeValues } from '../../types-Bs_9VM9p.js';
2
- import { V as VexHandlerConfig } from '../../handler-Bw7xVmBM.js';
1
+ import { a as QueryEngine, aa as ScopeValues } from '../../types-DC68ZUuq.js';
2
+ import { V as VexHandlerConfig } from '../../handler-CoJxInw-.js';
3
3
  import '../../query.schema-B-LVNfyX.js';
4
4
  import 'zod';
5
5
  import '@niscorp/prism';
@@ -1,4 +1,4 @@
1
- import { handleDiscovery, handleQuery, handleFingerprintPatch, handleFingerprintDelete } from '../../chunk-7F2OH4IP.js';
1
+ import { handleDiscovery, handleQuery, handleFingerprintPatch, handleFingerprintDelete } from '../../chunk-RGJRUOGQ.js';
2
2
  import '../../chunk-XTOK7YOR.js';
3
3
  import '../../chunk-UPQMKAAX.js';
4
4
 
@@ -1018,7 +1018,7 @@ var scopeInsertParts = (table, rawValues, rawConflict, policy) => {
1018
1018
  for (const r of [...gate.rule.write ?? [], ...gate.rule.update ?? []]) {
1019
1019
  if ("set" in r) {
1020
1020
  conflict = { ...conflict, set: { ...conflict.set ?? {}, [r.set]: { $scope: r.to } } };
1021
- } else if (!conflict.target.includes(r.match)) {
1021
+ } else {
1022
1022
  const boundary = boundaryOf(table, r);
1023
1023
  conflict = { ...conflict, where: conflict.where === void 0 ? boundary : { and: [conflict.where, boundary] } };
1024
1024
  }