@sentry/browser 8.39.0-dev.0 → 8.41.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/build/npm/cjs/client.js +2 -3
  2. package/build/npm/cjs/client.js.map +1 -1
  3. package/build/npm/cjs/eventbuilder.js +18 -19
  4. package/build/npm/cjs/eventbuilder.js.map +1 -1
  5. package/build/npm/cjs/helpers.js +6 -7
  6. package/build/npm/cjs/helpers.js.map +1 -1
  7. package/build/npm/cjs/index.js +9 -0
  8. package/build/npm/cjs/index.js.map +1 -1
  9. package/build/npm/cjs/integrations/breadcrumbs.js +14 -15
  10. package/build/npm/cjs/integrations/breadcrumbs.js.map +1 -1
  11. package/build/npm/cjs/integrations/browserapierrors.js +14 -15
  12. package/build/npm/cjs/integrations/browserapierrors.js.map +1 -1
  13. package/build/npm/cjs/integrations/contextlines.js +3 -4
  14. package/build/npm/cjs/integrations/contextlines.js.map +1 -1
  15. package/build/npm/cjs/integrations/featureFlags/launchdarkly/integration.js +55 -0
  16. package/build/npm/cjs/integrations/featureFlags/launchdarkly/integration.js.map +1 -0
  17. package/build/npm/cjs/integrations/featureFlags/openfeature/integration.js +37 -0
  18. package/build/npm/cjs/integrations/featureFlags/openfeature/integration.js.map +1 -0
  19. package/build/npm/cjs/integrations/globalhandlers.js +7 -8
  20. package/build/npm/cjs/integrations/globalhandlers.js.map +1 -1
  21. package/build/npm/cjs/integrations/httpclient.js +8 -9
  22. package/build/npm/cjs/integrations/httpclient.js.map +1 -1
  23. package/build/npm/cjs/integrations/linkederrors.js +1 -2
  24. package/build/npm/cjs/integrations/linkederrors.js.map +1 -1
  25. package/build/npm/cjs/integrations/reportingobserver.js +2 -3
  26. package/build/npm/cjs/integrations/reportingobserver.js.map +1 -1
  27. package/build/npm/cjs/integrations/spotlight.js +4 -5
  28. package/build/npm/cjs/integrations/spotlight.js.map +1 -1
  29. package/build/npm/cjs/profiling/integration.js +3 -4
  30. package/build/npm/cjs/profiling/integration.js.map +1 -1
  31. package/build/npm/cjs/profiling/startProfileForSpan.js +7 -8
  32. package/build/npm/cjs/profiling/startProfileForSpan.js.map +1 -1
  33. package/build/npm/cjs/profiling/utils.js +21 -22
  34. package/build/npm/cjs/profiling/utils.js.map +1 -1
  35. package/build/npm/cjs/sdk.js +8 -9
  36. package/build/npm/cjs/sdk.js.map +1 -1
  37. package/build/npm/cjs/stack-parsers.js +17 -10
  38. package/build/npm/cjs/stack-parsers.js.map +1 -1
  39. package/build/npm/cjs/tracing/backgroundtab.js +2 -3
  40. package/build/npm/cjs/tracing/backgroundtab.js.map +1 -1
  41. package/build/npm/cjs/tracing/browserTracingIntegration.js +10 -11
  42. package/build/npm/cjs/tracing/browserTracingIntegration.js.map +1 -1
  43. package/build/npm/cjs/tracing/request.js +12 -13
  44. package/build/npm/cjs/tracing/request.js.map +1 -1
  45. package/build/npm/cjs/transports/fetch.js +2 -3
  46. package/build/npm/cjs/transports/fetch.js.map +1 -1
  47. package/build/npm/cjs/transports/offline.js +3 -4
  48. package/build/npm/cjs/transports/offline.js.map +1 -1
  49. package/build/npm/cjs/userfeedback.js +3 -3
  50. package/build/npm/cjs/userfeedback.js.map +1 -1
  51. package/build/npm/cjs/utils/featureFlags.js +97 -0
  52. package/build/npm/cjs/utils/featureFlags.js.map +1 -0
  53. package/build/npm/esm/client.js +1 -2
  54. package/build/npm/esm/client.js.map +1 -1
  55. package/build/npm/esm/eventbuilder.js +1 -2
  56. package/build/npm/esm/eventbuilder.js.map +1 -1
  57. package/build/npm/esm/helpers.js +1 -2
  58. package/build/npm/esm/helpers.js.map +1 -1
  59. package/build/npm/esm/index.js +3 -0
  60. package/build/npm/esm/index.js.map +1 -1
  61. package/build/npm/esm/integrations/breadcrumbs.js +1 -2
  62. package/build/npm/esm/integrations/breadcrumbs.js.map +1 -1
  63. package/build/npm/esm/integrations/browserapierrors.js +1 -2
  64. package/build/npm/esm/integrations/browserapierrors.js.map +1 -1
  65. package/build/npm/esm/integrations/contextlines.js +1 -2
  66. package/build/npm/esm/integrations/contextlines.js.map +1 -1
  67. package/build/npm/esm/integrations/featureFlags/launchdarkly/integration.js +52 -0
  68. package/build/npm/esm/integrations/featureFlags/launchdarkly/integration.js.map +1 -0
  69. package/build/npm/esm/integrations/featureFlags/openfeature/integration.js +34 -0
  70. package/build/npm/esm/integrations/featureFlags/openfeature/integration.js.map +1 -0
  71. package/build/npm/esm/integrations/globalhandlers.js +1 -2
  72. package/build/npm/esm/integrations/globalhandlers.js.map +1 -1
  73. package/build/npm/esm/integrations/httpclient.js +1 -2
  74. package/build/npm/esm/integrations/httpclient.js.map +1 -1
  75. package/build/npm/esm/integrations/linkederrors.js +1 -2
  76. package/build/npm/esm/integrations/linkederrors.js.map +1 -1
  77. package/build/npm/esm/integrations/reportingobserver.js +1 -2
  78. package/build/npm/esm/integrations/reportingobserver.js.map +1 -1
  79. package/build/npm/esm/integrations/spotlight.js +1 -2
  80. package/build/npm/esm/integrations/spotlight.js.map +1 -1
  81. package/build/npm/esm/package.json +1 -1
  82. package/build/npm/esm/profiling/integration.js +1 -2
  83. package/build/npm/esm/profiling/integration.js.map +1 -1
  84. package/build/npm/esm/profiling/startProfileForSpan.js +1 -2
  85. package/build/npm/esm/profiling/startProfileForSpan.js.map +1 -1
  86. package/build/npm/esm/profiling/utils.js +1 -2
  87. package/build/npm/esm/profiling/utils.js.map +1 -1
  88. package/build/npm/esm/sdk.js +1 -2
  89. package/build/npm/esm/sdk.js.map +1 -1
  90. package/build/npm/esm/stack-parsers.js +8 -1
  91. package/build/npm/esm/stack-parsers.js.map +1 -1
  92. package/build/npm/esm/tracing/backgroundtab.js +1 -2
  93. package/build/npm/esm/tracing/backgroundtab.js.map +1 -1
  94. package/build/npm/esm/tracing/browserTracingIntegration.js +1 -2
  95. package/build/npm/esm/tracing/browserTracingIntegration.js.map +1 -1
  96. package/build/npm/esm/tracing/request.js +1 -2
  97. package/build/npm/esm/tracing/request.js.map +1 -1
  98. package/build/npm/esm/transports/fetch.js +1 -2
  99. package/build/npm/esm/transports/fetch.js.map +1 -1
  100. package/build/npm/esm/transports/offline.js +1 -2
  101. package/build/npm/esm/transports/offline.js.map +1 -1
  102. package/build/npm/esm/userfeedback.js +1 -1
  103. package/build/npm/esm/userfeedback.js.map +1 -1
  104. package/build/npm/esm/utils/featureFlags.js +92 -0
  105. package/build/npm/esm/utils/featureFlags.js.map +1 -0
  106. package/build/npm/types/client.d.ts.map +1 -1
  107. package/build/npm/types/eventbuilder.d.ts.map +1 -1
  108. package/build/npm/types/exports.d.ts +1 -1
  109. package/build/npm/types/exports.d.ts.map +1 -1
  110. package/build/npm/types/helpers.d.ts +1 -1
  111. package/build/npm/types/helpers.d.ts.map +1 -1
  112. package/build/npm/types/index.d.ts +6 -3
  113. package/build/npm/types/index.d.ts.map +1 -1
  114. package/build/npm/types/integrations/contextlines.d.ts.map +1 -1
  115. package/build/npm/types/integrations/featureFlags/launchdarkly/index.d.ts +2 -0
  116. package/build/npm/types/integrations/featureFlags/launchdarkly/index.d.ts.map +1 -0
  117. package/build/npm/types/integrations/featureFlags/launchdarkly/integration.d.ts +25 -0
  118. package/build/npm/types/integrations/featureFlags/launchdarkly/integration.d.ts.map +1 -0
  119. package/build/npm/types/integrations/featureFlags/launchdarkly/types.d.ts +44 -0
  120. package/build/npm/types/integrations/featureFlags/launchdarkly/types.d.ts.map +1 -0
  121. package/build/npm/types/integrations/featureFlags/openfeature/index.d.ts +2 -0
  122. package/build/npm/types/integrations/featureFlags/openfeature/index.d.ts.map +1 -0
  123. package/build/npm/types/integrations/featureFlags/openfeature/integration.d.ts +16 -0
  124. package/build/npm/types/integrations/featureFlags/openfeature/integration.d.ts.map +1 -0
  125. package/build/npm/types/integrations/featureFlags/openfeature/types.d.ts +86 -0
  126. package/build/npm/types/integrations/featureFlags/openfeature/types.d.ts.map +1 -0
  127. package/build/npm/types/integrations/spotlight.d.ts.map +1 -1
  128. package/build/npm/types/integrations-bundle/index.debug.d.ts.map +1 -1
  129. package/build/npm/types/integrations-bundle/index.sessiontiming.d.ts.map +1 -1
  130. package/build/npm/types/profiling/startProfileForSpan.d.ts.map +1 -1
  131. package/build/npm/types/profiling/utils.d.ts.map +1 -1
  132. package/build/npm/types/sdk.d.ts.map +1 -1
  133. package/build/npm/types/stack-parsers.d.ts.map +1 -1
  134. package/build/npm/types/tracing/browserTracingIntegration.d.ts.map +1 -1
  135. package/build/npm/types/tracing/request.d.ts.map +1 -1
  136. package/build/npm/types/transports/fetch.d.ts.map +1 -1
  137. package/build/npm/types/transports/offline.d.ts.map +1 -1
  138. package/build/npm/types/userfeedback.d.ts.map +1 -1
  139. package/build/npm/types/utils/featureFlags.d.ts +34 -0
  140. package/build/npm/types/utils/featureFlags.d.ts.map +1 -0
  141. package/build/npm/types-ts3.8/exports.d.ts +1 -1
  142. package/build/npm/types-ts3.8/helpers.d.ts +1 -1
  143. package/build/npm/types-ts3.8/index.d.ts +6 -3
  144. package/build/npm/types-ts3.8/integrations/featureFlags/launchdarkly/index.d.ts +2 -0
  145. package/build/npm/types-ts3.8/integrations/featureFlags/launchdarkly/integration.d.ts +25 -0
  146. package/build/npm/types-ts3.8/integrations/featureFlags/launchdarkly/types.d.ts +44 -0
  147. package/build/npm/types-ts3.8/integrations/featureFlags/openfeature/index.d.ts +2 -0
  148. package/build/npm/types-ts3.8/integrations/featureFlags/openfeature/integration.d.ts +16 -0
  149. package/build/npm/types-ts3.8/integrations/featureFlags/openfeature/types.d.ts +86 -0
  150. package/build/npm/types-ts3.8/utils/featureFlags.d.ts +34 -0
  151. package/package.json +8 -9
@@ -3,15 +3,15 @@ export { reportingObserverIntegration } from './integrations/reportingobserver';
3
3
  export { httpClientIntegration } from './integrations/httpclient';
4
4
  export { contextLinesIntegration } from './integrations/contextlines';
5
5
  export { captureConsoleIntegration, debugIntegration, extraErrorDataIntegration, rewriteFramesIntegration, sessionTimingIntegration, captureFeedback, } from '@sentry/core';
6
- export { replayIntegration, getReplay, } from '@sentry-internal/replay';
6
+ export { replayIntegration, getReplay } from '@sentry-internal/replay';
7
7
  export { ReplayEventType, ReplayEventWithTime, ReplayBreadcrumbFrame, ReplayBreadcrumbFrameEvent, ReplayOptionFrameEvent, ReplayFrame, ReplayFrameEvent, ReplaySpanFrame, ReplaySpanFrameEvent, } from '@sentry-internal/replay';
8
8
  export { replayCanvasIntegration } from '@sentry-internal/replay-canvas';
9
9
  import { feedbackAsyncIntegration } from './feedbackAsync';
10
10
  import { feedbackSyncIntegration } from './feedbackSync';
11
11
  export { feedbackAsyncIntegration, feedbackSyncIntegration, feedbackSyncIntegration as feedbackIntegration };
