@cross-deck/web 1.7.0 → 1.8.0
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 +29 -0
- package/dist/crossdeck.umd.min.js +2 -2
- package/dist/crossdeck.umd.min.js.map +1 -1
- package/dist/error-codes.json +8 -1
- package/dist/index.cjs +84 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +15 -5
- package/dist/index.d.ts +15 -5
- package/dist/index.mjs +84 -14
- package/dist/index.mjs.map +1 -1
- package/dist/react.cjs +73 -3
- package/dist/react.cjs.map +1 -1
- package/dist/react.mjs +73 -3
- package/dist/react.mjs.map +1 -1
- package/dist/vue.cjs +73 -3
- package/dist/vue.cjs.map +1 -1
- package/dist/vue.mjs +73 -3
- package/dist/vue.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/contracts.json +0 -546
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@cross-deck/web` will be documented here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
4
4
|
|
|
5
|
+
## [1.8.0] — 2026-06-11
|
|
6
|
+
|
|
7
|
+
**PARK on version-rejection — events are held, never dropped.** A third
|
|
8
|
+
event-queue outcome for the day the server stops accepting an outdated event
|
|
9
|
+
format. Purely additive; no public API change.
|
|
10
|
+
|
|
11
|
+
**Added:**
|
|
12
|
+
|
|
13
|
+
- **PARK (HTTP `426` / `sdk_version_unsupported`).** Previously a permanent 4xx
|
|
14
|
+
dropped the batch. Now a version-rejection is recognised as its own outcome —
|
|
15
|
+
distinct from retry (transient) and drop (invalid): the data is good, only the
|
|
16
|
+
wire dialect is stale. The queue **holds** the events (folded to the front of
|
|
17
|
+
the durable localStorage queue, FIFO-capped at 1000), **hushes** (stops
|
|
18
|
+
flushing a known-too-old payload — no wasted battery/bandwidth), **signals**
|
|
19
|
+
once (one `console.warn` + a typed `sdk.parked` debug event the dashboard
|
|
20
|
+
reads), and **backfills** on the next page load after you upgrade. So "paused,
|
|
21
|
+
not lost — held on-device, resumes on upgrade" is literally true.
|
|
22
|
+
- **`sdk_version_unsupported`** added to the error-codes catalogue with
|
|
23
|
+
remediation, and `version_error` to `CrossdeckErrorType`. `CrossdeckError`
|
|
24
|
+
now carries `minVersion` / `surface` (parsed from the 426 body) so the PARK
|
|
25
|
+
message names the exact version to update to.
|
|
26
|
+
- New `onParked` queue callback (host → dashboard heartbeat channel).
|
|
27
|
+
- Bundle-size budget: UMD min 33 → 35 KB gzipped (~0.5 KB for the PARK branch +
|
|
28
|
+
onParked + catalogue entry + minVersion/surface). core/react/vue unchanged,
|
|
29
|
+
under budget.
|
|
30
|
+
|
|
31
|
+
See https://cross-deck.com/docs/sdk-event-durability/ for the full durability
|
|
32
|
+
contract.
|
|
33
|
+
|
|
5
34
|
## [1.7.0] — 2026-06-10
|
|
6
35
|
|
|
7
36
|
Event Envelope v1 conformance (`backend/docs/event-envelope-spec-v1.md`). Wire-breaking change (pre-launch; free). No public API change.
|