@pgxsinkit/client 0.5.2 → 0.6.0-rc.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/dist/circuits/long-poll.d.ts +76 -0
- package/dist/circuits/long-poll.d.ts.map +1 -0
- package/dist/circuits/shape-group.d.ts +3 -3
- package/dist/circuits/stream-source.d.ts +76 -43
- package/dist/circuits/stream-source.d.ts.map +1 -1
- package/dist/circuits/subscription-client.d.ts +7 -7
- package/dist/circuits/sync-engine.d.ts +1 -1
- package/dist/event-lane.d.ts +2 -2
- package/dist/event-lane.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +219 -49
- package/dist/index.js.map +14 -12
- package/dist/local-tables.d.ts +511 -482
- package/dist/local-tables.d.ts.map +1 -1
- package/dist/retry-after.d.ts +9 -0
- package/dist/retry-after.d.ts.map +1 -0
- package/dist/schema.d.ts.map +1 -1
- package/dist/store-build.d.ts.map +1 -1
- package/dist/sync/metadata-tables.d.ts +2 -0
- package/dist/sync/metadata-tables.d.ts.map +1 -1
- package/dist/sync/types.d.ts.map +1 -1
- package/package.json +7 -8
- package/skills/core/SKILL.md +1 -1
- package/skills/operating/SKILL.md +6 -6
- package/src/circuits/long-poll.ts +174 -0
- package/src/circuits/shape-group.ts +3 -3
- package/src/circuits/stream-source.ts +226 -99
- package/src/circuits/subscription-client.ts +15 -15
- package/src/circuits/sync-engine.ts +1 -1
- package/src/event-lane.ts +3 -19
- package/src/index.ts +11 -3
- package/src/local-tables.ts +8 -5
- package/src/retry-after.ts +24 -0
- package/src/schema.ts +9 -4
- package/src/store-build.ts +4 -3
- package/src/sync/types.ts +2 -1
package/src/store-build.ts
CHANGED
|
@@ -20,14 +20,15 @@ export function assertStoreBuild(declared: StorageBuild, supplied: BuildIdentity
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* The typed build refusals (ADR-0063): the declared build is not the supplied one, or the data directory or
|
|
23
|
-
* backup was made by another build or
|
|
24
|
-
* stable across bundle copies and the worker bridge. None of them is transient, so an
|
|
25
|
-
* one is never retried.
|
|
23
|
+
* backup was made by another build, data format or PostgreSQL major, or its marker is unreadable. Matched
|
|
24
|
+
* by `name`, which is stable across bundle copies and the worker bridge. None of them is transient, so an
|
|
25
|
+
* open that failed with one is never retried.
|
|
26
26
|
*/
|
|
27
27
|
const STORE_BUILD_REFUSALS: ReadonlySet<string> = new Set([
|
|
28
28
|
"StorageBuildMismatchError",
|
|
29
29
|
"BuildMismatchError",
|
|
30
30
|
"DataFormatMismatchError",
|
|
31
|
+
"PostgresVersionMismatchError",
|
|
31
32
|
"BuildMarkerUnreadableError",
|
|
32
33
|
]);
|
|
33
34
|
|
package/src/sync/types.ts
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
//
|
|
4
4
|
// What remains here is only what the NATIVE path uses. The shape-stream option and message types this
|
|
5
5
|
// file used to re-export were `@electric-sql/client`'s, and nothing reads them any more: the transport
|
|
6
|
-
// is
|
|
6
|
+
// is pgxsinkit's own stream reader (`circuits/stream-source.ts`) and the change contract is
|
|
7
|
+
// `@pgxsinkit/contracts`' `SyncChange`.
|
|
7
8
|
|
|
8
9
|
import type { SyncChange } from "@pgxsinkit/contracts";
|
|
9
10
|
|