12
- export { getFeedback, sendFeedback, } from '@sentry-internal/feedback';
12
+ export { getFeedback, sendFeedback } from '@sentry-internal/feedback';
13
13
  export * from './metrics';
14
- export { defaultRequestInstrumentationOptions, instrumentOutgoingRequests, } from './tracing/request';
14
+ export { defaultRequestInstrumentationOptions, instrumentOutgoingRequests } from './tracing/request';
15
15
  export { browserTracingIntegration, startBrowserTracingNavigationSpan, startBrowserTracingPageLoadSpan, } from './tracing/browserTracingIntegration';
16
16
  export { RequestInstrumentationOptions } from './tracing/request';
17
17
  export { addTracingExtensions, registerSpanErrorInstrumentation, getActiveSpan, getRootSpan, startSpan, startInactiveSpan, startSpanManual, withActiveSpan, startNewTrace, getSpanDescendants, setMeasurement, getSpanStatusFromHttpCode, setHttpStatus, makeMultiplexedTransport, moduleMetadataIntegration, zodErrorsIntegration, thirdPartyErrorFilterIntegration, } from '@sentry/core';
@@ -19,4 +19,7 @@ export { Span } from '@sentry/types';
19
19
  export { makeBrowserOfflineTransport } from './transports/offline';
