launchdarkly-js-sdk-common 3.5.1 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/ldclient-common.cjs.js +1 -1
- package/dist/ldclient-common.cjs.js.map +1 -1
- package/dist/ldclient-common.es.js +1 -1
- package/dist/ldclient-common.es.js.map +1 -1
- package/dist/ldclient-common.min.js +1 -1
- package/dist/ldclient-common.min.js.map +1 -1
- package/package.json +1 -1
- package/typings.d.ts +33 -4
package/package.json
CHANGED
package/typings.d.ts
CHANGED
|
@@ -133,10 +133,14 @@ declare module 'launchdarkly-js-sdk-common' {
|
|
|
133
133
|
/**
|
|
134
134
|
* Whether or not to include custom HTTP headers when requesting flags from LaunchDarkly.
|
|
135
135
|
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
136
|
+
* These are used to send metadata about the SDK (such as the version). They
|
|
137
|
+
* are also used to send the application.id and application.version set in
|
|
138
|
+
* the options.
|
|
139
|
+
*
|
|
140
|
+
* This defaults to true (custom headers will be sent). One reason you might
|
|
141
|
+
* want to set it to false is that the presence of custom headers causes
|
|
142
|
+
* browsers to make an extra OPTIONS request (a CORS preflight check) before
|
|
143
|
+
* each flag request, which could affect performance.
|
|
140
144
|
*/
|
|
141
145
|
sendLDHeaders?: boolean;
|
|
142
146
|
|
|
@@ -284,6 +288,31 @@ declare module 'launchdarkly-js-sdk-common' {
|
|
|
284
288
|
* The default value is `false`.
|
|
285
289
|
*/
|
|
286
290
|
autoAliasingOptOut?: boolean;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Information about the application where the LaunchDarkly SDK is running.
|
|
294
|
+
*/
|
|
295
|
+
application?: {
|
|
296
|
+
/**
|
|
297
|
+
* A unique identifier representing the application where the LaunchDarkly SDK is running.
|
|
298
|
+
*
|
|
299
|
+
* This can be specified as any string value as long as it only uses the following characters: ASCII letters,
|
|
300
|
+
* ASCII digits, period, hyphen, underscore. A string containing any other characters will be ignored.
|
|
301
|
+
*
|
|
302
|
+
* Example: `authentication-service`
|
|
303
|
+
*/
|
|
304
|
+
id?: string;
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* A unique identifier representing the version of the application where the LaunchDarkly SDK is running.
|
|
308
|
+
*
|
|
309
|
+
* This can be specified as any string value as long as it only uses the following characters: ASCII letters,
|
|
310
|
+
* ASCII digits, period, hyphen, underscore. A string containing any other characters will be ignored.
|
|
311
|
+
*
|
|
312
|
+
* Example: `1.0.0` (standard version string) or `abcdef` (sha prefix)
|
|
313
|
+
*/
|
|
314
|
+
version?: string;
|
|
315
|
+
}
|
|
287
316
|
}
|
|
288
317
|
|
|
289
318
|
/**
|