Skip to content

Commit 30cfa4c

Browse files
authored
Prepare 1.3.0 release (#40)
## [1.3.0] - 2022-01-18 ### 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 parent 1b7cade commit 30cfa4c

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
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.3.0] - 2022-01-18
6+
### Added
7+
- Added the configuration option `urlSessionConfiguration` to `EventSource.Config` which allows setting the `URLSessionConfiguration` used by the `EventSource` to create `URLSession` instances.
8+
9+
### Fixed
10+
- Fixed a retain cycle issue when the stream connection is ended.
11+
- Removed deprecated `VALID_ARCHS` build setting from Xcode project.
12+
- Unterminated events will no longer be dispatched when the stream connection is dropped.
13+
- Stream events that set the `lastEventId` will now record the updated `lastEventId` even if the event does not generate a `MessageEvent`.
14+
- Empty stream "data" fields will now always record a newline to the resultant `MessageEvent` data.
15+
- Empty stream "event" fields will result in now result in the default "message" event type rather than an event type of "".
16+
517
## [1.2.1] - 2021-02-10
618
### Added
719
- [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.

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.1"
3+
s.version = "1.3.0"
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
@@ -458,7 +458,7 @@
458458
"@executable_path/../Frameworks",
459459
"@loader_path/Frameworks",
460460
);
461-
MARKETING_VERSION = 1.2.1;
461+
MARKETING_VERSION = 1.3.0;
462462
SKIP_INSTALL = YES;
463463
"TARGETED_DEVICE_FAMILY[sdk=appletvos*]" = 3;
464464
"TARGETED_DEVICE_FAMILY[sdk=appletvsimulator*]" = 3;
@@ -492,7 +492,7 @@
492492
"@executable_path/../Frameworks",
493493
"@loader_path/Frameworks",
494494
);
495-
MARKETING_VERSION = 1.2.1;
495+
MARKETING_VERSION = 1.3.0;
496496
SKIP_INSTALL = YES;
497497
"TARGETED_DEVICE_FAMILY[sdk=appletvos*]" = 3;
498498
"TARGETED_DEVICE_FAMILY[sdk=appletvsimulator*]" = 3;

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ LDSwiftEventSource is a cross platform implementation of the [EventSource specif
1919
To use the [CocoaPods](https://cocoapods.org) dependency manager to integrate LDSwiftEventSource into your Xcode project, specify it in your `Podfile`:
2020

2121
```ruby
22-
pod 'LDSwiftEventSource', '~> 1.2'
22+
pod 'LDSwiftEventSource', '~> 1.3'
2323
```
2424

2525
### Carthage
2626

2727
To use the [Carthage](https://github.com/Carthage/Carthage) dependency manager to integrate LDSwiftEventSource into your Xcode project, specify it in your `Cartfile`:
2828

2929
```ogdl
30-
github "LaunchDarkly/swift-eventsource" ~> 1.2
30+
github "LaunchDarkly/swift-eventsource" ~> 1.3
3131
```
3232

3333
### Swift Package Manager
@@ -40,7 +40,7 @@ To include LDSwiftEventSource in a Swift package, simply add it to the dependenc
4040

4141
```swift
4242
dependencies: [
43-
.package(url: "https://github.com/LaunchDarkly/swift-eventsource.git", .upToNextMajor(from: "1.2.0"))
43+
.package(url: "https://github.com/LaunchDarkly/swift-eventsource.git", .upToNextMajor(from: "1.3.0"))
4444
]
4545
```
4646

0 commit comments

Comments
 (0)