20
20
  export { browserProfilingIntegration } from './profiling/integration';
21
21
  export { spotlightBrowserIntegration } from './integrations/spotlight';
22
+ export { copyFlagsFromScopeToEvent, insertFlagToScope } from './utils/featureFlags';
23
+ export { launchDarklyIntegration, buildLaunchDarklyFlagUsedHandler } from './integrations/featureFlags/launchdarkly';
24
+ export { openFeatureIntegration, OpenFeatureIntegrationHook } from './integrations/featureFlags/openfeature';
22
25
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,2 @@
1
+ export { launchDarklyIntegration, buildLaunchDarklyFlagUsedHandler } from './integration';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,25 @@
1
+ import { LDInspectionFlagUsedHandler } from './types';
2
+ /**
3
+ * Sentry integration for capturing feature flags from LaunchDarkly.
4
+ *
5
+ * See the [feature flag documentation](https://develop.sentry.dev/sdk/expected-features/#feature-flags) for more information.
6
+ *
7
+ * @example
8
+ * ```
9
+ * import * as Sentry from '@sentry/browser';
10
+ * import {launchDarklyIntegration, buildLaunchDarklyFlagUsedInspector} from '@sentry/browser';
11
+ * import * as LaunchDarkly from 'launchdarkly-js-client-sdk';
12
+ *
13
+ * Sentry.init(..., integrations: [launchDarklyIntegration()])
14
+ * const ldClient = LaunchDarkly.initialize(..., {inspectors: [buildLaunchDarklyFlagUsedHandler()]});
15
+ * ```
16
+ */
17
+ export declare const launchDarklyIntegration: () => import("@sentry/types").Integration;
18
+ /**
19
+ * LaunchDarkly hook that listens for flag evaluations and updates the `flags`
20
+ * context in our Sentry scope. This needs to be registered as an
21
+ * 'inspector' in LaunchDarkly initialize() options, separately from
22
+ * `launchDarklyIntegration`. Both are needed to collect feature flags on error.
23
+ */
24
+ export declare function buildLaunchDarklyFlagUsedHandler(): LDInspectionFlagUsedHandler;
25
+ //# sourceMappingURL=integration.d.ts.map
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Inline definitions of LaunchDarkly types so we don't have to include their
3
+ * SDK in devDependencies. These are only for type-checking and can be extended
4
+ * as needed - for exact definitions, reference `launchdarkly-js-client-sdk`.
5
+ */
6
+ /**
7
+ * Currently, the Sentry integration does not read from values of this type.
8
+ */
9
+ export type LDContext = object;
10
+ /**
11
+ * An object that combines the result of a feature flag evaluation with information about
12
+ * how it was calculated.
13
+ */
14
+ export interface LDEvaluationDetail {
15
+ value: unknown;
16
+ }
17
+ /**
18
+ * Callback interface for collecting information about the SDK at runtime.
19
+ *
20
+ * This interface is used to collect information about flag usage.
21
+ *
22
+ * This interface should not be used by the application to access flags for the purpose of controlling application
23
+ * flow. It is intended for monitoring, analytics, or debugging purposes.
24
+ */
25
+ export interface LDInspectionFlagUsedHandler {
26
+ type: 'flag-used';
27
+ /**
28
+ * Name of the inspector. Will be used for logging issues with the inspector.
29
+ */
30
+ name: string;
31
+ /**
32
+ * If `true`, then the inspector will be ran synchronously with evaluation.
33
+ * Synchronous inspectors execute inline with evaluation and care should be taken to ensure
34
+ * they have minimal performance overhead.
35
+ */
36
+ synchronous?: boolean;
37
+ /**
38
+ * This method is called when a flag is accessed via a variation method, or it can be called based on actions in
39
+ * wrapper SDKs which have different methods of tracking when a flag was accessed. It is not called when a call is made
40
+ * to allFlags.
41
+ */
42
+ method: (flagKey: string, flagDetail: LDEvaluationDetail, context: LDContext) => void;
43
+ }
44
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1,2 @@
1
+ export { openFeatureIntegration, OpenFeatureIntegrationHook } from './integration';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,16 @@
1
+ import { EvaluationDetails, HookContext, HookHints, JsonValue, OpenFeatureHook } from './types';
2
+ export declare const openFeatureIntegration: () => import("@sentry/types").Integration;
3
+ /**
4
+ * OpenFeature Hook class implementation.
5
+ */
6
+ export declare class OpenFeatureIntegrationHook implements OpenFeatureHook {
7
+ /**
8
+ * Successful evaluation result.
9
+ */
10
+ after(_hookContext: Readonly<HookContext<JsonValue>>, evaluationDetails: EvaluationDetails<JsonValue>): void;
11
+ /**
12
+ * On error evaluation result.
13
+ */
14
+ error(hookContext: Readonly<HookContext<JsonValue>>, _error: unknown, _hookHints?: HookHints): void;
15
+ }
16
+ //# sourceMappingURL=integration.d.ts.map
@@ -0,0 +1,86 @@
1
+ export type FlagValue = boolean | string | number | JsonValue;
2
+ export type FlagValueType = 'boolean' | 'string' | 'number' | 'object';
3
+ export type JsonArray = JsonValue[];
4
+ export type JsonObject = {
5
+ [key: string]: JsonValue;
6
+ };
7
+ export type JsonValue = PrimitiveValue | JsonObject | JsonArray;
8
+ export type Metadata = Record<string, string>;
9
+ export type PrimitiveValue = null | boolean | string | number;
10
+ export type FlagMetadata = Record<string, string | number | boolean>;
11
+ export declare const StandardResolutionReasons: {
12
+ readonly STATIC: "STATIC";
13
+ readonly DEFAULT: "DEFAULT";
14
+ readonly TARGETING_MATCH: "TARGETING_MATCH";
15
+ readonly SPLIT: "SPLIT";
16
+ readonly CACHED: "CACHED";
17
+ readonly DISABLED: "DISABLED";
18
+ readonly UNKNOWN: "UNKNOWN";
19
+ readonly STALE: "STALE";
20
+ readonly ERROR: "ERROR";
21
+ };
22
+ export declare enum ErrorCode {
23
+ PROVIDER_NOT_READY = "PROVIDER_NOT_READY",
24
+ PROVIDER_FATAL = "PROVIDER_FATAL",
25
+ FLAG_NOT_FOUND = "FLAG_NOT_FOUND",
26
+ PARSE_ERROR = "PARSE_ERROR",
27
+ TYPE_MISMATCH = "TYPE_MISMATCH",
28
+ TARGETING_KEY_MISSING = "TARGETING_KEY_MISSING",
29
+ INVALID_CONTEXT = "INVALID_CONTEXT",
30
+ GENERAL = "GENERAL"
31
+ }
32
+ export interface Logger {
33
+ error(...args: unknown[]): void;
34
+ warn(...args: unknown[]): void;
35
+ info(...args: unknown[]): void;
36
+ debug(...args: unknown[]): void;
37
+ }
38
+ export type ResolutionReason = keyof typeof StandardResolutionReasons | (string & Record<never, never>);
39
+ export type EvaluationContextValue = PrimitiveValue | Date | {
40
+ [key: string]: EvaluationContextValue;
41
+ } | EvaluationContextValue[];
42
+ export type EvaluationContext = {
43
+ targetingKey?: string;
44
+ } & Record<string, EvaluationContextValue>;
45
+ export interface ProviderMetadata extends Readonly<Metadata> {
46
+ readonly name: string;
47
+ }
48
+ export interface ClientMetadata {
49
+ readonly name?: string;
50
+ readonly domain?: string;
51
+ readonly version?: string;
52
+ readonly providerMetadata: ProviderMetadata;
53
+ }
54
+ export type HookHints = Readonly<Record<string, unknown>>;
55
+ export interface HookContext<T extends FlagValue = FlagValue> {
56
+ readonly flagKey: string;
57
+ readonly defaultValue: T;
58
+ readonly flagValueType: FlagValueType;
59
+ readonly context: Readonly<EvaluationContext>;
60
+ readonly clientMetadata: ClientMetadata;
61
+ readonly providerMetadata: ProviderMetadata;
62
+ readonly logger: Logger;
63
+ }
64
+ export interface BeforeHookContext extends HookContext {
65
+ context: EvaluationContext;
66
+ }
67
+ export type ResolutionDetails<U> = {
68
+ value: U;
69
+ variant?: string;
70
+ flagMetadata?: FlagMetadata;
71
+ reason?: ResolutionReason;
72
+ errorCode?: ErrorCode;
73
+ errorMessage?: string;
74
+ };
75
+ export type EvaluationDetails<T extends FlagValue> = {
76
+ flagKey: string;
77
+ flagMetadata: Readonly<FlagMetadata>;
78
+ } & ResolutionDetails<T>;
79
+ export interface BaseHook<T extends FlagValue = FlagValue, BeforeHookReturn = unknown, HooksReturn = unknown> {
80
+ before?(hookContext: BeforeHookContext, hookHints?: HookHints): BeforeHookReturn;
81
+ after?(hookContext: Readonly<HookContext<T>>, evaluationDetails: EvaluationDetails<T>, hookHints?: HookHints): HooksReturn;
82
+ error?(hookContext: Readonly<HookContext<T>>, error: unknown, hookHints?: HookHints): HooksReturn;
83
+ finally?(hookContext: Readonly<HookContext<T>>, hookHints?: HookHints): HooksReturn;
84
+ }
85
+ export type OpenFeatureHook = BaseHook<FlagValue, void, void>;
86
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1,34 @@
1
+ import { Event, FeatureFlag } from '@sentry/types';
2
+ /**
3
+ * Ordered LRU cache for storing feature flags in the scope context. The name
4
+ * of each flag in the buffer is unique, and the output of getAll() is ordered
5
+ * from oldest to newest.
6
+ */
7
+ /**
8
+ * Max size of the LRU flag buffer stored in Sentry scope and event contexts.
9
+ */
10
+ export declare const FLAG_BUFFER_SIZE = 100;
11
+ /**
12
+ * Copies feature flags that are in current scope context to the event context
13
+ */
14
+ export declare function copyFlagsFromScopeToEvent(event: Event): Event;
15
+ /**
16
+ * Creates a feature flags values array in current context if it does not exist
17
+ * and inserts the flag into a FeatureFlag array while maintaining ordered LRU
18
+ * properties. Not thread-safe. After inserting:
19
+ * - `flags` is sorted in order of recency, with the newest flag at the end.
20
+ * - No other flags with the same name exist in `flags`.
21
+ * - The length of `flags` does not exceed `maxSize`. The oldest flag is evicted
22
+ * as needed.
23
+ *
24
+ * @param name Name of the feature flag to insert.
25
+ * @param value Value of the feature flag.
26
+ * @param maxSize Max number of flags the buffer should store. It's recommended
27
+ * to keep this consistent across insertions. Default is FLAG_BUFFER_SIZE
28
+ */
29
+ export declare function insertFlagToScope(name: string, value: unknown, maxSize?: number): void;
30
+ /**
31
+ * Exported for tests
32
+ */
33
+ export declare function insertToFlagBuffer(flags: FeatureFlag[], name: string, value: unknown, maxSize: number): void;
34
+ //# sourceMappingURL=featureFlags.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/browser",
3
- "version": "8.39.0-dev.0",
3
+ "version": "8.41.0-beta.0",
4
4
  "description": "Official Sentry SDK for browsers",
