From 47e5fe15945ab28b7e98225e86c95e714e3b761a Mon Sep 17 00:00:00 2001 From: Mike Lazarski <68407656+Mlaz-code@users.noreply.github.com> Date: Thu, 2 Jul 2026 12:02:36 -0400 Subject: [PATCH] =?UTF-8?q?chore(release):=20stage=20v0.4.2=20=E2=80=94=20?= =?UTF-8?q?bump=20version,=20changelog,=20engines=20field?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Bump 0.4.1 -> 0.4.2: main carries the unreleased is_suspended / suspended_since EVOpportunity fields (#13); npm already has 0.4.1, so the next `gh release create` requires the bump or publish 403s. - CHANGELOG entry for 0.4.2 documenting the suspended-opportunity fields (inert until EV_SUSPENDED_STATE flips server-side). - Add engines: node >=18, matching the Node 18/20/22 CI matrix. Refs #16 Co-Authored-By: Claude Fable 5 --- CHANGELOG.md | 19 +++++++++++++++++++ package.json | 5 ++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 86bf554..d1f0694 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,25 @@ All notable changes to `@sharp-api/client` are documented here. +## 0.4.2 — 2026-07-02 + +### Added — suspended-opportunity state (issue #13 / sharp-api-go #789) + +- `EVOpportunity` gains optional `is_suspended` (`boolean`) and + `suspended_since` (unix seconds, present only while suspended). When the + sharp reference (Pinnacle) momentarily suspends a live market, the engine + keeps the opp visible-but-suspended under the same stable `id` with the + edge hidden, instead of dropping and re-adding it — consumers can grey the + row and keep it in place across resume. Wire keys are snake_case. +- Inert until the server-side `EV_SUSPENDED_STATE` flag is enabled; absent + from the wire otherwise. Additive optional fields — non-breaking, matching + the `team_side` / `market_segment` precedent. + +### Changed + +- `package.json` now declares `engines: { node: ">=18" }`, matching the + Node 18/20/22 CI matrix (metadata only; no runtime change). + ## 0.4.1 — 2026-06-02 ### Added — structured `team_side` + `market_segment` (issue #76 / #689) diff --git a/package.json b/package.json index 70ecb8a..25be080 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sharp-api/client", - "version": "0.4.1", + "version": "0.4.2", "description": "Official TypeScript/JavaScript client for the SharpAPI real-time sports betting odds API", "type": "module", "main": "./dist/index.cjs", @@ -22,6 +22,9 @@ "dist" ], "sideEffects": false, + "engines": { + "node": ">=18" + }, "license": "MIT", "author": "SharpAPI ", "repository": {