Patch Changes
-
Report an extended Electric outage in
collection.health. After the Collection is ready, five failed requests to the shape log in a row, retried by the client or by anonErrorthat returns a retry, show as the source node'sfailureReasonwith the fifth attempt's error, and the next applied up-to-date clears it. Shorter outages, and retried subset snapshot requests, leave health unchanged. A restarted or reloaded Collection resolvesawaitTxIdfor a txid the previous sync run delivered only once it is ready again, instead of at once, and the sync metadata it exports for hydration carries those txids only from then on. When the stream fails, pendingawaitTxIdandawaitMatchcalls reject instead of waiting for their timeout, and so do calls made after the failure, also when an abort stopped the stream. AnonErrorhandler that throws now gives up the stream with its own error, without an unhandled rejection. A give-up while the first snapshot's acceptance is pending, under a persistence wrapper, now fails the Collection once that acceptance makes it ready, instead of leaving a stopped stream with healthy status. AbortingshapeOptions.signalafter the Collection is ready now shows as the source node'serror, since the Collection no longer syncs. (#2336) -
Updated dependencies [
30e8546,a3c4d06,035a526,baabf57,9be51e0,a3c4d06,85392bd,9be3c4e]:- @tanstack/db@1.0.0-rc.1.2