@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.
- package/dist/index.cjs.js +6 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +6 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.node.cjs.js +6 -5
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +6 -5
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/package.json +10 -10
package/dist/index.esm.js
CHANGED
|
@@ -4,7 +4,7 @@ import { FirebaseError, generateSHA256Hash, isCloudWorkstation, pingServer } fro
|
|
|
4
4
|
import { Logger } from '@firebase/logger';
|
|
5
5
|
|
|
6
6
|
const name = "@firebase/data-connect";
|
|
7
|
-
const version = "0.7.
|
|
7
|
+
const version = "0.7.2-20260728185501";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @license
|
|
@@ -1663,13 +1663,13 @@ class RESTTransport extends AbstractDataConnectTransport {
|
|
|
1663
1663
|
/** The Request ID of the first request over the stream */
|
|
1664
1664
|
const FIRST_REQUEST_ID = 1;
|
|
1665
1665
|
/** Time to wait before closing an idle connection (no active subscriptions). */
|
|
1666
|
-
const IDLE_CONNECTION_TIMEOUT_MS =
|
|
1666
|
+
const IDLE_CONNECTION_TIMEOUT_MS = 15 * 1000; // 15 seconds
|
|
1667
1667
|
/** Initial reconnect delay in ms */
|
|
1668
|
-
const INITIAL_RECONNECT_DELAY_MS = 1000;
|
|
1668
|
+
const INITIAL_RECONNECT_DELAY_MS = 1000; // 1 second
|
|
1669
1669
|
/** Max reconnect delay in ms */
|
|
1670
|
-
const MAX_RECONNECT_DELAY_MS =
|
|
1670
|
+
const MAX_RECONNECT_DELAY_MS = 30 * 1000; // 30 seconds
|
|
1671
1671
|
/** Max random jitter to add to reconnect delay in ms */
|
|
1672
|
-
const MAX_RECONNECT_JITTER_MS =
|
|
1672
|
+
const MAX_RECONNECT_JITTER_MS = 0.5 * 1000; // 0.5 seconds
|
|
1673
1673
|
/** Factor to multiply delay by on failure */
|
|
1674
1674
|
const RECONNECT_BACKOFF_FACTOR = 1.3;
|
|
1675
1675
|
/** Max number of reconnection attempts before giving up */
|
|
@@ -3133,6 +3133,7 @@ function makeMemoryCacheProvider() {
|
|
|
3133
3133
|
* See the License for the specific language governing permissions and
|
|
3134
3134
|
* limitations under the License.
|
|
3135
3135
|
*/
|
|
3136
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
3136
3137
|
function registerDataConnect(variant) {
|
|
3137
3138
|
setSDKVersion(SDK_VERSION$1);
|
|
3138
3139
|
_registerComponent(new Component('data-connect', (container, { instanceIdentifier: connectorConfigStr, options }) => {
|