@sensiblestats/widget-sdk 0.34.0 → 0.35.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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @sensiblestats/widget-sdk
2
2
 
3
+ ## 0.35.1
4
+
5
+ ### Patch Changes
6
+
7
+ - A suspended selection no longer appears in the market-odds ladder. The wire row now carries isSuspended, so the client can drop prices the bookmaker is not taking instead of offering an Add to slip button that always fails.
8
+
9
+ ## 0.35.0
10
+
11
+ ### Minor Changes
12
+
13
+ - Shows a half-time label instead of a frozen 45', ages the live minute against when the reading was
14
+ actually taken so it no longer sits up to two minutes behind, and stops asserting a clock for a
15
+ single match whose sync window has stalled.
16
+
3
17
  ## 0.34.0
4
18
 
5
19
  ### Minor Changes
package/dist/index.d.cts CHANGED
@@ -471,6 +471,8 @@ interface MarketOddsRow {
471
471
  quotedAtUtc?: string;
472
472
  matchOddsId?: number | null;
473
473
  isMainLine?: boolean;
474
+ /** The bookmaker is not taking this selection. Absent on older servers -> treated as open. */
475
+ isSuspended?: boolean;
474
476
  previousPrice?: number | null;
475
477
  previousPriceAtUtc?: string | null;
476
478
  movementDirection?: 'shortened' | 'drifted' | null;
@@ -661,6 +663,12 @@ interface MatchState {
661
663
  minuteLabel?: string | null;
662
664
  homeScore?: number | null;
663
665
  awayScore?: number | null;
666
+ /** Paused between halves. Phase stays 'live' — still in play — but there is no minute to show:
667
+ * the provider holds the clock at 45 through the break. */
668
+ isHalfTime?: boolean;
669
+ /** When the sync last wrote this reading. The client ages the minute against it, because the
670
+ * value was already up to one sync interval old before we polled for it. */
671
+ stateAsOfUtc?: string | null;
664
672
  }
665
673
  interface StatesPayload {
666
674
  states: MatchState[];
package/dist/index.d.ts CHANGED
@@ -471,6 +471,8 @@ interface MarketOddsRow {
471
471
  quotedAtUtc?: string;
472
472
  matchOddsId?: number | null;
473
473
  isMainLine?: boolean;
474
+ /** The bookmaker is not taking this selection. Absent on older servers -> treated as open. */
475
+ isSuspended?: boolean;
474
476
  previousPrice?: number | null;
475
477
  previousPriceAtUtc?: string | null;
476
478
  movementDirection?: 'shortened' | 'drifted' | null;
@@ -661,6 +663,12 @@ interface MatchState {
661
663
  minuteLabel?: string | null;
662
664
  homeScore?: number | null;
663
665
  awayScore?: number | null;
666
+ /** Paused between halves. Phase stays 'live' — still in play — but there is no minute to show:
667
+ * the provider holds the clock at 45 through the break. */
668
+ isHalfTime?: boolean;
669
+ /** When the sync last wrote this reading. The client ages the minute against it, because the
670
+ * value was already up to one sync interval old before we polled for it. */
671
+ stateAsOfUtc?: string | null;
664
672
  }
665
673
  interface StatesPayload {
666
674
  states: MatchState[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sensiblestats/widget-sdk",
3
- "version": "0.34.0",
3
+ "version": "0.35.1",
4
4
  "description": "Headless browser SDK for the SensibleStats chat widget gateway.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",