Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
prepare 5.0.2 release (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-darkly committed Jun 15, 2018
1 parent 0786d31 commit a07122d
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 33 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to the LaunchDarkly Node.js SDK will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).

## [5.0.2] - 2018-06-15

### Fixed:
- Removed an indirect dependency on an old version of the `querystringify` module, which had a [security flaw](https://github.com/unshiftio/querystringify/pull/19). ([#97](https://github.com/launchdarkly/node-client/issues/97))
- Updated TypeScript definitions for client options. (Thanks, [stepanataccolade](https://github.com/launchdarkly/node-client/pull/95#pullrequestreview-126088214)!)

## [5.0.1] - 2018-05-31

### Fixed:
Expand Down
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@ Quick setup

var ld_client = LaunchDarkly.init("YOUR SDK KEY")

HTTPS proxy
------------

Node provides built-in support for the use of an HTTPS proxy. You can use NPM to configure Node to proxy all network requests through the URL provided.
```
npm config set https-proxy https://web-proxy.domain.com:8080
```


If your proxy requires authentication then you can prefix the URN with your login information:
```
npm config set https-proxy http://user:pass@web-proxy.domain.com:8080
```


Your first feature flag
-----------------------

Expand Down
7 changes: 3 additions & 4 deletions eventsource.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// taken from https://github.com/aslakhellesoy/eventsource-node/blob/v0.1.6/package.json

var original = require('original')
, parse = require('url').parse
var parse = require('url').parse
, events = require('events')
, https = require('https')
, http = require('http')
Expand Down Expand Up @@ -206,8 +205,8 @@ function EventSource(url, eventSourceInitDict) {
var type = eventName || 'message';
_emit(type, new MessageEvent(type, {
data: data.slice(0, -1), // remove trailing newline
lastEventId: lastEventId,
origin: original(url)
lastEventId: lastEventId
//origin: original(url) // we're not using this - removed it so we can drop the dependency on "original"
}));
data = '';
}
Expand Down
27 changes: 0 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ldclient-node",
"version": "5.0.1",
"version": "5.0.2",
"description": "LaunchDarkly SDK for Node.js",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -28,7 +28,6 @@
"lrucache": "^1.0.3",
"node-cache": "^3.2.1",
"node-sha1": "0.0.1",
"original": "~0.0.8",
"redis": "^2.6.0-2",
"request": "2.85.0",
"request-etag": "^2.0.3",
Expand Down

0 comments on commit a07122d

Please sign in to comment.