Skip to content

Commit

Permalink
Releasing version 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
LaunchDarklyCI committed Apr 24, 2020
1 parent 040a5b8 commit 1738ab6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
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.

## [1.3.0] - 2020-04-23
### Added:
- A Node.js `http.Agent` can be specified using the `agent` option.

## [1.2.0] - 2020-04-03
### Added:
- New configuration options: `errorFilter` (determines how errors should be handled), `initialRetryDelayMillis` (delay interval for connection retries), `jitterRatio` (enables delay jitter), `maxBackoffMillis` (enables exponential backoff), `retryResetIntervalMillis` (enables reset of backoff).
Expand Down
5 changes: 5 additions & 0 deletions example/eventsource-polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -6548,6 +6548,11 @@ function EventSource (url, eventSourceInitDict) {
options.port = proxy.port
}

// When running in Node, proxies can also be specified as an agent
if (config.agent) {
options.agent = config.agent
}

// If https options are specified, merge them into the request options
if (config.https) {
for (var optName in config.https) {
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": "1.2.0",
"version": "1.3.0",
"description": "Fork of eventsource package - W3C compliant EventSource client for Node.js and browser (polyfill)",
"keywords": [
"eventsource",
Expand Down

0 comments on commit 1738ab6

Please sign in to comment.