5
5
  "repository": "git://github.com/getsentry/sentry-javascript.git",
6
6
  "homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/browser",
@@ -39,16 +39,15 @@
39
39
  "access": "public"
40
40
  },
41
41
  "dependencies": {
42
- "@sentry-internal/browser-utils": "8.39.0-dev.0",
43
- "@sentry-internal/feedback": "8.39.0-dev.0",
44
- "@sentry-internal/replay": "8.39.0-dev.0",
45
- "@sentry-internal/replay-canvas": "8.39.0-dev.0",
46
- "@sentry/core": "8.39.0-dev.0",
47
- "@sentry/types": "8.39.0-dev.0",
48
- "@sentry/utils": "8.39.0-dev.0"
42
+ "@sentry-internal/browser-utils": "8.41.0-beta.0",
43
+ "@sentry-internal/feedback": "8.41.0-beta.0",
44
+ "@sentry-internal/replay": "8.41.0-beta.0",
45
+ "@sentry-internal/replay-canvas": "8.41.0-beta.0",
46
+ "@sentry/core": "8.41.0-beta.0",
47
+ "@sentry/types": "8.41.0-beta.0"
49
48
  },
50
49
  "devDependencies": {
51
- "@sentry-internal/integration-shims": "8.39.0-dev.0",
50
+ "@sentry-internal/integration-shims": "8.41.0-beta.0",
52
51
  "fake-indexeddb": "^4.0.1"
53
52
  },
54
53
  "scripts": {