Skip to content

Commit aefdab1

Browse files
chore(release): version packages
1 parent de3c0ae commit aefdab1

4 files changed

Lines changed: 11 additions & 10 deletions

File tree

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

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

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
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+
311
## 5.1.0
412

513
### 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)