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.16.2 to 2.17.0-beta1

10

CHANGELOG.md

@@ -5,2 +5,12 @@ # Change log

## [2.17.1] - 2020-02-11
### Fixed:
- Updated JS SDK dependency version from 2.16.0 to 2.16.3 for several recent fixes. See release notes for [2.16.1](https://github.com/launchdarkly/js-client-sdk/releases/tag/2.16.1), [2.16.2](https://github.com/launchdarkly/js-client-sdk/releases/tag/2.16.2), [2.16.3](https://github.com/launchdarkly/js-client-sdk/releases/tag/2.16.3).
Note that while some transitive dependencies have been changed from exact versions to "best compatible" versions, the dependency on `js-client-sdk` is still an exact version dependency so that each release of `react-client-sdk` has well-defined behavior.
## [2.17.0] - 2019-12-18
### Added:
- The `camelCaseKeys` utility function is now exposed as part of the SDK API. This function can be called from customers' code to work around the fact that `ldClient` functionality does not automatically camel-case keys in the same manner as the React SDK's props and hooks features.
## [2.16.2] - 2019-12-17

@@ -7,0 +17,0 @@ ### Fixed:

3

lib/index.d.ts

@@ -6,2 +6,3 @@ import withLDProvider from './withLDProvider';

import useLDClient from './useLDClient';
export { withLDProvider, withLDConsumer, useFlags, useLDClient, asyncWithLDProvider };
import camelCaseKeys from './utils';
export { withLDProvider, withLDConsumer, useFlags, useLDClient, asyncWithLDProvider, camelCaseKeys };

@@ -16,2 +16,4 @@ "use strict";

exports.useLDClient = useLDClient_1.default;
var utils_1 = __importDefault(require("./utils"));
exports.camelCaseKeys = utils_1.default;
//# sourceMappingURL=index.js.map

@@ -53,2 +53,3 @@ "use strict";

var utils_1 = require("./utils");
var package_json_1 = require("../package.json");
/**

@@ -71,3 +72,3 @@ * Internal function to initialize the `LDClient`.

return __generator(this, function (_a) {
allOptions = __assign({}, options);
allOptions = __assign({ wrapperName: 'react-client-sdk', wrapperVersion: package_json_1.version }, options);
ldClient = launchdarkly_js_client_sdk_1.initialize(clientSideID, user, allOptions);

@@ -74,0 +75,0 @@ return [2 /*return*/, new Promise(function (resolve) {

@@ -8,4 +8,7 @@ import { LDFlagSet } from 'launchdarkly-js-client-sdk';

* @return A transformed `LDFlagSet` with camelCased flag keys
* @ignore
*/
export declare const camelCaseKeys: (rawFlags: LDFlagSet) => LDFlagSet;
declare const _default: {
camelCaseKeys: (rawFlags: LDFlagSet) => LDFlagSet;
};
export default _default;

@@ -13,3 +13,2 @@ "use strict";

* @return A transformed `LDFlagSet` with camelCased flag keys
* @ignore
*/

@@ -26,2 +25,3 @@ exports.camelCaseKeys = function (rawFlags) {

};
exports.default = { camelCaseKeys: exports.camelCaseKeys };
//# sourceMappingURL=utils.js.map

@@ -100,3 +100,3 @@ "use strict";

function withLDProvider(config) {
return function withLDPoviderHoc(WrappedComponent) {
return function withLDProviderHoc(WrappedComponent) {
var options = config.options, userReactOptions = config.reactOptions;

@@ -103,0 +103,0 @@ var reactOptions = __assign(__assign({}, types_1.defaultReactOptions), userReactOptions);

{
"name": "launchdarkly-react-client-sdk",
"version": "2.16.2",
"version": "2.17.0-beta1",
"description": "LaunchDarkly SDK for React",

@@ -20,3 +20,3 @@ "author": "LaunchDarkly <team@launchdarkly.com>",

"test:junit": "jest --ci --reporters=default --reporters=jest-junit",
"build": "rimraf lib/* && tsc && rm -rf lib/*.test.*",
"build": "rimraf lib/* && tsc && mv lib/src/* lib && rimraf lib/package.json lib/src lib/*.test.*",
"lint": "tslint -p tsconfig.json 'src/**/*.ts*'",

@@ -60,3 +60,3 @@ "lint:all": "npm run lint",

"dependencies": {
"launchdarkly-js-client-sdk": "2.16.0",
"launchdarkly-js-client-sdk": "2.17.0",
"lodash.camelcase": "^4.3.0",

@@ -63,0 +63,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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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