Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
68d3556
Make things prettier, add RedisFeatureStore to toplevel ts declaratio…
atrakh Jul 11, 2018
c5c665f
Add modules for ldclient StreamProcessor, Requestor, and FeatureStore
atrakh Jul 11, 2018
407e6ce
address review
atrakh Jul 11, 2018
bef407a
Merge pull request #86 from launchdarkly/at/ch20232/add-flag-util-met…
atrakh Jul 19, 2018
762b1c8
fix: package.json to reduce vulnerabilities
snyk-bot Jul 19, 2018
69d7219
Merge pull request #87 from launchdarkly/snyk-fix-0c23hh
eli-darkly Jul 19, 2018
d2c6c18
Merge branch 'master' of github.com:launchdarkly/node-client
eli-darkly Jul 19, 2018
640703c
Merge branch 'master' of github.com:launchdarkly/node-client
eli-darkly Jul 19, 2018
c45414e
remove npm dependency on "crypto", use built-in version instead
eli-darkly Jul 26, 2018
b4fe5f4
update package-lock
eli-darkly Jul 26, 2018
04bc0e8
Merge pull request #88 from launchdarkly/eb/ch17629/built-in-crypto
eli-darkly Jul 26, 2018
d4e15b1
treat HTTP 400 as a recoverable error
eli-darkly Aug 1, 2018
0484c64
Merge pull request #89 from launchdarkly/eb/19705/400-error
eli-darkly Aug 1, 2018
797b4a8
Merge branch 'master' of github.com:launchdarkly/node-client
eli-darkly Aug 1, 2018
ccbb753
update doc comment for new waitForInitialization behavior
eli-darkly Aug 1, 2018
bcb4f0e
Merge pull request #90 from launchdarkly/eb/wait-for-init-docs
eli-darkly Aug 1, 2018
018c6f2
fix waitForInitialization to always resolve with a value
eli-darkly Aug 1, 2018
44f2d4a
Merge pull request #91 from launchdarkly/eb/wait-for-init-value
eli-darkly Aug 1, 2018
1664025
Merge branch 'master' of github.com:launchdarkly/node-client
eli-darkly Aug 1, 2018
9595181
Update feature store type for versioned data kind
atrakh Aug 17, 2018
94a7cc6
Merge pull request #92 from launchdarkly/at/update-types
atrakh Aug 17, 2018
e7f92fc
Merge branch 'master' of github.com:launchdarkly/node-client
eli-darkly Aug 22, 2018
30984c6
version 5.2.1
eli-darkly Aug 22, 2018
aa39f0e
add npm audit to build
eli-darkly Aug 22, 2018
2dd2edc
run npm audit fix
eli-darkly Aug 22, 2018
511e783
run npm audit only in current Node
eli-darkly Aug 22, 2018
fd8da86
Merge pull request #95 from launchdarkly/eb/ch21851/npm-audit
eli-darkly Aug 22, 2018
1ba9273
include npm audit fix
eli-darkly Aug 22, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ node-template: &node-template
command: npm test
environment:
JEST_JUNIT_OUTPUT: "reports/junit/js-test-results.xml"
- run: |
if [[ $CIRCLE_JOB == current-release ]]; then
npm audit
fi
- store_test_results:
path: reports/junit
- store_artifacts:
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

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.2.1] - 2018-08-22

### Fixed:
- Problematic dependencies flagged by `npm audit` have been fixed. Note that these were all development-only dependencies, so should not have affected any production code. ([#108](https://github.com/launchdarkly/node-client/issues/108))
- Type definitions for `LDFeatureStore` are now correct.
- Fixed an accidental global variable reference in `event_summarizer.js`. (Thanks, [jwenzler](https://github.com/launchdarkly/node-client/pull/111#pullrequestreview-148668257)!)

## [5.2.0] - 2018-08-01

### Changed:
Expand Down
20 changes: 16 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,21 +302,27 @@ declare module 'ldclient-node' {
/**
* Get a flag's value.
*
* @param kind
* The type of data to be accessed
*
* @param key
* The flag key
*
* @param callback
* Will be called with the resulting flag.
*/
get: (key: string, callback: (res: LDFlagValue) => void) => void;
get: (kind: object, key: string, callback: (res: LDFlagValue) => void) => void;

/**
* Get all flags.
*
* @param kind
* The type of data to be accessed
*
* @param callback
* Will be called with the resulting flag set.
*/
all: (callback: (res: LDFlagSet) => void) => void;
all: (kind: object, callback: (res: LDFlagSet) => void) => void;

/**
* Initialize the store.
Expand All @@ -332,6 +338,9 @@ declare module 'ldclient-node' {
/**
* Delete a key from the store.
*
* @param kind
* The type of data to be accessed
*
* @param key
* The flag key.
*
Expand All @@ -342,11 +351,14 @@ declare module 'ldclient-node' {
* @param callback
* Will be called when the delete operation is complete.
*/
delete: (key: string, version: string, callback?: () => void) => void;
delete: (kind: object, key: string, version: string, callback?: () => void) => void;

/**
* Upsert a flag to the store.
*
* @param kind
* The type of data to be accessed
*
* @param key
* The flag key.
*
Expand All @@ -356,7 +368,7 @@ declare module 'ldclient-node' {
* @param callback
* Will be called after the upsert operation is complete.
*/
upsert: (key: string, flag: LDFlagValue, callback?: () => void) => void;
upsert: (kind: object, key: string, flag: LDFlagValue, callback?: () => void) => void;

/**
* Is the store initialized?
Expand Down
Loading