@mcp-use/client 2.1.4 → 2.1.5

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.
@@ -128,7 +128,7 @@ var Logger = class {
128
128
  var logger = Logger.get();
129
129
 
130
130
  // src/utils/version.ts
131
- var VERSION = "2.1.4";
131
+ var VERSION = "2.1.5";
132
132
  function getPackageVersion() {
133
133
  return VERSION;
134
134
  }
package/dist/index.js CHANGED
@@ -1525,7 +1525,7 @@ init_connector_telemetry();
1525
1525
  init_logging();
1526
1526
 
1527
1527
  // src/utils/version.ts
1528
- var VERSION = "2.1.4";
1528
+ var VERSION = "2.1.5";
1529
1529
  function getPackageVersion() {
1530
1530
  return VERSION;
1531
1531
  }
@@ -1900,7 +1900,7 @@ var HttpConnector = class extends BaseConnector {
1900
1900
  };
1901
1901
 
1902
1902
  // src/utils/version.ts
1903
- var VERSION = "2.1.4";
1903
+ var VERSION = "2.1.5";
1904
1904
  function getPackageVersion() {
1905
1905
  return VERSION;
1906
1906
  }
@@ -7967,6 +7967,10 @@ var OPENAI_COMPATIBILITY_BRIDGE_SCRIPT = `<script>
7967
7967
  };
7968
7968
  api.setWidgetState = api.setWidgetState || function (state) {
7969
7969
  dispatchGlobals({ widgetState: state });
7970
+ // The Apps SDK setter is promise-based. Keep the local state update
7971
+ // synchronous, but return a promise so legacy useWidget() code can safely
7972
+ // await or chain .catch() on the compatibility API.
7973
+ return Promise.resolve();
7970
7974
  };
7971
7975
  api.notifyIntrinsicHeight = api.notifyIntrinsicHeight || function (height) {
7972
7976
  sendNotification("ui/notifications/size-changed", { height: height });