Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

launchdarkly-react-client-sdk

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

launchdarkly-react-client-sdk - npm Package Compare versions

Comparing version 2.20.2 to 2.21.0

8

CHANGELOG.md

@@ -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:

2

lib/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc