Skip to content

v0.1.0 — API v3 migration + TypeScript rewrite

Choose a tag to compare

@dirkjanfaber dirkjanfaber released this 11 Jun 18:10
· 2 commits to main since this release

⚠️ Action required: update your area ID

The EskomSePush API v2 is being retired on 1 September 2026. This release migrates to API v3.

If your area ID looks like eskde-10-fourways, update it to eskde-10 (keep only the first two dash-separated parts). The node will auto-migrate old IDs and keep working, but will log a warning until you update the configuration.

What's new

  • API v3: All endpoints now use https://developer.sepush.co.za/business/3.0/
  • Area ID migration: Old v2-style IDs are detected and converted automatically. A node.warn() message appears in the debug tab to remind you to update the node config.

Bug fixes

  • Per-instance state: When multiple EskomSePush nodes existed in the same flow they silently shared data, causing incorrect readings. Each node now maintains its own state.
  • Status display: The node status bar incorrectly prepended a weekday name to nearly every time string due to a day-of-week vs. day-of-month comparison bug.
  • Event note crash: The node crashed if an event note did not contain a "Stage N" pattern.

Under the hood

  • Rewritten in TypeScript
  • Jest test suite added (29 tests covering the load shedding calculation and API client)
  • Dependencies updated: axios 1.17, TypeScript 6, Node.js ≥ 18 required