@glodon-ecs/web-bridge-sdk 0.5.0 → 0.6.0

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
@@ -1,5 +1,9 @@
1
1
  ## 发布日志
2
2
 
3
+ #### 0.6.0
4
+
5
+ - 增加销毁方法`destory`
6
+
3
7
  #### 0.5.0
4
8
 
5
9
  - 支持CCWeb(qiankun)
package/lib/index.d.ts CHANGED
@@ -26,6 +26,7 @@ export declare abstract class BaseAdapter {
26
26
  */
27
27
  abstract onEvent(eventName: string, callback: (args: unknown) => void): () => void;
28
28
  setClient(client: Client): void;
29
+ destroy(): void;
29
30
  }
30
31
 
31
32
  export declare enum BridgeEnv {
@@ -121,6 +122,7 @@ declare class ECSHubBridge {
121
122
  * @param {Record<string, unknown>} client 实例
122
123
  */
123
124
  static setAdapterClient(client: Record<string, unknown> | null): void;
125
+ static destroy(): void;
124
126
  }
125
127
  export { ECSHubBridge }
126
128
  export default ECSHubBridge;