Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
fa41287
add reconnect logic to stream
brooswit May 18, 2018
c59b0aa
Merge branch 'master' of github.com:launchdarkly/js-client-private in…
brooswit Jun 4, 2018
3e9a058
add config option streamReconnectDelay
brooswit Jun 4, 2018
9c44393
Merge branch 'master' of github.com:launchdarkly/js-client-private in…
brooswit Jun 11, 2018
4698a0f
Merge branch 'master' of github.com:launchdarkly/js-client-private in…
brooswit Jul 19, 2018
10e017c
update logic, add tests, add eventsource mock
brooswit Jul 19, 2018
2b458ae
add logic to prevent mocking events in invalid states
brooswit Jul 19, 2018
b9d4196
fix lint errors
brooswit Jul 19, 2018
e128f46
fix errors, fix tests, address pr comments
brooswit Jul 24, 2018
88727f8
retry event posts once
eli-darkly Aug 10, 2018
c7e40cf
linter
eli-darkly Aug 10, 2018
dc8fc3c
don't use jest-each, it causes strange problems in CI tests
eli-darkly Aug 10, 2018
c22d722
try to fix jest problem
eli-darkly Aug 10, 2018
5692c00
Revert "try to fix jest problem"
eli-darkly Aug 10, 2018
3f4ea95
document promise polyfill and make all polyfill sections consistent
apucacao Aug 13, 2018
d407bb9
fix typo
apucacao Aug 14, 2018
c9339ed
try to fix jdom error by setting jest url property
eli-darkly Aug 14, 2018
96a171e
bump jest version
eli-darkly Aug 14, 2018
8b23214
require earlier version of jsdom to avoid problem with mocking localS…
eli-darkly Aug 14, 2018
779bcc4
undo jest version change
eli-darkly Aug 14, 2018
4ebdb51
Merge pull request #90 from launchdarkly/eb/ch22174/jest-errors
eli-darkly Aug 14, 2018
3a90745
Merge branch 'master' into eb/ch15679/retry-events
eli-darkly Aug 14, 2018
bf35d1b
change identify() result back to a key-value map like it used to be
eli-darkly Aug 14, 2018
29c3df3
linter
eli-darkly Aug 14, 2018
22491fd
Merge pull request #91 from launchdarkly/eb/ch22186/identify-result
eli-darkly Aug 15, 2018
af2103c
Merge branch 'master' into ag/ch22054/readme-polyfills
eli-darkly Aug 15, 2018
b7a389f
Merge pull request #89 from launchdarkly/ag/ch22054/readme-polyfills
eli-darkly Aug 15, 2018
1cb4b79
Merge branch 'master' of github.com:launchdarkly/js-client
eli-darkly Aug 15, 2018
9182527
support extended bootstrap data format
eli-darkly Aug 16, 2018
e762629
linter
eli-darkly Aug 16, 2018
f2b20b2
add warning for bootstrap not having metadata
eli-darkly Aug 17, 2018
4a188b1
linter
eli-darkly Aug 17, 2018
aa78b6e
Merge pull request #92 from launchdarkly/eb/ch21387/bootstrap-metadata
eli-darkly Aug 22, 2018
b113ade
changes based on code review
brooswit Aug 22, 2018
2d07c91
Merge pull request #88 from launchdarkly/eb/ch15679/retry-events
eli-darkly Aug 23, 2018
b0dfc1d
add check for $valid property
eli-darkly Aug 24, 2018
0ccde84
linter
eli-darkly Aug 24, 2018
70a00c7
[ch22449] Make sure the TypeScript typings are included in our publis…
apucacao Aug 24, 2018
f4d5ff9
Merge pull request #93 from launchdarkly/eb/valid-flag
eli-darkly Aug 24, 2018
ecf7d0b
Merge branch 'all-flags-state'
eli-darkly Aug 25, 2018
5b0724a
Merge branch 'master' of github.com:launchdarkly/js-client
eli-darkly Aug 27, 2018
672bd50
change test reconnect delay to 0.1
brooswit Aug 28, 2018
c2ae296
add TypeScript syntax check
eli-darkly Aug 29, 2018
7e366af
Merge branch 'master' into jw/ch12336
eli-darkly Aug 29, 2018
2f6d921
Merge pull request #70 from launchdarkly/jw/ch12336
Aug 29, 2018
77f2586
implement evaluation with explanations
eli-darkly Aug 30, 2018
b3d3487
linter
eli-darkly Aug 30, 2018
223fb2c
TypeScript definitions
eli-darkly Aug 30, 2018
2218a85
reorganize and improve LDClient tests
eli-darkly Aug 30, 2018
e985934
more tests
eli-darkly Aug 30, 2018
8e6c459
substitute null for undefined in details object
eli-darkly Aug 30, 2018
53815ef
Merge branch 'eb/ch22333/explanations' into eb/break-up-client-tests
eli-darkly Aug 30, 2018
dbf7490
update null/undefined behavior
eli-darkly Aug 30, 2018
d7b4e88
Merge pull request #95 from launchdarkly/eb/ch22998/check-typescript
eli-darkly Aug 30, 2018
101a4c8
Merge pull request #96 from launchdarkly/eb/ch22333/explanations
eli-darkly Sep 6, 2018
0f0e2e3
Merge pull request #97 from launchdarkly/eb/break-up-client-tests
eli-darkly Sep 6, 2018
383abad
Merge branch 'master' into explanation
eli-darkly Sep 6, 2018
26027b0
fix allFlags
eli-darkly Sep 7, 2018
208c3c8
Merge pull request #98 from launchdarkly/eb/fix-all-flags
eli-darkly Sep 7, 2018
2808e03
linter
eli-darkly Sep 7, 2018
5355016
version 2.6.0
eli-darkly Sep 7, 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
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
command: npm run test:junit
environment:
JEST_JUNIT_OUTPUT: "./reports/junit/js-test-results.xml"
- run: npm run check-typescript
- 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 @@ -3,6 +3,13 @@
All notable changes to the LaunchDarkly client-side JavaScript SDK will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org).

## [2.6.0] - 2018-09-07
### Added:
- The new configuration option `evaluationReasons` causes LaunchDarkly to report information about how each feature flag value was determined; you can access this information with the new client method `variationDetail`. The new method returns an object that contains both the flag value and a "reason" object which will tell you, for instance, if the user was individually targeted for the flag or was matched by one of the flag's rules, or if the flag returned the default value due to an error.

### Changed:
- In streaming mode, the client will attempt to reconnect if it receives an HTTP error status from LaunchDarkly. Previously, it would only retry if the connection was lost.

## [2.5.0] - 2018-08-27
### Changed:
- Starting in version 2.0.0, there was a problem where analytics events would not be generated correctly if you initialized the client with bootstrap data, because the bootstrap data did not include some flag metadata that the front end uses for events. The client now supports an extended format for bootstrap data that fixes this problem; this is generated by calling a new method that has been added to the server-side SDKs, `allFlagsState`/`all_flags_state` (previously `allFlags`/`all_flags`). Therefore, if you want analytics event data and you are using bootstrap data from the back end, you should upgrade both your JavaScript SDK and your server-side SDK, and use `allFlagsState` on the back end. This does not require any changes in your JavaScript code. If you use bootstrap data in the old format, the SDK will still be usable but events will not work correctly.
Expand Down
Loading