@streamlayer/sdk-web-api 0.21.0 → 0.21.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.
@@ -72,6 +72,15 @@ export class Transport {
72
72
  subscription.disconnect();
73
73
  this.subscriptions.delete(params);
74
74
  }
75
+ this.clients.clear();
76
+ this.callbackClients.clear();
77
+ this.subscriptions.clear();
78
+ // ToDo: reset nanoquery instance, basically we should add connect
79
+ // method where setup nanoquery, transports and interceptors, not in constructor
80
+ const [createFetcherStore, createMutatorStore, utils] = nanoquery();
81
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
82
+ // @ts-ignore
83
+ this.nanoquery = { createFetcherStore, createMutatorStore, utils };
75
84
  };
76
85
  registerInterceptor = (interceptor) => {
77
86
  this.interceptors.push(interceptor);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamlayer/sdk-web-api",
3
- "version": "0.21.0",
3
+ "version": "0.21.2",
4
4
  "type": "module",
5
5
  "main": "./lib/index.js",
6
6
  "typings": "./lib/index.d.ts",
@@ -21,14 +21,14 @@
21
21
  }
22
22
  },
23
23
  "dependencies": {
24
- "@streamlayer/sdk-web-interfaces": "^0.20.2"
24
+ "@streamlayer/sdk-web-interfaces": "^0.20.4"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@bufbuild/protobuf": "^1.6.0",
28
28
  "@connectrpc/connect": "^1.3.0",
29
29
  "@connectrpc/connect-web": "^1.3.0",
30
30
  "@nanostores/query": "^0.2.9",
31
- "@streamlayer/sl-eslib": "^5.66.0",
31
+ "@streamlayer/sl-eslib": "^5.67.0",
32
32
  "@swc/helpers": "^0.5.3",
33
33
  "nanostores": "^0.9.5",
34
34
  "tslib": "^2.6.2"