hono-agents 3.0.2 → 3.0.4

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/dist/index.d.ts +3 -3
  2. package/package.json +4 -4
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AgentOptions } from "agents";
2
- import * as hono0 from "hono";
2
+ import * as hono from "hono";
3
3
  import { Env } from "hono";
4
4
 
5
5
  //#region src/index.d.ts
@@ -7,7 +7,7 @@ import { Env } from "hono";
7
7
  * Configuration options for the Cloudflare Agents middleware
8
8
  */
9
9
  type AgentMiddlewareContext<E extends Env> = {
10
- /** Cloudflare Agents-specific configuration options */ options?: AgentOptions<E>; /** Optional error handler for caught errors */
10
+ /** Cloudflare Agents-specific configuration options */ options?: AgentOptions<E> /** Optional error handler for caught errors */;
11
11
  onError?: (error: Error) => void;
12
12
  };
13
13
  /**
@@ -16,7 +16,7 @@ type AgentMiddlewareContext<E extends Env> = {
16
16
  */
17
17
  declare function agentsMiddleware<E extends Env = Env>(
18
18
  ctx?: AgentMiddlewareContext<E>
19
- ): hono0.MiddlewareHandler<Env, string, {}, Response>;
19
+ ): hono.MiddlewareHandler<Env, string, {}, Response>;
20
20
  //#endregion
21
21
  export { agentsMiddleware };
22
22
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -5,8 +5,8 @@
5
5
  },
6
6
  "description": "Add Cloudflare Agents to your Hono app",
7
7
  "devDependencies": {
8
- "agents": "^0.3.7",
9
- "hono": "^4.11.7"
8
+ "agents": "^0.5.0",
9
+ "hono": "^4.11.9"
10
10
  },
11
11
  "publishConfig": {
12
12
  "access": "public"
@@ -31,7 +31,7 @@
31
31
  "main": "src/index.ts",
32
32
  "name": "hono-agents",
33
33
  "peerDependencies": {
34
- "agents": "^0.3.7",
34
+ "agents": "^0.5.0",
35
35
  "hono": "^4.6.17"
36
36
  },
37
37
  "repository": {
@@ -45,5 +45,5 @@
45
45
  },
46
46
  "type": "module",
47
47
  "types": "dist/index.d.ts",
48
- "version": "3.0.2"
48
+ "version": "3.0.4"
49
49
  }