@moku-labs/worker 0.4.0 → 0.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.
@@ -42,6 +42,22 @@ type WorkerEvents = {
42
42
  kind: "kv" | "r2" | "d1" | "queue" | "do";
43
43
  name: string;
44
44
  };
45
+ "auth:verified": {
46
+ account: string;
47
+ accountId: string;
48
+ scopes: string[];
49
+ };
50
+ "dev:phase": {
51
+ phase: string;
52
+ detail?: string;
53
+ };
54
+ "dev:rebuilt": {
55
+ files: number;
56
+ ms: number;
57
+ };
58
+ "dev:error": {
59
+ message: string;
60
+ };
45
61
  };
46
62
  /**
47
63
  * Worker-bound plugin context for Layer-3 consumer plugins. Aliases the core
@@ -42,6 +42,22 @@ type WorkerEvents = {
42
42
  kind: "kv" | "r2" | "d1" | "queue" | "do";
43
43
  name: string;
44
44
  };
45
+ "auth:verified": {
46
+ account: string;
47
+ accountId: string;
48
+ scopes: string[];
49
+ };
50
+ "dev:phase": {
51
+ phase: string;
52
+ detail?: string;
53
+ };
54
+ "dev:rebuilt": {
55
+ files: number;
56
+ ms: number;
57
+ };
58
+ "dev:error": {
59
+ message: string;
60
+ };
45
61
  };
46
62
  /**
47
63
  * Worker-bound plugin context for Layer-3 consumer plugins. Aliases the core
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { i as WorkerPluginCtx, n as WorkerEnv, r as WorkerEvents, t as WorkerConfig } from "./config-50jmPyMv.cjs";
1
+ import { i as WorkerPluginCtx, n as WorkerEnv, r as WorkerEvents, t as WorkerConfig } from "./config-BYPJvEbl.cjs";
2
2
  import { envPlugin, logPlugin } from "@moku-labs/common";
3
3
  import { PluginCtx, PluginCtx as PluginCtx$1, PluginInstance } from "@moku-labs/core";
4
4
 
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { i as WorkerPluginCtx, n as WorkerEnv, r as WorkerEvents, t as WorkerConfig } from "./config-50jmPyMv.mjs";
1
+ import { i as WorkerPluginCtx, n as WorkerEnv, r as WorkerEvents, t as WorkerConfig } from "./config-BYPJvEbl.mjs";
2
2
  import { envPlugin, logPlugin } from "@moku-labs/common";
3
3
  import { PluginCtx, PluginCtx as PluginCtx$1, PluginInstance } from "@moku-labs/core";
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moku-labs/worker",
3
- "version": "0.4.0",
3
+ "version": "0.5.1",
4
4
  "description": "Cloudflare Worker framework for Moku — Durable Objects, Queues, R2, D1, and KV plugins that compose with Moku Web.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -65,6 +65,14 @@
65
65
  "@moku-labs/common": "0.2.0",
66
66
  "@moku-labs/core": "0.1.4"
67
67
  },
68
+ "peerDependencies": {
69
+ "wrangler": ">=3"
70
+ },
71
+ "peerDependenciesMeta": {
72
+ "wrangler": {
73
+ "optional": true
74
+ }
75
+ },
68
76
  "devDependencies": {
69
77
  "@arethetypeswrong/cli": "0.18.3",
70
78
  "@arethetypeswrong/core": "0.18.3",