Skip to content

Commit

Permalink
Releasing version 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
LaunchDarklyReleaseBot committed Aug 28, 2023
1 parent 1ffc705 commit 44e77f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

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

## [2.0.1] - 2023-08-28
### Fixed:
- Fixed an issue in the pre-allocation algorithm handling partial messages.

## [2.0.0] - 2023-07-05
### Changed:
- 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.
Expand Down
2 changes: 1 addition & 1 deletion example/eventsource-polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -7514,7 +7514,7 @@ function EventSource (url, eventSourceInitDict) {
sizeUsed = 0
} else if (pos > 0) {
buf = buf.slice(pos)
sizeUsed = buf.length
sizeUsed = sizeUsed - pos
}
})
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "launchdarkly-eventsource",
"version": "2.0.0",
"version": "2.0.1",
"description": "Fork of eventsource package - W3C compliant EventSource client for Node.js and browser (polyfill)",
"keywords": [
"eventsource",
Expand Down

0 comments on commit 44e77f3

Please sign in to comment.