@pol-studios/db 1.0.50 → 1.0.51

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useDbUpsert
3
- } from "./chunk-RJIVXO4U.js";
3
+ } from "./chunk-3Q74DK5K.js";
4
4
  import {
5
5
  normalizeFilter
6
6
  } from "./chunk-Z3EJX3VG.js";
@@ -9,10 +9,10 @@ import {
9
9
  } from "./chunk-7SCJNYTE.js";
10
10
  import {
11
11
  useDbQuery
12
- } from "./chunk-DKUF2FKB.js";
12
+ } from "./chunk-DP3YEVSX.js";
13
13
  import {
14
14
  useDataLayerCoreOptional
15
- } from "./chunk-AIYPSXIO.js";
15
+ } from "./chunk-WQLIGVQR.js";
16
16
  import {
17
17
  getSupabaseUrl
18
18
  } from "./chunk-GC3TBUWE.js";
@@ -4703,6 +4703,7 @@ var AdapterRegistry = class {
4703
4703
  } else {
4704
4704
  this.syncTrackingAdapter = null;
4705
4705
  }
4706
+ this.adapters.clear();
4706
4707
  }
4707
4708
  /**
4708
4709
  * Set a getter function for lazy PowerSync adapter initialization.
@@ -4824,6 +4825,9 @@ var AdapterRegistry = class {
4824
4825
  const isConfigured = powerSyncTableKeys.some((key) => key === table || key === tableWithoutSchema || key.includes(".") && key.split(".")[1] === tableWithoutSchema);
4825
4826
  if (!isConfigured) {
4826
4827
  if (this.supabaseAdapter) {
4828
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
4829
+ console.warn(`[AdapterRegistry] Table "${table}" is not configured for PowerSync sync. Using Supabase fallback.`);
4830
+ }
4827
4831
  return this.supabaseAdapter;
4828
4832
  }
4829
4833
  throw new Error(`Table "${table}" is not configured for PowerSync sync and Supabase adapter is not available. Either add this table to the PowerSync schema or initialize the Supabase adapter.`);
@@ -5048,6 +5052,9 @@ var AdapterRegistry = class {
5048
5052
  if (!this.supabaseAdapter) {
5049
5053
  throw new Error("Supabase adapter not initialized. Ensure SupabaseAdapter is set before accessing tables.");
5050
5054
  }
5055
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
5056
+ console.warn(`[AdapterRegistry] Unknown strategy "${strategy.strategy}". Using Supabase fallback.`);
5057
+ }
5051
5058
  return this.supabaseAdapter;
5052
5059
  }
5053
5060
  }
@@ -5068,6 +5075,8 @@ var AdapterRegistry = class {
5068
5075
  reset() {
5069
5076
  this.adapters.clear();
5070
5077
  this.powerSyncAdapter = null;
5078
+ this.powerSyncGetter = null;
5079
+ this.powerSyncAdapterFactory = null;
5071
5080
  this.supabaseAdapter = null;
5072
5081
  this.cachedAdapter = null;
5073
5082
  this.deps = null;
@@ -7996,4 +8005,4 @@ moment/moment.js:
7996
8005
  (*! license : MIT *)
7997
8006
  (*! momentjs.com *)
7998
8007
  */
7999
- //# sourceMappingURL=chunk-7CLN4ORU.js.map
8008
+ //# sourceMappingURL=chunk-PGTRDT5K.js.map