@rotorsoft/act-pg 0.19.0 → 0.20.0

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/README.md +3 -0
  2. package/package.json +3 -1
package/README.md CHANGED
@@ -157,6 +157,9 @@ Calling `seed()` creates two tables:
157
157
  - `at` - last processed event position
158
158
  - `leased_by` / `leased_until` - distributed processing claim info
159
159
  - `blocked` / `error` - error tracking for failed streams
160
+ - `priority` - scheduling priority (default 0; higher wins lagging-frontier ties — see [Priority lanes](https://rotorsoft.github.io/act-root/docs/architecture/priority-lanes))
161
+
162
+ The `priority` column is added by `seed()` via `ALTER TABLE ... ADD COLUMN IF NOT EXISTS`, so existing tables migrate transparently. A composite index on `(blocked, priority DESC, at)` supports the saturated-claim ORDER BY without a sort step.
160
163
 
161
164
  ## Competing Consumer Pattern
162
165
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rotorsoft/act-pg",
3
3
  "type": "module",
4
- "version": "0.19.0",
4
+ "version": "0.20.0",
5
5
  "description": "act pg adapters",
6
6
  "author": "rotorsoft",
7
7
  "license": "MIT",
@@ -44,6 +44,8 @@
44
44
  "clean": "rm -rf dist",
45
45
  "types": "tsc --build tsconfig.build.json --emitDeclarationOnly",
46
46
  "build": "pnpm clean && tsup && pnpm types",
47
+ "bench:micro": "vitest bench --run",
48
+ "bench:scenarios": "vitest run --config vitest.bench.config.ts",
47
49
  "stress": "tsx test/stress/runner.ts"
48
50
  }
49
51
  }