Skip to content

Commit 44e77f3

Browse files
author
LaunchDarklyReleaseBot
committed
Releasing version 2.0.1
1 parent 1ffc705 commit 44e77f3

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

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

33
All notable changes to this package will be documented in this file.
44

5+
## [2.0.1] - 2023-08-28
6+
### Fixed:
7+
- Fixed an issue in the pre-allocation algorithm handling partial messages.
8+
59
## [2.0.0] - 2023-07-05
610
### Changed:
711
- Changed the way allocations are handled when receiving a line over multiple chunks. Instead of concatenating buffers together as they are received, instead an exponential doubling capacity algorithm will be used to allocate buffers to which multiple chunks may be copied. The algorithm will double until the excess capacity allocated reaches 1MiB. At that point subsequent re-allocations will allocate at maximum 1MiB of extra capacity.

example/eventsource-polyfill.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7514,7 +7514,7 @@ function EventSource (url, eventSourceInitDict) {
75147514
sizeUsed = 0
75157515
} else if (pos > 0) {
75167516
buf = buf.slice(pos)
7517-
sizeUsed = buf.length
7517+
sizeUsed = sizeUsed - pos
75187518
}
75197519
})
75207520
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "launchdarkly-eventsource",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "Fork of eventsource package - W3C compliant EventSource client for Node.js and browser (polyfill)",
55
"keywords": [
66
"eventsource",

0 commit comments

Comments
 (0)