@solvapay/react 1.1.3 → 1.1.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.
- package/CHANGELOG.md +9 -0
- package/dist/mcp/index.d.cts +2 -2
- package/dist/mcp/index.d.ts +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @solvapay/react changelog
|
|
2
2
|
|
|
3
|
+
## 1.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8dd8638: Fix `McpAppFull.addEventListener`/`removeEventListener` types to accept the tighter `K extends keyof AppEventMap` shape introduced in `@modelcontextprotocol/ext-apps@^1.7`. Previously the loose `(evt: string, …)` signature on the interface didn't match what ext-apps exposes from 1.7+, so consumers seeing types from both `@solvapay/react` and `ext-apps@^1.7` would hit `TS2322: Type 'App' is not assignable to type 'McpAppFull'` at every `<McpApp app={...} />` mount site.
|
|
8
|
+
|
|
9
|
+
The interface now declares `(evt: any, …)` for both event-listener fields, which is permissive enough to satisfy the new tightened generic without giving up the legacy `ontoolresult` setter fallback. Fixes [PR #169](https://github.com/solvapay/solvapay-sdk/pull/169).
|
|
10
|
+
- @solvapay/mcp-core@0.2.4
|
|
11
|
+
|
|
3
12
|
## 1.1.3
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/mcp/index.d.cts
CHANGED
|
@@ -801,8 +801,8 @@ interface McpAppFull extends McpAppBootstrapLike, McpAppLike, McpBridgeAppLike {
|
|
|
801
801
|
* Kept optional so minimal test adapters can omit it — the code falls
|
|
802
802
|
* back to the legacy `ontoolresult` setter.
|
|
803
803
|
*/
|
|
804
|
-
addEventListener?: (evt:
|
|
805
|
-
removeEventListener?: (evt:
|
|
804
|
+
addEventListener?: (evt: any, handler: (params: any) => void) => void;
|
|
805
|
+
removeEventListener?: (evt: any, handler: (params: any) => void) => void;
|
|
806
806
|
ontoolresult?: any;
|
|
807
807
|
/**
|
|
808
808
|
* Fire-and-forget request asking the host to unmount the app. When
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -801,8 +801,8 @@ interface McpAppFull extends McpAppBootstrapLike, McpAppLike, McpBridgeAppLike {
|
|
|
801
801
|
* Kept optional so minimal test adapters can omit it — the code falls
|
|
802
802
|
* back to the legacy `ontoolresult` setter.
|
|
803
803
|
*/
|
|
804
|
-
addEventListener?: (evt:
|
|
805
|
-
removeEventListener?: (evt:
|
|
804
|
+
addEventListener?: (evt: any, handler: (params: any) => void) => void;
|
|
805
|
+
removeEventListener?: (evt: any, handler: (params: any) => void) => void;
|
|
806
806
|
ontoolresult?: any;
|
|
807
807
|
/**
|
|
808
808
|
* Fire-and-forget request asking the host to unmount the app. When
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solvapay/react",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -75,12 +75,12 @@
|
|
|
75
75
|
"@vitejs/plugin-react": "^6.0.1",
|
|
76
76
|
"@vitest/coverage-v8": "^4.1.2",
|
|
77
77
|
"jsdom": "^29.0.1",
|
|
78
|
-
"react": "^19.2.
|
|
79
|
-
"react-dom": "^19.2.
|
|
78
|
+
"react": "^19.2.5",
|
|
79
|
+
"react-dom": "^19.2.5",
|
|
80
80
|
"typescript": "^5.9.3",
|
|
81
81
|
"vitest": "^4.1.2",
|
|
82
82
|
"@solvapay/mcp-core": "0.2.4",
|
|
83
|
-
"@solvapay/server": "1.0.
|
|
83
|
+
"@solvapay/server": "1.0.12",
|
|
84
84
|
"@solvapay/test-utils": "0.0.0"
|
|
85
85
|
},
|
|
86
86
|
"scripts": {
|