Skip to content

Commit 9eef50a

Browse files
committed
chore: update browser sdk again
1 parent a26c9d4 commit 9eef50a

13 files changed

Lines changed: 29 additions & 22 deletions

File tree

packages/demo/src/pages/DevServerMode.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ export function DevServerMode() {
1616
baseUrl: import.meta.env.VITE_LD_DEV_SERVER_URL,
1717
streamUrl: import.meta.env.VITE_LD_DEV_SERVER_URL,
1818
eventsUrl: import.meta.env.VITE_LD_DEV_SERVER_URL,
19+
// @ts-expect-error - this demo is using a very old version of the launchdarkly react client sdk
20+
// and we will need to major version that SDK after browser sdk is stable.
1921
plugins: [eventInterceptionPlugin],
2022
});
2123

packages/toolbar/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
"@codemirror/lint": "^6.9.2",
109109
"@codemirror/state": "^6.5.4",
110110
"@codemirror/view": "^6.39.11",
111-
"@launchdarkly/js-client-sdk": "^0.12.1",
111+
"@launchdarkly/js-client-sdk": "^0.13.0",
112112
"@launchdarkly/observability": "^0.5.0",
113113
"@launchdarkly/session-replay": "^0.5.0",
114114
"@launchpad-ui/components": "^0.17.8",

packages/toolbar/rslib.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default defineConfig({
5959
'react-dom': 'react-dom',
6060
'react/jsx-runtime': 'react/jsx-runtime',
6161
'launchdarkly-js-client-sdk': 'launchdarkly-js-client-sdk',
62-
'@launchdarkly/js-client-sdk': '@launchdarkly/js-client-sdk'
62+
'@launchdarkly/js-client-sdk': '@launchdarkly/js-client-sdk',
6363
},
6464
},
6565
plugins: [pluginReact()],

packages/toolbar/src/core/ui/Toolbar/components/new/Contexts/AddContextForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useState, useCallback, useMemo } from 'react';
22
import { motion, AnimatePresence } from 'motion/react';
3-
import type { LDContext } from 'launchdarkly-js-client-sdk';
3+
import type { LDContext } from '@launchdarkly/js-client-sdk';
44
import { useContextsContext } from '../../../context/api/ContextsProvider';
55
import { CancelIcon } from '../../icons';
66
import { EASING } from '../../../constants';

packages/toolbar/src/core/ui/Toolbar/components/new/Contexts/ContextItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useState, useCallback, useMemo, useEffect, useRef } from 'react';
22
import { motion, AnimatePresence } from 'motion/react';
3-
import type { LDContext } from 'launchdarkly-js-client-sdk';
3+
import type { LDContext } from '@launchdarkly/js-client-sdk';
44
import * as styles from './ContextItem.module.css';
55
import { CopyableText } from '../../CopyableText';
66
import { EditIcon, DeleteIcon, CheckIcon, CancelIcon } from '../../icons';

packages/toolbar/src/core/ui/Toolbar/context/FlagSdkOverrideProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export function FlagSdkOverrideProvider({ children, flagOverridePlugin }: FlagSd
114114

115115
let changedKeys = keys;
116116
if (changedKeys === undefined) {
117-
changedKeys = Object.keys(changes)
117+
changedKeys = Object.keys(changes);
118118
}
119119

120120
// Only update the flags that actually changed for better performance

packages/toolbar/src/core/ui/Toolbar/context/api/ContextsProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';
2-
import type { LDContext } from 'launchdarkly-js-client-sdk';
2+
import type { LDContext } from '@launchdarkly/js-client-sdk';
33
import { loadContexts, saveContexts, loadActiveContext, saveActiveContext } from '../../utils/localStorage';
44
import { usePlugins } from '../state/PluginsProvider';
55
import { getContextDisplayName, getContextKey, getContextKind, getStableContextId } from '../../utils/context';

packages/toolbar/src/core/ui/Toolbar/utils/localStorage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { LDContext } from 'launchdarkly-js-client-sdk';
1+
import type { LDContext } from '@launchdarkly/js-client-sdk';
22
import { ToolbarPosition, TOOLBAR_POSITIONS } from '../types/toolbar';
33

44
export const TOOLBAR_STORAGE_KEYS = {

packages/toolbar/src/types/plugins/LDClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { LDFlagSet, LDPluginEnvironmentMetadata } from "launchdarkly-js-client-sdk";
2-
import { LDIdentifyResult, Hook } from "@launchdarkly/js-client-sdk";
1+
import { LDFlagSet, LDPluginEnvironmentMetadata } from 'launchdarkly-js-client-sdk';
2+
import { LDIdentifyResult, Hook } from '@launchdarkly/js-client-sdk';
33

44
/**
55
* LDClient based on the LDClient type in the SDK package with

packages/toolbar/src/types/plugins/eventInterceptionPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { LDPluginEnvironmentMetadata, LDPluginMetadata, Hook } from 'launchdarkly-js-client-sdk';
1+
import type { LDPluginEnvironmentMetadata, LDPluginMetadata, Hook } from '@launchdarkly/js-client-sdk';
22
import { AfterTrackHook, AfterIdentifyHook, AfterEvaluationHook, EventStore } from '../hooks';
33
import type { EventFilter, ProcessedEvent } from '../events';
44
import type { IEventInterceptionPlugin } from './plugins';

0 commit comments

Comments
 (0)