From edc3db13a75502952a65cd1ee651bf70ad451b5d Mon Sep 17 00:00:00 2001 From: Todd Anderson Date: Mon, 4 Nov 2024 10:21:44 -0600 Subject: [PATCH 1/2] chore: checking documentation --- packages/sdk/browser/src/index.ts | 13 +++++----- packages/sdk/browser/src/options.ts | 9 ++++--- .../common/src/api/context/LDContext.ts | 17 ++++++++++++- .../common/src/api/context/LDContextCommon.ts | 3 +++ .../shared/common/src/api/platform/AutoEnv.ts | 2 -- .../sdk-client/src/api/integrations/Hooks.ts | 25 ++++++++++++++++--- 6 files changed, 54 insertions(+), 15 deletions(-) diff --git a/packages/sdk/browser/src/index.ts b/packages/sdk/browser/src/index.ts index 0b29b75f31..f0bae0b103 100644 --- a/packages/sdk/browser/src/index.ts +++ b/packages/sdk/browser/src/index.ts @@ -6,7 +6,7 @@ * In typical usage, you will call {@link initialize} once at startup time to obtain an instance of * {@link LDClient}, which provides access to all of the SDK's functionality. * - * For more information, see the SDK reference guide. + * For more information, see the [SDK Reference Guide](https://docs.launchdarkly.com/sdk/client-side/javascript). * * @packageDocumentation */ @@ -72,11 +72,11 @@ export type { * Usage: * ``` * import { initialize } from 'launchdarkly-js-client-sdk'; - * const client = initialize(envKey, context, options); + * const client = initialize(clientSideId, context, options); * ``` * * @param clientSideId - * The client-side id, also known as the environment ID. + * The client-side ID, also known as the environment ID. * @param options * Optional configuration settings. * @return @@ -88,10 +88,11 @@ export function initialize(clientSideId: string, options?: LDOptions): LDClient } /** - * Provides a simple {@link LDLogger} implementation. + * Provides a basic {@link LDLogger} implementation. * - * This logging implementation uses a simple format that includes only the log level - * and the message text. By default the output is written to `console.error`. + * This logging implementation uses a basic format that includes only the log level + * and the message text. By default this uses log level 'info' and the output is + * written to `console.error`. * * To use the logger created by this function, put it into {@link LDOptions.logger}. If * you do not set {@link LDOptions.logger} to anything, the SDK uses a default logger diff --git a/packages/sdk/browser/src/options.ts b/packages/sdk/browser/src/options.ts index 3cb4e35684..89e53a4c82 100644 --- a/packages/sdk/browser/src/options.ts +++ b/packages/sdk/browser/src/options.ts @@ -24,6 +24,9 @@ export interface BrowserOptions extends Omit string; @@ -39,10 +42,10 @@ export interface BrowserOptions extends Omit Date: Mon, 4 Nov 2024 11:36:31 -0600 Subject: [PATCH 2/2] review comment --- packages/shared/common/src/api/context/LDContextCommon.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/shared/common/src/api/context/LDContextCommon.ts b/packages/shared/common/src/api/context/LDContextCommon.ts index 98f0831bb6..1ae392de8a 100644 --- a/packages/shared/common/src/api/context/LDContextCommon.ts +++ b/packages/shared/common/src/api/context/LDContextCommon.ts @@ -1,7 +1,7 @@ import { LDContextMeta } from './LDContextMeta'; /** - * Common attributes shared by the various derived context types. + * Common attributes shared by the various context types. */ export interface LDContextCommon { /**