@cartridge/controller 0.13.11-alpha.2 → 0.13.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cartridge/controller",
3
- "version": "0.13.11-alpha.2",
3
+ "version": "0.13.11",
4
4
  "description": "Cartridge Controller",
5
5
  "repository": {
6
6
  "type": "git",
@@ -55,7 +55,7 @@
55
55
  "vite-plugin-node-polyfills": "^0.23.0",
56
56
  "vite-plugin-top-level-await": "^1.4.4",
57
57
  "vite-plugin-wasm": "^3.4.1",
58
- "@cartridge/tsconfig": "0.13.11-alpha.2"
58
+ "@cartridge/tsconfig": "0.13.11"
59
59
  },
60
60
  "scripts": {
61
61
  "build:deps": "pnpm build:browser && pnpm build:node",
@@ -351,8 +351,13 @@ export default class SessionProvider extends BaseProvider {
351
351
  localStorage.removeItem("sessionPolicies");
352
352
  localStorage.removeItem("lastUsedConnector");
353
353
  this.account = undefined;
354
- this.emitAccountsChanged([]);
355
354
  this._username = undefined;
355
+
356
+ // calling this InjectedConnector callback hangs forever, and we do not disconnect properly
357
+ // looking at InjectedConnector, it will disconnect is we pass [], so it must be safe to bypass
358
+ // this seems to be removed in the starknet 9 version
359
+ // this.emitAccountsChanged([]);
360
+
356
361
  const disconnectUrl = new URL(`${this._keychainUrl}`);
357
362
  disconnectUrl.pathname = "disconnect";
358
363