@xcitedbs/client 0.3.6 → 0.3.7

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 (2) hide show
  1. package/llms-full.txt +1 -1
  2. package/package.json +1 -1
package/llms-full.txt CHANGED
@@ -1167,7 +1167,7 @@ Definitions are stored as JSON under **`/_xcitedb/triggers`**. After a matching
1167
1167
 
1168
1168
  ### BEFORE triggers (predicate-only)
1169
1169
 
1170
- `phase: "before"` triggers run *before* the write applies and reject it with **HTTP 422** when the match and conditions both hold. They are predicate-only — no `action` / `actions`. Fired only on writes routed through **`/api/v1/txn`** (regular `/api/v1/meta` and `/api/v1/json-documents` writes do not invoke BEFORE triggers).
1170
+ `phase: "before"` triggers run *before* the write applies and reject it with **HTTP 422** when the match and conditions both hold. They are predicate-only — no `action` / `actions`. Fired on **all server-side write paths**: `/api/v1/txn` operations, single and batch `/api/v1/meta` writes (incl. `DELETE` clears), `/api/v1/json-documents` writes and deletes, `/api/v1/documents` (XML) writes / batch / deletes, and document import. Rejections return `{ "code": 422, "error": <reject_reason>, "trigger_id", "committed": false }`.
1171
1171
 
1172
1172
  The expression sees **`prior`** alongside `value`:
1173
1173
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xcitedbs/client",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "XCiteDB BaaS client SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",