Skip to content

Commit 7c40ada

Browse files
authored
Prepare 1.2.1 release (#19)
## [1.2.1] - 2021-02-10 ### Added - [SwiftLint](https://github.com/realm/SwiftLint) configuration. Linting will be automatically run as part of the build if [Mint](https://github.com/yonaskolb/Mint) is installed. - Support for building docs with [jazzy](https://github.com/realm/jazzy). These docs are available through [GitHub Pages](https://launchdarkly.github.io/swift-eventsource/). ### 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](#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](#13)). - A race condition that could cause the eventsource to restart after shutting down has been fixed.
1 parent 5e4a684 commit 7c40ada

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
All notable changes to the LaunchDarkly Swift EventSource library will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
44

5+
## [1.2.1] - 2021-02-10
6+
### Added
7+
- [SwiftLint](https://github.com/realm/SwiftLint) configuration. Linting will be automatically run as part of the build if [Mint](https://github.com/yonaskolb/Mint) is installed.
8+
- Support for building docs with [jazzy](https://github.com/realm/jazzy). These docs are available through [GitHub Pages](https://launchdarkly.github.io/swift-eventsource/).
9+
10+
### Fixed
11+
- 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](https://github.com/launchdarkly/swift-eventsource/pull/14)).
12+
- 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](https://github.com/launchdarkly/swift-eventsource/pull/13)).
13+
- A race condition that could cause the `EventSource` client to restart after shutting down has been fixed.
14+
515
## [1.2.0] - 2020-10-21
616
### Added
717
- Added `headerTransform` closure to `LDConfig` to allow dynamic http header configuration.

LDSwiftEventSource.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "LDSwiftEventSource"
3-
s.version = "1.2.0"
3+
s.version = "1.2.1"
44
s.summary = "Swift EventSource library"
55
s.homepage = "https://github.com/launchdarkly/swift-eventsource"
66
s.license = { :type => "Apache License, Version 2.0", :file => "LICENSE.txt" }

LDSwiftEventSource.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@
464464
"@executable_path/../Frameworks",
465465
"@loader_path/Frameworks",
466466
);
467-
MARKETING_VERSION = 1.2.0;
467+
MARKETING_VERSION = 1.2.1;
468468
SKIP_INSTALL = YES;
469469
"TARGETED_DEVICE_FAMILY[sdk=appletvos*]" = 3;
470470
"TARGETED_DEVICE_FAMILY[sdk=appletvsimulator*]" = 3;
@@ -498,7 +498,7 @@
498498
"@executable_path/../Frameworks",
499499
"@loader_path/Frameworks",
500500
);
501-
MARKETING_VERSION = 1.2.0;
501+
MARKETING_VERSION = 1.2.1;
502502
SKIP_INSTALL = YES;
503503
"TARGETED_DEVICE_FAMILY[sdk=appletvos*]" = 3;
504504
"TARGETED_DEVICE_FAMILY[sdk=appletvsimulator*]" = 3;

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![SwiftPM compatible](https://img.shields.io/badge/SwiftPM-compatible-4BC51D.svg?style=flat)](https://swift.org/package-manager/)
77
[![Platform](https://img.shields.io/cocoapods/p/LDSwiftEventSource.svg?style=flat)](https://cocoapods.org/pods/LDSwiftEventSource)
88

9-
LDSwiftEventSource is a cross platform implementation of the [EventSource specification](https://www.w3.org/TR/eventsource/) written in Swift. It was developed for use in the [LaunchDarkly iOS SDK](https://github.com/launchdarkly/ios-client-sdk).
9+
LDSwiftEventSource is a cross platform implementation of the [EventSource specification](https://www.w3.org/TR/eventsource/) written in Swift. It was developed for use in the [LaunchDarkly iOS SDK](https://github.com/launchdarkly/ios-client-sdk). Generated API docs are available on [GitHub Pages](https://launchdarkly.github.io/swift-eventsource/).
1010

1111
## Requirements
1212
- iOS 10.0+ / watchOS 3.0+ / tvOS 10.0+ / macOS 10.12+

0 commit comments

Comments
 (0)