Skip to content

Commit 79161ed

Browse files
chore(release): version packages
1 parent 17a9772 commit 79161ed

5 files changed

Lines changed: 13 additions & 15 deletions

File tree

.changeset/lasteventid-persists-without-id.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

.changeset/persist-ids-from-data-less-blocks.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# 📓 Changelog
22

3+
## 5.1.1
4+
5+
### Patch Changes
6+
7+
- [#358](https://github.com/EventSource/eventsource/pull/358) [`de3c0ae`](https://github.com/EventSource/eventsource/commit/de3c0ae75bfffea4f5862950c386b3ddd6e3e64c) Thanks [@pacocartones](https://github.com/pacocartones)! - Fixed `MessageEvent.lastEventId` being empty when a message omits the id field
8+
9+
The `lastEventId` attribute is the last event ID string of the event source, so an explicit `id` field persists until another one replaces it. Message events were dispatched with the current event's own `id` instead of that buffer, which left `lastEventId` empty on every event that omitted `id`, even though the buffer still held the earlier value and would have been sent as `Last-Event-ID` on reconnect.
10+
11+
- [`17a9772`](https://github.com/EventSource/eventsource/commit/17a97722ed3f06920e931b627b9ef86752be165f) Thanks [@rexxars](https://github.com/rexxars)! - Fixed ID-only event blocks not updating `MessageEvent.lastEventId` or `Last-Event-ID` on reconnect.
12+
313
## 5.1.0
414

515
### Minor Changes

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eventsource",
3-
"version": "5.1.0",
3+
"version": "5.1.1",
44
"description": "WhatWG/W3C compliant EventSource client for Node.js and browsers",
55
"keywords": [
66
"eventsource",

0 commit comments

Comments
 (0)