@pol-studios/db 1.0.49 → 1.0.50

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.
@@ -4829,11 +4829,14 @@ var AdapterRegistry = class {
4829
4829
  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.`);
4830
4830
  }
4831
4831
  }
4832
- return this.getAutoAdapter(strategy);
4832
+ return this.getAutoAdapter(strategy, table);
4833
4833
  }
4834
4834
  if (strategy.strategy === "powersync" && this.autoDetector && this.supabaseAdapter) {
4835
4835
  const detection = this.autoDetector.detectSilent();
4836
4836
  if (detection.powerSyncStatus === "initializing" /* INITIALIZING */ && detection.isOnline) {
4837
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
4838
+ console.warn(`[AdapterRegistry] Table "${table}" configured for PowerSync but using Supabase. PowerSync status: ${detection.powerSyncStatus}, Online: ${detection.isOnline}`);
4839
+ }
4837
4840
  return this.supabaseAdapter;
4838
4841
  }
4839
4842
  }
@@ -4935,11 +4938,14 @@ var AdapterRegistry = class {
4935
4938
  * @param strategy - Optional auto strategy configuration
4936
4939
  * @returns The automatically selected adapter
4937
4940
  */
4938
- getAutoAdapter(_strategy) {
4941
+ getAutoAdapter(_strategy, table) {
4939
4942
  if (!this.autoDetector) {
4940
4943
  if (!this.supabaseAdapter) {
4941
4944
  throw new Error("No auto-detector configured and Supabase adapter not available. Either initialize auto-detection or set adapters explicitly.");
4942
4945
  }
4946
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
4947
+ console.warn(`[AdapterRegistry] No auto-detector configured${table ? ` for table "${table}"` : ""}. Using Supabase fallback.`);
4948
+ }
4943
4949
  return this.supabaseAdapter;
4944
4950
  }
4945
4951
  const detection = this.autoDetector.detectSilent();
@@ -4949,6 +4955,9 @@ var AdapterRegistry = class {
4949
4955
  if (!this.supabaseAdapter) {
4950
4956
  throw new Error("Neither PowerSync nor Supabase adapters are available.");
4951
4957
  }
4958
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
4959
+ console.warn(`[AdapterRegistry] PowerSync recommended${table ? ` for table "${table}"` : ""} but adapter not available. Falling back to Supabase. Reason: ${detection.reason}`);
4960
+ }
4952
4961
  return this.supabaseAdapter;
4953
4962
  }
4954
4963
  return this.powerSyncAdapter;
@@ -7987,4 +7996,4 @@ moment/moment.js:
7987
7996
  (*! license : MIT *)
7988
7997
  (*! momentjs.com *)
7989
7998
  */
7990
- //# sourceMappingURL=chunk-V4MNSMMA.js.map
7999
+ //# sourceMappingURL=chunk-7CLN4ORU.js.map