@firebase/data-connect 0.7.1 → 0.7.2-20260728185501

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.
@@ -527,13 +527,13 @@ class RESTTransport extends AbstractDataConnectTransport {
527
527
  /** The Request ID of the first request over the stream */
528
528
  const FIRST_REQUEST_ID = 1;
529
529
  /** Time to wait before closing an idle connection (no active subscriptions). */
530
- const IDLE_CONNECTION_TIMEOUT_MS = 0; // immediate close
530
+ const IDLE_CONNECTION_TIMEOUT_MS = 15 * 1000; // 15 seconds
531
531
  /** Initial reconnect delay in ms */
532
- const INITIAL_RECONNECT_DELAY_MS = 1000;
532
+ const INITIAL_RECONNECT_DELAY_MS = 1000; // 1 second
533
533
  /** Max reconnect delay in ms */
534
- const MAX_RECONNECT_DELAY_MS = 30000;
534
+ const MAX_RECONNECT_DELAY_MS = 30 * 1000; // 30 seconds
535
535
  /** Max random jitter to add to reconnect delay in ms */
536
- const MAX_RECONNECT_JITTER_MS = 500;
536
+ const MAX_RECONNECT_JITTER_MS = 0.5 * 1000; // 0.5 seconds
537
537
  /** Factor to multiply delay by on failure */
538
538
  const RECONNECT_BACKOFF_FACTOR = 1.3;
539
539
  /** Max number of reconnection attempts before giving up */
@@ -1561,7 +1561,7 @@ class WebSocketTransport extends AbstractDataConnectStreamTransport {
1561
1561
  }
1562
1562
 
1563
1563
  const name = "@firebase/data-connect";
1564
- const version = "0.7.1";
1564
+ const version = "0.7.2-20260728185501";
1565
1565
 
1566
1566
  /**
1567
1567
  * @license
@@ -3153,6 +3153,7 @@ function makeMemoryCacheProvider() {
3153
3153
  * See the License for the specific language governing permissions and
3154
3154
  * limitations under the License.
3155
3155
  */
3156
+ // eslint-disable-next-line import/no-extraneous-dependencies
3156
3157
  function registerDataConnect(variant) {
3157
3158
  setSDKVersion(app.SDK_VERSION);
3158
3159
  app._registerComponent(new component.Component('data-connect', (container, { instanceIdentifier: connectorConfigStr, options }) => {