launchdarkly-js-sdk-common 5.0.2 → 5.0.3

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 CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to the `launchdarkly-js-sdk-common` package will be documented in this file. Changes that affect the dependent SDKs such as `launchdarkly-js-client-sdk` should also be logged in those projects, in the next release that uses the updated version of this package. This project adheres to [Semantic Versioning](http://semver.org).
4
4
 
5
+ ## [5.0.2] - 2023-02-15
6
+ ### Changed:
7
+ - Removed usage of optional chaining (`?.`) to improve compatibility with projects which are using older transpilation tooling.
8
+
5
9
  ## [5.0.1] - 2023-01-10
6
10
  ### Changed:
7
11
  - Updated all types in `typings.d.ts` to be exported. This is to ensure that those types are included in generated documentation of dependent SDKs.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "launchdarkly-js-sdk-common",
3
- "version": "5.0.2",
3
+ "version": "5.0.3",
4
4
  "description": "LaunchDarkly SDK for JavaScript - common code",
5
5
  "author": "LaunchDarkly <team@launchdarkly.com>",
6
6
  "license": "Apache-2.0",
package/typings.d.ts CHANGED
@@ -345,8 +345,9 @@ declare module 'launchdarkly-js-sdk-common' {
345
345
 
346
346
  /**
347
347
  * A unique string identifying a context.
348
+ * This value must be set unless the context is anonymous.
348
349
  */
349
- key: string;
350
+ key?: string;
350
351
 
351
352
  /**
352
353
  * The context's name.