launchdarkly-react-client-sdk
Advanced tools
Comparing version 2.20.2 to 2.21.0
@@ -5,2 +5,10 @@ # Change log | ||
## [2.21.0] - 2020-11-17 | ||
### Fixed: | ||
- The `camelCaseKeys` utility function is now exported as a function instead of as an object containing a `camelCaseKeys` function. `camelCaseKeys.camelCaseKeys` remains for backwards compatibility. | ||
- Updated the `LDEvaluationDetail.reason` type definition to be nullable. This value will be `null` when `LDOptions.evaluationReasons` is `false`. | ||
### Deprecated: | ||
- `camelCaseKeys.camelCaseKeys` is now deprecated-- see the note above. | ||
## [2.20.2] - 2020-09-14 | ||
@@ -7,0 +15,0 @@ ### Fixed: |
@@ -7,3 +7,3 @@ import LDProvider from './provider'; | ||
import useLDClient from './useLDClient'; | ||
import camelCaseKeys from './utils'; | ||
import { camelCaseKeys } from './utils'; | ||
export { LDProvider, withLDProvider, withLDConsumer, useFlags, useLDClient, asyncWithLDProvider, camelCaseKeys }; |
@@ -18,4 +18,4 @@ "use strict"; | ||
exports.useLDClient = useLDClient_1.default; | ||
var utils_1 = __importDefault(require("./utils")); | ||
exports.camelCaseKeys = utils_1.default; | ||
var utils_1 = require("./utils"); | ||
exports.camelCaseKeys = utils_1.camelCaseKeys; | ||
//# sourceMappingURL=index.js.map |
@@ -10,3 +10,10 @@ import { LDFlagChangeset, LDFlagSet } from 'launchdarkly-js-client-sdk'; | ||
*/ | ||
export declare const camelCaseKeys: (rawFlags: LDFlagSet) => LDFlagSet; | ||
export declare const camelCaseKeys: { | ||
(rawFlags: LDFlagSet): LDFlagSet; | ||
/** | ||
* @deprecated The `camelCaseKeys.camelCaseKeys` property will be removed in a future version, | ||
* please update your code to use the `camelCaseKeys` function directly. | ||
*/ | ||
camelCaseKeys: any; | ||
}; | ||
/** | ||
@@ -24,5 +31,12 @@ * Gets the flags to pass to the provider from the changeset. | ||
declare const _default: { | ||
camelCaseKeys: (rawFlags: LDFlagSet) => LDFlagSet; | ||
camelCaseKeys: { | ||
(rawFlags: LDFlagSet): LDFlagSet; | ||
/** | ||
* @deprecated The `camelCaseKeys.camelCaseKeys` property will be removed in a future version, | ||
* please update your code to use the `camelCaseKeys` function directly. | ||
*/ | ||
camelCaseKeys: any; | ||
}; | ||
getFlattenedFlagsFromChangeset: (changes: LDFlagChangeset, targetFlags: LDFlagSet | undefined, reactOptions: LDReactOptions) => LDFlagSet; | ||
}; | ||
export default _default; |
@@ -45,3 +45,9 @@ "use strict"; | ||
}; | ||
/** | ||
* @deprecated The `camelCaseKeys.camelCaseKeys` property will be removed in a future version, | ||
* please update your code to use the `camelCaseKeys` function directly. | ||
*/ | ||
// tslint:disable-next-line deprecation | ||
exports.camelCaseKeys.camelCaseKeys = exports.camelCaseKeys; | ||
exports.default = { camelCaseKeys: exports.camelCaseKeys, getFlattenedFlagsFromChangeset: exports.getFlattenedFlagsFromChangeset }; | ||
//# sourceMappingURL=utils.js.map |
{ | ||
"name": "launchdarkly-react-client-sdk", | ||
"version": "2.20.2", | ||
"version": "2.21.0", | ||
"description": "LaunchDarkly SDK for React", | ||
@@ -59,3 +59,3 @@ "author": "LaunchDarkly <team@launchdarkly.com>", | ||
"dependencies": { | ||
"launchdarkly-js-client-sdk": "2.18.1", | ||
"launchdarkly-js-client-sdk": "2.18.3", | ||
"lodash.camelcase": "^4.3.0", | ||
@@ -62,0 +62,0 @@ "uuid": "^3.3.2" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80997
1046
+ Addedlaunchdarkly-js-client-sdk@2.18.3(transitive)
+ Addedlaunchdarkly-js-sdk-common@3.2.11(transitive)
- Removedlaunchdarkly-js-client-sdk@2.18.1(transitive)
- Removedlaunchdarkly-js-sdk-common@3.2.10(transitive)