Skip to content

v0.0.13

Latest

Choose a tag to compare

@bewest bewest released this 07 Jul 22:16
b394411

nightscout-connect 0.0.13 Release Notes Draft

Highlights

Dexcom Share

  • Supports newer G7-era AuthenticatePublisherAccount responses that return { accountId: "..." }.
  • Preserves older bare-UUID account ID behavior.
  • Propagates authentication and network failures instead of treating errors as successful data.
  • Adds tests for US/OUS/custom server selection, accountId wrappers, non-HTTP failures, and timestamp/trend mapping.

Nightscout source/output

  • Fixes Nightscout source token exchange where session authorization used an undefined headers object.
  • Falls back to creating/reusing nightscout-connect-reader when verifyauth is blocked but an API secret is available.
  • Keeps public-readable source sites tokenless.
  • Adds explicit destination Nightscout config errors for missing endpoint or API secret.
  • Adds entries, treatments, devicestatus, and profile copy support for Nightscout-to-Nightscout sync.
  • Adds CONNECT_SOURCE_COLLECTIONS and CONNECT_SOURCE_MAX_COUNT for collection selection and batch size.
  • Adds fake-server and fixture-backed tests for source token flows and output writes with hashed API-SECRET.

LibreLinkUp

  • Safely defaults omitted CONNECT_LINK_UP_REGION to EU.
  • Adds support/documentation for EU2 and CA plus explicit server override.
  • Handles multi-patient mismatch explicitly when CONNECT_LINK_UP_PATIENT_ID is configured.
  • Tolerates missing graph/current readings.
  • Preserves timezone-qualified timestamps without double shifting.

Glooko

  • Adds configurable/generated device identity for login.
  • Adds optional CONNECT_GLOOKO_AUTH_MODE=api|web|auto.
    • api remains the default.
    • web uses the web sign-in form with CSRF token handling.
    • auto tries API login first and falls back to web login on 422.
  • Adds optional CONNECT_GLOOKO_WEB_ORIGIN for regional/custom hosts.
  • Adds optional CONNECT_GLOOKO_USE_V3_GRAPH=true to fetch cgmHigh, cgmNormal, and cgmLow when v2 CGM readings are empty.
  • Resolves patient code via /api/v3/session/users when web-login sessions do not return the older userLogin.glookoCode.
  • Fails clearly for 2FA-required responses, which are not implemented yet.
  • Adds mmol/L fallback conversion when v3 graph value is absent and y is display-unit data.

Dependencies

  • Updates safe dependency ranges for axios, qs, tough-cookie, yargs, and moment.
  • Removes unused axios-har-tracker dev dependency. Active capture uses local lib/trace-axios.js.
  • Leaves major upgrades for later (xstate 5, axios-cookiejar-support 7, tough-cookie 6, yargs 18).

Contributor credit

This release preserves prior contributor work on dev, including:

  • Christopher Singhaus: Dexcom Share auth/G7 compatibility work from PR #55.
  • BillyJBryant: LibreLinkUp crash fix.
  • Adrian Caramaliu / ady624: LibreLinkUp delay/interval/docs work.
  • Lucien Immink: Glooko device information work.
  • Heiner1: work merged via Heiner1/connect-issue.

Follow-up integration commits add tests, hardening, feature flags, and documentation on top of those contributions.

Known caveats

  • Glooko web-login and v3 graph paths are unofficial and feature-flagged. They are supported by public evidence and fake-server tests, but should remain opt-in until live/sanitized fixtures validate EU, US, mmol/L, mg/dL, Omnipod 5, and CamAPS accounts.
  • Glooko 2FA/OTP is detected and reported, but not implemented.
  • Glooko timezone handling still uses fixed offsets. Named-timezone/DST handling should be a follow-up.

What's Changed

New Contributors

Full Changelog: v0.0.12...v0.0.13