@gjermundgaraba/effect-actions-cloudflare 0.22.0 → 0.23.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.
- package/dist/ActionDurableObject.d.mts +6 -0
- package/dist/ActionDurableObject.mjs +7 -7
- package/dist/alarm.mjs +5 -27
- package/dist/batches.mjs +0 -1
- package/dist/calls.mjs +0 -11
- package/dist/events.mjs +0 -15
- package/dist/frames.mjs +6 -9
- package/dist/idempotency.mjs +2 -8
- package/dist/placed.mjs +0 -4
- package/dist/sockets.d.mts +0 -4
- package/dist/sockets.mjs +7 -14
- package/dist/stub.d.mts +4 -4
- package/dist/stub.mjs +9 -8
- package/dist/subscriptions.mjs +10 -22
- package/dist/tasks.mjs +3 -8
- package/dist/webhooks.mjs +5 -21
- package/docs/ActionDurableObject-events.md +0 -20
- package/docs/ActionDurableObject-failures.md +1 -1
- package/docs/ActionDurableObject-placement.md +1 -4
- package/docs/ActionDurableObject-stub.md +3 -31
- package/docs/ActionDurableObject-testing.md +0 -5
- package/docs/ActionDurableObject.md +3 -49
- package/docs/README.md +1 -1
- package/examples/chat-rooms/README.md +2 -2
- package/examples/chat-rooms/src/Api.ts +0 -3
- package/examples/chat-rooms/src/Rpc.ts +0 -7
- package/examples/chat-rooms/src/browser.ts +2 -34
- package/examples/chat-rooms/src/chat/Chat.ts +3 -23
- package/examples/chat-rooms/src/chat/activity.ts +0 -5
- package/examples/chat-rooms/src/chat/authorize.ts +0 -3
- package/examples/chat-rooms/src/chat/events.ts +0 -12
- package/examples/chat-rooms/src/chat/handlers.ts +0 -6
- package/examples/chat-rooms/src/chat/room.ts +2 -7
- package/examples/chat-rooms/src/chat/store.ts +0 -6
- package/examples/chat-rooms/src/identity/Identity.ts +0 -6
- package/examples/chat-rooms/src/identity/members.ts +1 -3
- package/examples/chat-rooms/src/identity/verifier.ts +6 -9
- package/examples/chat-rooms/src/lobby/Calls.ts +0 -5
- package/examples/chat-rooms/src/lobby/Lobby.ts +2 -7
- package/examples/chat-rooms/src/lobby/events.ts +0 -5
- package/examples/chat-rooms/src/lobby/handlers.ts +0 -3
- package/examples/chat-rooms/src/lobby/host.ts +0 -1
- package/examples/chat-rooms/src/lobby/store.ts +2 -4
- package/examples/chat-rooms/src/platform/kv-previews.ts +6 -5
- package/examples/chat-rooms/src/platform/lobby-stubs.ts +0 -15
- package/examples/chat-rooms/src/platform/sql-store.ts +0 -11
- package/examples/chat-rooms/src/rooms-entrypoint.ts +2 -10
- package/examples/chat-rooms/src/routes.ts +0 -25
- package/examples/chat-rooms/src/worker.ts +3 -24
- package/examples/chat-rooms/test/platform/sql-store.test.ts +0 -5
- package/examples/chat-rooms/test/support/socket.ts +0 -9
- package/examples/chat-rooms/test/worker.test.ts +4 -18
- package/examples/chat-rooms/vite.config.ts +0 -5
- package/package.json +3 -3
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { cloudflareTest } from "@cloudflare/vitest-plugin";
|
|
2
2
|
import { defineConfig } from "vite-plus";
|
|
3
3
|
|
|
4
|
-
// Its tests run inside the Workers runtime, on the Worker wrangler.jsonc describes.
|
|
5
4
|
export default defineConfig({
|
|
6
5
|
plugins: [
|
|
7
6
|
cloudflareTest({
|
|
@@ -10,10 +9,6 @@ export default defineConfig({
|
|
|
10
9
|
],
|
|
11
10
|
test: {
|
|
12
11
|
include: ["test/**/*.test.ts"],
|
|
13
|
-
// Why: under @cloudflare/vitest-plugin 1.4.4, the warm-module response for a later file in a
|
|
14
|
-
// pool slot can exceed what the runner's control socket accepts, 41 MB in 709 entries
|
|
15
|
-
// measured on chat-rooms, which closes it with 1009 and loses the file as "Worker exited
|
|
16
|
-
// unexpectedly"; two small files alone did not trigger it.
|
|
17
12
|
fsModuleCache: false,
|
|
18
13
|
},
|
|
19
14
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjermundgaraba/effect-actions-cloudflare",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"description": "Serve effect-actions from Cloudflare Durable Objects, with Effect RPC over hibernating WebSockets.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"@cloudflare/vitest-plugin": "1.4.7",
|
|
40
40
|
"@cloudflare/workers-types": "5.20261025.1",
|
|
41
41
|
"@effect/vitest": "4.0.6",
|
|
42
|
-
"@gjermundgaraba/effect-actions": "0.
|
|
42
|
+
"@gjermundgaraba/effect-actions": "0.23.0",
|
|
43
43
|
"effect": "4.0.6"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@gjermundgaraba/effect-actions": "^0.
|
|
46
|
+
"@gjermundgaraba/effect-actions": "^0.23.0",
|
|
47
47
|
"effect": "~4.0.5"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|