Skip to content

Releases: evercharge/ocpp-ts

v0.4.1

Choose a tag to compare

@s0phr0syn3 s0phr0syn3 released this 07 Jul 19:16
f6f6a51

What's Changed

  • chore: switch publishing to npmjs.org by @s0phr0syn3 in #11
  • Celsius is misspelled in OCPP schema, supporting both by @mitch3x3 in #12
  • fix(release): make npm publish reproducible and target npmjs.org by @s0phr0syn3 in #13
  • ci(release): publish to npm via OIDC trusted publishing by @s0phr0syn3 in #14
  • fix(release): add repository field for provenance validation by @s0phr0syn3 in #15

New Contributors

Full Changelog: v0.4.0...v0.4.1

v0.4.0

Choose a tag to compare

@s0phr0syn3 s0phr0syn3 released this 09 Apr 23:50
500c7a0

Changes since v0.3.2

All changes are additive and back-compatible with v0.3.2.

New features

  • terminate() method added to OcppClient and OcppServer for graceful shutdown (#5)
  • Websocket internals exposed in Client and Server for connection lifecycle hooks (#5)
  • Inbound MessageId injection — incoming CALL payloads now include payload.messageId so handlers can read the on-wire OCPP-J MessageId (#6)
  • Configurable request timeout — Protocol, Client, and Server constructors accept an optional callTimeoutMs parameter (default 10000) (#8)
  • Caller-supplied outbound MessageId — callRequest accepts an optional messageId parameter; when supplied, it is used verbatim as the on-wire MessageId (#9)

Bug fixes

  • setTimeout leak — Protocol.callRequest no longer leaks a 10s timer on every successful response. The timer is now cleared in both onCallResult and onCallError (#7)

Why this release

Closes the patch-package patch lifecycle in evercharge/central-ocpp. Central-ocpp has been carrying a 558-line patches/ocpp-ts+0.3.0.patch for nearly a year that added most of the above features as monkey-patches. v0.4.0 lands them as proper source edits so central-ocpp can consume @evercharge/ocpp-ts@^0.4.0 directly from GitHub Packages.

Part of CLOUD-4224.

v0.3.1

Choose a tag to compare

@jeremydavidson jeremydavidson released this 21 Apr 16:00

Release v0.3.1