Skip to content

Commit 03df2bd

Browse files
Updates URLs (#233)
1 parent 59c2dcb commit 03df2bd

File tree

5 files changed

+25
-25
lines changed

5 files changed

+25
-25
lines changed

CHANGELOG.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -147,32 +147,32 @@ Note that the React SDK code has moved to its own repository, [`react-client-sdk
147147
### Added:
148148
- A `jsdelivr` entry to `package.json` to specify the primary build artifact and simplify the jsDelivr snippet URL.
149149
- In the React SDK, the new `reactOptions` parameter to `withLDProvider` provides React-specific options that do not affect the underlying JavaScript SDK. Currently, the only such option is `useCamelCaseFlagKeys`, which is true by default but can be set to false to disable the automatic camel-casing of flag keys.
150-
150+
151151
### Changed:
152152
- In the React SDK, when omitting the `user` parameter to `withLDProvider`, an anonymous user will be created. This user will remain constant across browser sessions. Previously a new user was generated on each page load.
153153

154154
## [2.12.5] - 2019-07-29
155155
### Changed:
156156
- The error messages logged upon having an invalid environment/client-side ID have been updated to better clarify what went wrong. ([#165](https://github.com/launchdarkly/js-client-sdk/issues/165))
157-
157+
158158
### Fixed:
159159
- The React SDK was incompatible with Internet Explorer 11 due to using `String.startsWith()`. (Thanks, [cvetanov](https://github.com/launchdarkly/js-client-sdk/pull/169)!)
160160
- There was a broken documentation link in the error message logged when initially sending an event without identifying a user. The broken link has been fixed.
161161

162162
## [2.12.4] - 2019-07-10
163163
### Changed:
164-
- The `useReport` property, which tells the SDK to use the REPORT method for HTTP requests so that user data will not appear in the URL path, was only actually using REPORT for requesting all flags at once— not for streaming updates, because streaming uses the EventSource API which normally can only use the GET method; so, to avoid exposing user data in the URL for the streaming connection, the SDK had to use a different and slower mechanism (in which all of the flags are reloaded whenever there is a change) if `useReport` was true. That is still the case by default; but, if you load the specific EventSource [polyfill implementation](https://docs.launchdarkly.com/docs/js-sdk-requirements-and-polyfills) [`launchdarkly-eventsource`](https://github.com/launchdarkly/js-eventsource) (v1.1.0 or later), the SDK _can_ now use REPORT for streaming connections.
165-
164+
- The `useReport` property, which tells the SDK to use the REPORT method for HTTP requests so that user data will not appear in the URL path, was only actually using REPORT for requesting all flags at once— not for streaming updates, because streaming uses the EventSource API which normally can only use the GET method; so, to avoid exposing user data in the URL for the streaming connection, the SDK had to use a different and slower mechanism (in which all of the flags are reloaded whenever there is a change) if `useReport` was true. That is still the case by default; but, if you load the specific EventSource [polyfill implementation](https://docs.launchdarkly.com/sdk/client-side/javascript/requirements-polyfills) [`launchdarkly-eventsource`](https://github.com/launchdarkly/js-eventsource) (v1.1.0 or later), the SDK _can_ now use REPORT for streaming connections.
165+
166166
### Fixed:
167167
- The `homepage` attribute in the `launchdarkly-react-client-sdk` and `launchdarkly-react-client-sdk-example` packages has been updated to the correct value.
168168

169169
## [2.12.3] - 2019-07-08
170170
### Added:
171171
- The SDK now logs a message at `info` level when the stream connection is started or stopped. It also logs a message at `warn` level if it detects that the stream had to be restarted due to a connection failure; however, in browsers that have native support for EventSource, connection restarts may be handled internally by the browser in which case there will be no log message.
172-
172+
173173
### Changed:
174174
- When providing precomputed flag values to the SDK via the `bootstrap` option, these values will now be immediately available as soon as `initialize()` returns. That was already the behavior in earlier versions of the SDK, but ever since version 2.10.0 the values only became available once the client was officially ready (i.e. the `ready` event had fired or the `waitUntilInitialized()` promise had resolved), so they could not be used in non-asynchronous application code. The correct behavior had never been explicitly defined, so this had not been documented as a change. The behavior is now as it was prior to 2.10.0, and is now documented as such. ([#162](https://github.com/launchdarkly/js-client-sdk/issues/162))
175-
175+
176176
### Fixed:
177177
- Under some circumstances, the SDK would fail to restart a streaming connection if it had already been dropped and restarted before. This normally would not happen when using a built-in browser implementation of EventSource, but could happen with some EventSource polyfills.
178178
- Fixed a broken link in the project README.
@@ -185,7 +185,7 @@ Note that the React SDK code has moved to its own repository, [`react-client-sdk
185185
## [2.12.1] - 2019-06-28
186186
### Added:
187187
- The SDK now logs a message at `info` level when the stream connection is started or stopped. It also logs a message at `warn` level if it detects that the stream had to be restarted due to a connection failure; however, in browsers that have native support for EventSource, connection restarts may be handled internally by the browser in which case there will be no log message.
188-
188+
189189
### Fixed:
190190
- Under some circumstances, the SDK would fail to restart a streaming connection if it had already been dropped and restarted before. This normally would not happen when using a built-in browser implementation of EventSource, but could happen with some EventSource polyfills.
191191
- Fixed a broken link in the project README.
@@ -206,10 +206,10 @@ Note that the React SDK code has moved to its own repository, [`react-client-sdk
206206
### Fixed:
207207
- Streaming updates did not work if `useReport` was enabled, or if the SDK was connecting through the LaunchDarkly relay proxy. This bug was introduced in version 2.10.0.
208208

209-
## [2.10.3] - 2019-05-08
209+
## [2.10.3] - 2019-05-08
210210
### Changed:
211211
- Changed the package names from `ldclient-js`, `ldclient-react`, and `ldclient-js-common` to `launchdarkly-js-client-sdk`, `launchdarkly-react-client-sdk`, and `launchdarkly-js-sdk-common`, respectively.
212-
212+
213213
There are no other changes in this release. Substituting `ldclient-js`, `ldclient-react`, and `ldclient-js-common` version 2.10.2 with `launchdarkly-js-client-sdk`, `launchdarkly-react-client-sdk`, and `launchdarkly-js-sdk-common` version 2.10.3 will not affect functionality.
214214

215215
### Fixed:
@@ -302,7 +302,7 @@ This release was an error and has been removed.
302302

303303
## [2.7.2] - 2018-10-17
304304
### Fixed:
305-
- Disconnecting from the stream does not close the browser tab anymore.
305+
- Disconnecting from the stream does not close the browser tab anymore.
306306
(Thanks, [Sawtaytoes](https://github.com/launchdarkly/js-client/issues/119).)
307307
- The configuration property `evaluationReasons` was misnamed as `evaluationExplanations` in the TypeScript definitions.
308308

@@ -377,7 +377,7 @@ This release was an error and has been removed.
377377

378378
## [2.0.0] - 2018-05-25
379379
### Changed
380-
- To reduce the network bandwidth used for analytics events, feature request events are now sent as counters rather than individual events, and user details are now sent only at intervals rather than in each event. These behaviors can be modified through the LaunchDarkly UI and with the new configuration option `inlineUsersInEvents`. For more details, see [Analytics Data Stream Reference](https://docs.launchdarkly.com/v2.0/docs/analytics-data-stream-reference).
380+
- To reduce the network bandwidth used for analytics events, feature request events are now sent as counters rather than individual events, and user details are now sent only at intervals rather than in each event. These behaviors can be modified through the LaunchDarkly UI and with the new configuration option `inlineUsersInEvents`. For more details, see [Data Export](https://docs.launchdarkly.com/home/data-export).
381381
- In every function that takes an optional callback parameter, if you provide a callback, the function will not return a promise; a promise will be returned only if you omit the callback. Previously, it would always return a promise which would be resolved/rejected at the same time that the callback (if any) was called; this caused problems if you had not registered an error handler for the promise.
382382
- When sending analytics events, if there is a connection error or an HTTP 5xx response, the client will try to send the events again one more time after a one-second delay.
383383
- Analytics are now sent with an HTTP `POST` request if the browser supports CORS, or via image loading if it does not. Previously, they were always sent via image loading.
@@ -472,7 +472,7 @@ _This release was broken and should not be used._
472472

473473
### Added
474474

475-
* Support for [private user attributes](https://docs.launchdarkly.com/docs/private-user-attributes).
475+
* Support for [private user attributes](https://docs.launchdarkly.com/home/users/attributes#creating-private-user-attributes).
476476
* New `sendEvents` option to control whether the SDK should send events back to LaunchDarkly or not. Defaults to `true`.
477477
* It is now possible to wait for SDK readiness using `waitUntilReady` which returns a `Promise`. `identify` also returns a `Promise` (while still supporting the callback argument), which should make
478478
it easier to integrate into code that relies heavily on `Promise`'s for asynchronous code.

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Contributing to LaunchDarkly SDK for Browser JavaScript
22

3-
LaunchDarkly has published an [SDK contributor's guide](https://docs.launchdarkly.com/docs/sdk-contributors-guide) that provides a detailed explanation of how our SDKs work. See below for additional information on how to contribute to this SDK.
4-
3+
LaunchDarkly has published an [SDK contributor's guide](https://docs.launchdarkly.com/sdk/concepts/contributors-guide) that provides a detailed explanation of how our SDKs work. See below for additional information on how to contribute to this SDK.
4+
55
## Submitting bug reports and feature requests
66

77
The LaunchDarkly SDK team monitors the [issue tracker](https://github.com/launchdarkly/js-client-sdk/issues) in the SDK repository. Bug reports and feature requests specific to this SDK should be filed in this issue tracker. The SDK team will respond to all newly filed issues within two business days.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
## LaunchDarkly overview
66

7-
[LaunchDarkly](https://www.launchdarkly.com) is a feature management platform that serves over 100 billion feature flags daily to help teams build better software, faster. [Get started](https://docs.launchdarkly.com/docs/getting-started) using LaunchDarkly today!
7+
[LaunchDarkly](https://www.launchdarkly.com) is a feature management platform that serves over 100 billion feature flags daily to help teams build better software, faster. [Get started](https://docs.launchdarkly.com/home/getting-started) using LaunchDarkly today!
88

99
[![Twitter Follow](https://img.shields.io/twitter/follow/launchdarkly.svg?style=social&label=Follow&maxAge=2592000)](https://twitter.com/intent/follow?screen_name=launchdarkly)
1010

1111
## Getting started
1212

13-
Refer to the [SDK documentation](https://docs.launchdarkly.com/docs/js-sdk-reference#section-getting-started) for instructions on getting started with using the SDK.
13+
Refer to the [SDK documentation](https://docs.launchdarkly.com/sdk/client-side/javascript#getting-started) for instructions on getting started with using the SDK.
1414

1515
Note: _If you are using JavaScript in a non-browser environment,_ please see our [server-side Node.js SDK](https://github.com/launchdarkly/node-server-sdk), [client-side Node.js SDK](https://github.com/launchdarkly/node-client-sdk), and [Electron SDK](https://github.com/launchdarkly/electron-client-sdk).
1616

@@ -22,7 +22,7 @@ The SDK does not require any particular JavaScript framework. However, if you ar
2222

2323
## Browser compatibility
2424

25-
The LaunchDarkly SDK can be used in all major browsers. However, web browsers vary widely in their support of specific features and standards. Three features that are used by the LaunchDarkly SDK that may not be available on every browser are `Promise`, `EventSource`, and `document.querySelectorAll()`. For more information on whether you may need to use a polyfill to ensure compatibility, and how to do so, see ["JS SDK requirements and polyfills"](https://docs.launchdarkly.com/docs/js-sdk-requirements-and-polyfills).
25+
The LaunchDarkly SDK can be used in all major browsers. However, web browsers vary widely in their support of specific features and standards. Three features that are used by the LaunchDarkly SDK that may not be available on every browser are `Promise`, `EventSource`, and `document.querySelectorAll()`. For more information on whether you may need to use a polyfill to ensure compatibility, and how to do so, see ["JS SDK requirements and polyfills"](https://docs.launchdarkly.com/sdk/client-side/javascript/requirements-polyfills).
2626

2727
### Logging
2828

@@ -49,7 +49,7 @@ We encourage pull requests and other contributions from the community. Check out
4949
* Gradually roll out a feature to an increasing percentage of users, and track the effect that the feature has on key metrics (for instance, how likely is a user to complete a purchase if they have feature A versus feature B?).
5050
* Turn off a feature that you realize is causing performance problems in production, without needing to re-deploy, or even restart the application with a changed configuration file.
5151
* Grant access to certain features based on user attributes, like payment plan (eg: users on the ‘gold’ plan get access to more features than users in the ‘silver’ plan). Disable parts of your application to facilitate maintenance, without taking everything offline.
52-
* LaunchDarkly provides feature flag SDKs for a wide variety of languages and technologies. Check out [our documentation](https://docs.launchdarkly.com/docs) for a complete list.
52+
* LaunchDarkly provides feature flag SDKs for a wide variety of languages and technologies. Check out [our documentation](https://docs.launchdarkly.com/sdk) for a complete list.
5353
* Explore LaunchDarkly
5454
* [launchdarkly.com](https://www.launchdarkly.com/ "LaunchDarkly Main Website") for more information
5555
* [docs.launchdarkly.com](https://docs.launchdarkly.com/ "LaunchDarkly Documentation") for our documentation and SDK reference guides

example/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ <h2 class="mt-2">
3535

3636
<p>
3737
This is a simple front-end-only application using <a href="https://launchdarkly.com/">LaunchDarkly</a>.
38-
<span id="usingWhichScript">(Using <span class="hosted"><a href="https://unpkg.com/launchdarkly-js-client-sdk@2">the hosted SDK script</a></span> <span class="local">a local SDK build</span> - version <span id="sdkVersion"></span>)</span> <a href="https://docs.launchdarkly.com/docs/js-sdk-reference">Learn more</a>
38+
<span id="usingWhichScript">(Using <span class="hosted"><a href="https://unpkg.com/launchdarkly-js-client-sdk@2">the hosted SDK script</a></span> <span class="local">a local SDK build</span> - version <span id="sdkVersion"></span>)</span> <a href="https://docs.launchdarkly.com/sdk/client-side/javascript">Learn more</a>
3939
</p>
4040

4141
<div class="row">
@@ -103,7 +103,7 @@ <h4>
103103
<input id="allAttributesPrivateCheck" type="checkbox" class="form-check-input">
104104
<label for="allAttributesPrivateCheck" class="form-check-label">allAttributesPrivate</label>
105105
</div>
106-
</div>
106+
</div>
107107
</form>
108108
</div>
109109

@@ -284,4 +284,4 @@ <h3 class="mt-3">
284284
</form>
285285
</div>
286286
</body>
287-
</html>
287+
</html>

typings.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* In typical usage, you will call [[initialize]] once at startup time to obtain an instance of
55
* [[LDClient]], which provides access to all of the SDK's functionality.
66
*
7-
* For more information, see the [SDK reference guide](http://docs.launchdarkly.com/docs/js-sdk-reference).
7+
* For more information, see the [SDK reference guide](https://docs.launchdarkly.com/sdk/client-side/javascript).
88
*/
99
declare module 'launchdarkly-js-client-sdk' {
1010

@@ -61,7 +61,7 @@ declare module 'launchdarkly-js-client-sdk' {
6161
* The signed user key for Secure Mode.
6262
*
6363
* For more information, see the JavaScript SDK Reference Guide on
64-
* [Secure mode](https://docs.launchdarkly.com/docs/js-sdk-reference#section-secure-mode).
64+
* [Secure mode](https://docs.launchdarkly.com/sdk/features/secure-mode#configuring-secure-mode-in-the-javascript-client-side-sdk).
6565
*/
6666
hash?: string;
6767

@@ -96,7 +96,7 @@ declare module 'launchdarkly-js-client-sdk' {
9696
*
9797
* Applications should configure the client at page load time and reuse the same instance.
9898
*
99-
* For more information, see the [SDK Reference Guide](https://docs.launchdarkly.com/docs/js-sdk-reference).
99+
* For more information, see the [SDK Reference Guide](https://docs.launchdarkly.com/sdk/client-side/javascript).
100100
*/
101101
export interface LDClient extends LDClientBase {
102102
/**
@@ -111,7 +111,7 @@ declare module 'launchdarkly-js-client-sdk' {
111111
* The returned Promise will be resolved once the client has received goals data. If
112112
* you prefer to use event handlers rather than Promises, you can listen on the client
113113
* for a `"goalsReady"` event instead.
114-
*
114+
*
115115
* @returns
116116
* A Promise containing the initialization state of the client.
117117
*/

0 commit comments

Comments
 (0)