Skip to content

Releases: launchdarkly/swift-eventsource

v3.3.0

31 May 14:19
5705170
Compare
Choose a tag to compare

3.3.0 (2024-05-31)

Features

  • adds ability to provide a OSLog instance via the Config.logger property (c10ec29)
  • adds ability to provide a OSLog instance via the Config.logger property (#78) (2220929)

v3.2.0

03 May 19:41
23560ce
Compare
Choose a tag to compare

3.2.0 (2023-12-29)

Features

  • Add Compilation & Testing On Windows (#68) (ac5f18c)

[3.1.1] - 2023-06-12

12 Jun 16:20
3d45eac
Compare
Choose a tag to compare

Fixed:

  • Per the SSE spec, an HTTP 204 will now halt retry attempts by default.

[3.1.0] - 2023-06-05

05 Jun 14:48
f50e92d
Compare
Choose a tag to compare

Changed:

  • Enforce TLS v1.2 as a required minimum.

Fixed:

  • Fix re-entrancy issue with start command. (Thanks, g-mark!)

[3.0.0] - 2022-10-06

06 Oct 15:40
aa03131
Compare
Choose a tag to compare

Changed

  • Dropped support for older versions in accordance with the new Xcode 14 release.

[2.0.0] - 2022-08-29

30 Aug 13:24
e642325
Compare
Choose a tag to compare

Changed

[1.3.1] - 2022-03-11

11 Mar 19:29
3782466
Compare
Choose a tag to compare

Fixed

  • Fixed a race condition that could cause a crash when stop() is called when there is a pending reconnection attempt.

[1.3.0] - 2022-01-18

18 Jan 20:35
30cfa4c
Compare
Choose a tag to compare

Added

  • Added the configuration option urlSessionConfiguration to EventSource.Config which allows setting the URLSessionConfiguration used by the EventSource to create URLSession instances.

Fixed

  • Fixed a retain cycle issue when the stream connection is ended.
  • Removed deprecated VALID_ARCHS build setting from Xcode project.
  • Unterminated events will no longer be dispatched when the stream connection is dropped.
  • Stream events that set the lastEventId will now record the updated lastEventId even if the event does not generate a MessageEvent.
  • Empty stream "data" fields will now always record a newline to the resultant MessageEvent data.
  • Empty stream "event" fields will result in now result in the default "message" event type rather than an event type of "".

[1.2.1] - 2021-02-10

11 Feb 01:25
7c40ada
Compare
Choose a tag to compare

Added

  • SwiftLint configuration. Linting will be automatically run as part of the build if Mint is installed.
  • Support for building docs with jazzy. These docs are available through GitHub Pages.

Fixed

  • Reconnection backoff was always reset if the previous successful connection was at least backoffResetThreshold prior to the scheduling of a reconnection attempt. The connection backoff has been corrected to not reset after the first reconnection attempt until the next successful connection. Thanks to @tomasf for the PR (#14).
  • On an UnsuccessfulResponseError the configured connectionErrorHandler would be called twice, the second time with a URLError.cancelled error. Only if the second call returned ConnectionErrorAction.shutdown would the EventSource client actually shutdown. This has been corrected to only call the connectionErrorHandler once, and will shutdown the client if ConnectionErrorAction.shutdown is returned. Thanks to @tomasf for the PR (#13).
  • A race condition that could cause the EventSource client to restart after shutting down has been fixed.

[1.2.0] - 2020-10-21

21 Oct 16:33
9e22401
Compare
Choose a tag to compare

Added

  • Added headerTransform closure to LDConfig to allow dynamic http header configuration.