Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.
This repository was archived by the owner on May 30, 2024. It is now read-only.

DeprecationWarning: Buffer() #184

Description

@vdabar

Describe the bug
When I initialize launch-darkly-sdk-client I keep getting this error:
"[DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead."

To reproduce

import * as LaunchDarkly from 'launchdarkly-node-server-sdk';
import DynamoDBFeatureStore from 'launchdarkly-node-server-sdk-dynamodb';
let ldClient: LaunchDarkly.LDClient;
export async function init(launchDarklyStoreTable: string, launchDarklySdkKey: string) {
const store = DynamoDBFeatureStore(launchDarklyStoreTable);
const config = {
featureStore: store,
useLdd: true
};
ldClient = LaunchDarkly.init(launchDarklySdkKey, config);
await ldClient.waitForInitialization();
}

Expected behavior
Not to print DeprecationWarning: Buffer() error

SDK version
5.13.0

Language version, developer tools
node v10.18.1

Additional context
I believe this error comes from Redis dependency, which needs to be updated to 3.x.x version

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions