@effect-agent/storage-cloudflare 0.1.0-beta.39 → 0.1.0-beta.40
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/dist/index.d.mts +1 -6
- package/dist/index.mjs +14 -19
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/migrations.ts +3 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-agent/storage-cloudflare",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.40",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"types": "./dist/index.d.mts",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@effect-agent/thread": "0.1.0-beta.
|
|
15
|
+
"@effect-agent/thread": "0.1.0-beta.40",
|
|
16
16
|
"@effect/platform-browser": "4.0.0-rc.111",
|
|
17
17
|
"@effect/sql-sqlite-do": "4.0.0-rc.111"
|
|
18
18
|
},
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@cloudflare/vitest-pool-workers": "0.21.3",
|
|
43
43
|
"@cloudflare/workers-types": "5.20260825.1",
|
|
44
|
-
"@effect-agent/testing": "0.1.0-beta.
|
|
44
|
+
"@effect-agent/testing": "0.1.0-beta.39",
|
|
45
45
|
"@effect/vitest": "4.0.0-rc.111",
|
|
46
46
|
"effect": "4.0.0-rc.111",
|
|
47
47
|
"typescript": "7.0.2",
|
|
48
|
-
"vite-plus": "0.
|
|
49
|
-
"vitest": "4.1.
|
|
48
|
+
"vite-plus": "0.3.0",
|
|
49
|
+
"vitest": "4.1.11"
|
|
50
50
|
}
|
|
51
51
|
}
|
package/src/migrations.ts
CHANGED
|
@@ -2,19 +2,12 @@ import { SqliteMigrator } from "@effect/sql-sqlite-do";
|
|
|
2
2
|
import { Effect } from "effect";
|
|
3
3
|
import * as SqlClient from "effect/unstable/sql/SqlClient";
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* The exact-or-fresh storage version recorded in `effect_agent_meta`. Cloudflare is a fresh
|
|
7
|
-
* platform, so there is exactly ONE migration carrying the complete current schema — no
|
|
8
|
-
* v1→v4 history to replay (deployment spec §9: no rolling data-version promise during
|
|
9
|
-
* private development).
|
|
10
|
-
*/
|
|
5
|
+
/** The current storage version recorded in `effect_agent_meta`. */
|
|
11
6
|
export const CurrentDoStorageVersion = 2;
|
|
12
7
|
|
|
13
8
|
/**
|
|
14
|
-
* The Thread Durable Object schema
|
|
15
|
-
*
|
|
16
|
-
* into their final shape) so the shared conformance suites and crash-matrix rows address
|
|
17
|
-
* identical durable state. Two DC-specific additions:
|
|
9
|
+
* The Thread Durable Object schema shares its thread and ledger tables with Node/SQLite.
|
|
10
|
+
* Schedules and subscriptions use separate Durable Objects. Two DC-specific additions:
|
|
18
11
|
*
|
|
19
12
|
* 1. `effect_agent_meta` replaces `PRAGMA user_version` as the exact-or-fresh version gate —
|
|
20
13
|
* a meta table is portable regardless of which PRAGMAs Durable Object SQL storage allows.
|