launchdarkly-react-client-sdk
Advanced tools
Comparing version 2.16.2 to 2.17.0-beta1
@@ -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: |
@@ -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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
65366
827
1
+ Addedbase64-js@1.5.1(transitive)
+ Addedlaunchdarkly-js-client-sdk@2.17.0(transitive)
+ Addedlaunchdarkly-js-sdk-common@3.2.2(transitive)
- Removed@babel/polyfill@7.6.0(transitive)
- Removedbase64-js@1.3.0(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedlaunchdarkly-js-client-sdk@2.16.0(transitive)
- Removedlaunchdarkly-js-sdk-common@3.1.0(transitive)
- Removedregenerator-runtime@0.13.11(transitive)
- Removeduuid@3.3.2(transitive)