@electric-sql/client
Advanced tools
Comparing version 0.4.1 to 0.5.0
@@ -195,2 +195,4 @@ type Value = string | number | boolean | bigint | null | Value[] | { | ||
isConnected(): boolean; | ||
/** True during initial fetch. False afterwise. */ | ||
isLoading(): boolean; | ||
private notifyUpToDateSubscribers; | ||
@@ -246,2 +248,4 @@ private sendErrorToUpToDateSubscribers; | ||
isConnected(): boolean; | ||
/** True during initial fetch. False afterwise. */ | ||
isLoading(): boolean; | ||
get value(): Promise<ShapeData<T>>; | ||
@@ -248,0 +252,0 @@ get valueSync(): ShapeData<T>; |
@@ -331,2 +331,6 @@ var __defProp = Object.defineProperty; | ||
} | ||
/** True during initial fetch. False afterwise. */ | ||
isLoading() { | ||
return !this.isUpToDate; | ||
} | ||
notifyUpToDateSubscribers() { | ||
@@ -422,2 +426,6 @@ this.upToDateSubscribers.forEach(([callback]) => { | ||
} | ||
/** True during initial fetch. False afterwise. */ | ||
isLoading() { | ||
return this.stream.isLoading(); | ||
} | ||
get value() { | ||
@@ -424,0 +432,0 @@ return new Promise((resolve) => { |
{ | ||
"name": "@electric-sql/client", | ||
"version": "0.4.1", | ||
"version": "0.5.0", | ||
"description": "Postgres everywhere - your data, in sync, wherever you need it.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -366,2 +366,7 @@ import { Message, Offset, Schema, Row } from './types' | ||
/** True during initial fetch. False afterwise. */ | ||
isLoading(): boolean { | ||
return !this.isUpToDate | ||
} | ||
private notifyUpToDateSubscribers() { | ||
@@ -518,2 +523,7 @@ this.upToDateSubscribers.forEach(([callback]) => { | ||
/** True during initial fetch. False afterwise. */ | ||
isLoading(): boolean { | ||
return this.stream.isLoading() | ||
} | ||
get value(): Promise<ShapeData<T>> { | ||
@@ -520,0 +530,0 @@ return new Promise((resolve) => { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
251637
2806