Skip to content

Commit b71c878

Browse files
committed
build tweaks
1 parent d815094 commit b71c878

File tree

9 files changed

+26
-17
lines changed

9 files changed

+26
-17
lines changed

sdk/highlight-run/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@
8181
"@types/js-cookie": "^3.0.6",
8282
"@types/json-stringify-safe": "^5.0.3",
8383
"@types/node": "^16.3.1",
84-
"@vitest/web-worker": "^1.6.0",
84+
"@vitest/web-worker": "^3.1.2",
8585
"npm-run-all": "^4.1.5",
8686
"prettier": "^3.3.3",
8787
"readdirp": "^3.6.0",
8888
"size-limit": "^8.1.0",
8989
"tslib": "^2.6.2",
9090
"typescript": "^5.0.4",
91-
"vite": "^5.2.12",
92-
"vitest": "^1.6.0",
91+
"vite": "^6.3.4",
92+
"vitest": "^3.1.2",
9393
"vitest-canvas-mock": "^0.3.3"
9494
},
9595
"dependencies": {
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { Attributes, Context, Span, SpanOptions } from '@opentelemetry/api'
2-
import type { LDClientMin, OTelMetric as Metric } from '../client'
2+
import type { LDClientMin } from '../client'
3+
import type { OTelMetric as Metric } from '../client/types/types'
34
import type { ErrorMessageType } from '../client/types/shared-types'
45
import { LDPluginEnvironmentMetadata } from '../plugins/plugin'
56

sdk/highlight-run/src/plugins/observe.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
import type { HighlightOptions, LDClientMin } from '../client'
2+
import { GenerateSecureID } from '../client/utils/secure-id'
13
import {
2-
GenerateSecureID,
34
getPreviousSessionData,
4-
HighlightOptions,
5-
LDClientMin,
6-
} from 'client'
5+
loadCookieSessionData,
6+
} from '../client/utils/sessionStorage/highlightSession'
7+
import { setCookieWriteEnabled } from '../client/utils/storage'
78
import type { LDPlugin, LDPluginEnvironmentMetadata } from './plugin'
89
import type {
910
Hook,
@@ -12,6 +13,7 @@ import type {
1213
IdentifySeriesResult,
1314
} from '../integrations/launchdarkly/types/Hooks'
1415
import { Observe as ObserveAPI } from '../api/observe'
16+
import { ObserveSDK } from '../sdk/observe'
1517
import {
1618
FEATURE_FLAG_CONTEXT_KEY_ATTR,
1719
FEATURE_FLAG_KEY_ATTR,
@@ -21,9 +23,6 @@ import {
2123
FEATURE_FLAG_VARIANT_ATTR,
2224
getCanonicalKey,
2325
} from '../integrations/launchdarkly'
24-
import { loadCookieSessionData } from '../client/utils/sessionStorage/highlightSession'
25-
import { setCookieWriteEnabled } from '../client/utils/storage'
26-
import { ObserveSDK } from '../sdk/observe'
2726

2827
// TODO(vkorolik) move to @launchdarkly package
2928
export class Observe implements LDPlugin {
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ export interface LDPlugin {
1010
getHooks?(metadata: LDPluginEnvironmentMetadata): Hook[]
1111
}
1212

13+
export interface LDPluginMetadata {
14+
readonly name: string
15+
}
16+
1317
export interface LDPluginSdkMetadata {
1418
name: string
1519
version: string

sdk/highlight-run/src/plugins/record.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
type HighlightClassOptions,
66
HighlightOptions,
77
LDClientMin,
8-
} from 'client'
8+
} from '../client'
99
import type { LDPlugin, LDPluginEnvironmentMetadata } from './plugin'
1010
import type {
1111
Hook,

sdk/highlight-run/src/sdk.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import type { IntegrationClient } from './integrations'
22
import type { Client } from './api/client'
3-
import type { HighlightOptions, LDClientMin } from 'client'
4-
import type { ErrorMessageType, Source } from 'client/types/shared-types'
3+
import type { HighlightOptions, LDClientMin } from './client'
4+
import type { ErrorMessageType, Source } from './client/types/shared-types'
55
import type {
66
Metadata,
77
OTelMetric as Metric,
88
StartOptions,
9-
} from 'client/types/types'
9+
} from './client/types/types'
1010
import { Attributes } from '@opentelemetry/api'
11-
import { LDPluginEnvironmentMetadata } from 'plugins/plugin'
11+
import { LDPluginEnvironmentMetadata } from './plugins/plugin'
1212

1313
class SDKCore implements Client {
1414
static _instance: SDKCore

sdk/highlight-run/src/sdk/observe.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ import {
88
SpanOptions,
99
UpDownCounter,
1010
} from '@opentelemetry/api'
11-
import { getMeter, getTracer, LDClientMin, setupBrowserTracing } from 'client'
11+
import {
12+
getMeter,
13+
getTracer,
14+
LDClientMin,
15+
setupBrowserTracing,
16+
} from '../client'
1217
import type { Observe } from '../api/observe'
1318
import { getNoopSpan } from '../client/otel/utils'
1419
import {

0 commit comments

Comments
 (0)