@vue-skuilder/db 0.2.12 → 0.2.13

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.
@@ -7504,6 +7504,11 @@ Currently logged-in as ${this._username}.`
7504
7504
  return { ok: true };
7505
7505
  }
7506
7506
  const ret = await this.syncStrategy.logout();
7507
+ try {
7508
+ localStorage.removeItem("sk-guest-uuid");
7509
+ } catch (e) {
7510
+ logger.warn("localStorage not available (Node.js environment):", e);
7511
+ }
7507
7512
  this._username = await this.syncStrategy.getCurrentUsername();
7508
7513
  await this.init();
7509
7514
  return ret;
@@ -8878,6 +8883,14 @@ var init_CouchDBSyncStrategy = __esm({
8878
8883
  } else {
8879
8884
  logger.info("No documents to migrate from funnel account");
8880
8885
  }
8886
+ try {
8887
+ await oldLocalDB.destroy();
8888
+ logger.info(`Destroyed consumed guest DB for ${oldUsername}`);
8889
+ } catch (destroyErr) {
8890
+ logger.warn(
8891
+ `Failed to destroy consumed guest DB for ${oldUsername} (non-fatal): ${destroyErr instanceof Error ? destroyErr.message : String(destroyErr)}`
8892
+ );
8893
+ }
8881
8894
  return { success: true };
8882
8895
  } catch (error) {
8883
8896
  logger.error("Migration failed:", error);