Skip to content

Commit d18da1c

Browse files
author
LaunchDarklyReleaseBot
committed
Releasing version 2.2.0
1 parent f3f59c5 commit d18da1c

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

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

5+
## [2.2.0] - 2021-12-31
6+
### Added:
7+
- The `StreamEvent` type now has a new property, `last_event_id`. Unlike the `id` property which reports only the value of the `id:` field (if any) in that particular event, `last_event_id` reports the `id:` value that was most recently specified in _any_ event. The specification states that this state should be included in every event; the ability to distinguish `last_event_id` from `id` is an extended feature of this gem.
8+
9+
### Fixed:
10+
- The client could stop reading the stream and return an error if there was a multi-byte UTF-8 character whose bytes were split across two reads. It now handles this correctly.
11+
- In JRuby only, the client returned an error when trying to reconnect a stream if the initial reconnect delay was set to zero.
12+
- As per the specification, the parser now ignores any `id:` field whose value contains a null (zero byte).
13+
- The last event ID that is sent in the `Last-Event-Id` header was only being updated if an event specified a _non-empty_ value for `id:`. As per the specification, it should be possible to explicitly clear this value by putting an empty `id:` field in an event.
14+
515
## [2.1.1] - 2021-10-12
616
### Fixed:
717
- Performance should now be greatly improved when parsing events that have very long data. Previously, the logic for parsing the stream to find line breaks could result in unnecessary extra scans of the same characters and unnecessary extra string slicing. ([#20](https://github.com/launchdarkly/ruby-eventsource/issues/20))

lib/ld-eventsource/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module SSE
2-
VERSION = "2.1.1"
2+
VERSION = "2.2.0"
33
end

0 commit comments

Comments
 (0)