Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 1.42 KB

CHANGELOG.md

File metadata and controls

35 lines (28 loc) · 1.42 KB

Changelog

This file contains the changes made to the package.

The sections are in descending order of the change date.

2.0.0 - 2024-02-12

Fixed

  • HubClient.off method may use .splice method when a function is passed to method parameter and it was not found and therefore causing .indexOf method to return -1 which would be passed to .splice method causing an operation that was not supposed to happen.

Added

  • acceptCleanup option for allowing any useListener event handler function to return a function to run it on clean-up stage. This option may be a boolean or a function which will take the event name and the hub name and return a boolean indicating if the function returned from the event handler can be used for clean-up stage.

Changed

  • HubClient.untilConnected now uses an internal locking mechanism.
  • DEBUG_HUB_CLIENT debugging environment is expected to be named as SIGNALR_HUB_CLIENT_DEBUG now.

Removed

  • HubClient.state property, connectionState property can be used instead.
  • HubClient.methods property. It is inlined and the methods are passed to the underlying handler directly.

1.0.0 - 2024-01-28

The initial version of the package.