@workflow/world-postgres 5.4.2 → 5.5.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workflow/world-postgres",
3
- "version": "5.4.2",
3
+ "version": "5.5.1",
4
4
  "description": "A reference World implementation based on PostgreSQL",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -47,10 +47,10 @@
47
47
  "./migrations/*.sql": "./src/drizzle/migrations/*.sql"
48
48
  },
49
49
  "dependencies": {
50
- "@workflow/errors": "5.1.6",
50
+ "@workflow/errors": "5.2.1",
51
51
  "@workflow/utils": "5.1.1",
52
- "@workflow/world": "5.3.1",
53
- "@workflow/world-local": "5.5.2",
52
+ "@workflow/world": "5.4.1",
53
+ "@workflow/world-local": "5.6.1",
54
54
  "cbor-x": "1.6.9",
55
55
  "dotenv": "17.4.2",
56
56
  "drizzle-orm": "0.45.4",
@@ -63,10 +63,10 @@
63
63
  "@testcontainers/postgresql": "11.14.0",
64
64
  "@types/node": "22.19.21",
65
65
  "@types/pg": "8.23.1",
66
- "@vercel/queue": "0.11.0",
67
- "@workflow/errors": "5.1.6",
66
+ "@vercel/queue": "0.11.1",
67
+ "@workflow/errors": "5.2.1",
68
68
  "@workflow/tsconfig": "5.0.0",
69
- "@workflow/world-testing": "5.1.5",
69
+ "@workflow/world-testing": "5.1.7",
70
70
  "drizzle-kit": "0.31.11",
71
71
  "typescript": "^6.0.3",
72
72
  "undici": "7.30.2",
@@ -0,0 +1,12 @@
1
+ -- experimental_rateLimit(): each key's next free slot (GCRA's `tat`), in
2
+ -- epoch microseconds, per app (`scope`, the World's base `jobPrefix`, which
3
+ -- keeps apps sharing a database apart). NULL is an idle key, the same as no
4
+ -- row: a reservation inserts the row before it locks it. `IF NOT EXISTS`
5
+ -- because two `bootstrap` processes started together can both apply a
6
+ -- migration.
7
+ CREATE TABLE IF NOT EXISTS "workflow"."workflow_rate_limits" (
8
+ "scope" varchar NOT NULL,
9
+ "key" varchar NOT NULL,
10
+ "tat_us" bigint,
11
+ CONSTRAINT "workflow_rate_limits_scope_key_pk" PRIMARY KEY("scope","key")
12
+ );
@@ -232,6 +232,13 @@
232
232
  "when": 1790467200000,
233
233
  "tag": "0032_add_run_wake_pending",
234
234
  "breakpoints": true
235
+ },
236
+ {
237
+ "idx": 33,
238
+ "version": "7",
239
+ "when": 1790553600000,
240
+ "tag": "0033_add_rate_limits",
241
+ "breakpoints": true
235
242
  }
236
243
  ]
237
244
  }