@zap-studio/webmcp-react 1.0.1 → 1.0.2

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/CHANGELOG.md CHANGED
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+
8
+ ## 1.0.2
9
+ <sub>2026-09-13</sub>
10
+
11
+ - [#613](https://github.com/zap-studio/monorepo/pull/613) *(patch)* Thanks [@alexandretrotel](https://github.com/alexandretrotel)!
12
+ Widen internal peer dependency ranges from an exact pin to a caret range, so consumers no longer resolve a duplicate copy of the peer on version skew.
13
+
7
14
  ## [1.0.1]
8
15
 
9
16
  ### Changed
@@ -2,7 +2,7 @@ import { ModelContextTool } from "@zap-studio/webmcp";
2
2
  import { DependencyList } from "react";
3
3
  //#region src/use-web-mcp-tool.d.ts
4
4
  /** The shape returned by `useWebMCPTool`. */
5
- interface UseWebMCPToolResult {
5
+ export interface UseWebMCPToolResult {
6
6
  /**
7
7
  * Set when registration fails — most commonly because the browser doesn't
8
8
  * support WebMCP, or `tool` failed validation. `null` while pending or
@@ -46,7 +46,6 @@ interface UseWebMCPToolResult {
46
46
  * }
47
47
  * ```
48
48
  */
49
- declare const useWebMCPTool: <TInput = unknown>(tool: ModelContextTool<TInput>, deps?: DependencyList) => UseWebMCPToolResult;
49
+ export declare const useWebMCPTool: <TInput = unknown>(tool: ModelContextTool<TInput>, deps?: DependencyList) => UseWebMCPToolResult;
50
50
  //#endregion
51
- export { UseWebMCPToolResult, useWebMCPTool };
52
51
  //# sourceMappingURL=use-web-mcp-tool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-web-mcp-tool.d.ts","names":[],"sources":["../src/use-web-mcp-tool.ts"],"mappings":";;;;UAciB;;;;;;EAMf,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuCI,gBAAiB,kBAC5B,MAAM,iBAAiB,SACvB,OAAM,mBACL"}
1
+ {"version":3,"file":"use-web-mcp-tool.d.ts","names":[],"sources":["../src/use-web-mcp-tool.ts"],"mappings":";;;;iBAciB;;;;;;EAMf,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAuCI,gBAAiB,kBAC5B,MAAM,iBAAiB,SACvB,OAAM,mBACL"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zap-studio/webmcp-react",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "private": false,
5
5
  "description": "React bindings for @zap-studio/webmcp: a useWebMCPTool hook that registers a tool with the native WebMCP API for the lifetime of a component.",
6
6
  "keywords": [
@@ -41,18 +41,18 @@
41
41
  "devDependencies": {
42
42
  "@testing-library/dom": "^10.4.1",
43
43
  "@testing-library/react": "^16.3.3",
44
- "@types/react": "^19.2.18",
45
- "@types/react-dom": "^19.2.5",
44
+ "@types/react": "^19.3.0",
45
+ "@types/react-dom": "^19.3.0",
46
46
  "@zap-studio/typescript": "0.0.0",
47
47
  "@zap-studio/webmcp": "1.0.1",
48
- "react": "^19.2.8",
49
- "react-dom": "^19.2.8",
50
- "tsdown": "^0.22.14",
48
+ "react": "^19.3.0",
49
+ "react-dom": "^19.3.0",
50
+ "tsdown": "^0.23.0",
51
51
  "typescript": "^7.0.2",
52
- "vitest": "^4.1.11"
52
+ "vitest": "^5.0.0"
53
53
  },
54
54
  "peerDependencies": {
55
- "@zap-studio/webmcp": "^1.0.0",
55
+ "@zap-studio/webmcp": "^1.0.1",
56
56
  "react": ">=18.0.0"
57
57
  },
58
58
  "engines": {