Skip to content

Commit e24f2c9

Browse files
committed
Fixing camelCaseKeys export
1 parent ba659f8 commit e24f2c9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ import asyncWithLDProvider from './asyncWithLDProvider';
44
import withLDConsumer from './withLDConsumer';
55
import useFlags from './useFlags';
66
import useLDClient from './useLDClient';
7-
import camelCaseKeys from './utils';
7+
import { camelCaseKeys } from './utils';
88

99
export { LDProvider, withLDProvider, withLDConsumer, useFlags, useLDClient, asyncWithLDProvider, camelCaseKeys };

src/utils.ts

+3
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,7 @@ export const getFlattenedFlagsFromChangeset = (
4848
return flattened;
4949
};
5050

51+
// TODO: Remove this for the next major version. This was added to maintain backwards compatibility.
52+
camelCaseKeys.camelCaseKeys = camelCaseKeys;
53+
5154
export default { camelCaseKeys, getFlattenedFlagsFromChangeset };

0 commit comments

Comments
 (0)