@bayonai/offline 0.10.0 → 0.10.1
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/CHANGELOG.md +4 -0
- package/RECOVERY.md +3 -0
- package/dist/recoveryPolicy.js +2 -0
- package/dist-cjs/recoveryPolicy.js +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.10.1 - 2026-11-04
|
|
4
|
+
|
|
5
|
+
- Recognize two exact Firestore server-only cache diagnostics as transient while retaining terminal-code precedence.
|
|
6
|
+
|
|
3
7
|
## 0.10.0 - 2026-11-03
|
|
4
8
|
|
|
5
9
|
- Fixed all four audited recovery gaps: strict pending-store reads, retained async
|
package/RECOVERY.md
CHANGED
|
@@ -62,3 +62,6 @@ No queue record is discarded or reclassified merely because the app reopened.
|
|
|
62
62
|
|
|
63
63
|
- Additional regression coverage: `src/recoveryRemediation.test.ts` exercises the
|
|
64
64
|
four audited failure compositions with real IndexedDB reads and safe cleanup.
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
Firestore server-only reads may report either exact “Failed to get documents from server.” or the exact SDK cache-retrieval guidance. These known messages classify as transient only when no structured code is present; terminal and unknown structured codes remain authoritative. Arbitrary messages containing connectivity words do not qualify.
|
package/dist/recoveryPolicy.js
CHANGED
|
@@ -46,6 +46,8 @@ const connectivityMessages = new Set([
|
|
|
46
46
|
"offline",
|
|
47
47
|
"network unavailable",
|
|
48
48
|
"failed to get documents from server. these documents may exist in the local cache",
|
|
49
|
+
"failed to get documents from server",
|
|
50
|
+
'failed to get documents from server. run again without setting source to "server" to retrieve the cached documents',
|
|
49
51
|
"failed to get document because the client is offline",
|
|
50
52
|
]);
|
|
51
53
|
/**
|
|
@@ -51,6 +51,8 @@ const connectivityMessages = new Set([
|
|
|
51
51
|
"offline",
|
|
52
52
|
"network unavailable",
|
|
53
53
|
"failed to get documents from server. these documents may exist in the local cache",
|
|
54
|
+
"failed to get documents from server",
|
|
55
|
+
'failed to get documents from server. run again without setting source to "server" to retrieve the cached documents',
|
|
54
56
|
"failed to get document because the client is offline",
|
|
55
57
|
]);
|
|
56
58
|
/**
|