@sentry/browser 8.41.0 → 8.43.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.
- package/build/npm/cjs/client.js +1 -1
- package/build/npm/cjs/client.js.map +1 -1
- package/build/npm/cjs/eventbuilder.js.map +1 -1
- package/build/npm/cjs/helpers.js +25 -21
- package/build/npm/cjs/helpers.js.map +1 -1
- package/build/npm/cjs/index.js +10 -0
- package/build/npm/cjs/index.js.map +1 -1
- package/build/npm/cjs/integrations/breadcrumbs.js +3 -0
- package/build/npm/cjs/integrations/breadcrumbs.js.map +1 -1
- package/build/npm/cjs/integrations/browserapierrors.js +41 -63
- package/build/npm/cjs/integrations/browserapierrors.js.map +1 -1
- package/build/npm/cjs/integrations/browsersession.js +44 -0
- package/build/npm/cjs/integrations/browsersession.js.map +1 -0
- package/build/npm/cjs/integrations/contextlines.js.map +1 -1
- package/build/npm/cjs/integrations/featureFlags/featureFlagsIntegration.js +46 -0
- package/build/npm/cjs/integrations/featureFlags/featureFlagsIntegration.js.map +1 -0
- package/build/npm/cjs/integrations/featureFlags/launchdarkly/integration.js +55 -0
- package/build/npm/cjs/integrations/featureFlags/launchdarkly/integration.js.map +1 -0
- package/build/npm/cjs/integrations/featureFlags/openfeature/integration.js +37 -0
- package/build/npm/cjs/integrations/featureFlags/openfeature/integration.js.map +1 -0
- package/build/npm/cjs/integrations/globalhandlers.js +8 -4
- package/build/npm/cjs/integrations/globalhandlers.js.map +1 -1
- package/build/npm/cjs/integrations/httpclient.js.map +1 -1
- package/build/npm/cjs/integrations/linkederrors.js.map +1 -1
- package/build/npm/cjs/integrations/reportingobserver.js +7 -6
- package/build/npm/cjs/integrations/reportingobserver.js.map +1 -1
- package/build/npm/cjs/integrations/spotlight.js.map +1 -1
- package/build/npm/cjs/metrics.js.map +1 -1
- package/build/npm/cjs/profiling/integration.js.map +1 -1
- package/build/npm/cjs/profiling/startProfileForSpan.js.map +1 -1
- package/build/npm/cjs/profiling/utils.js +0 -3
- package/build/npm/cjs/profiling/utils.js.map +1 -1
- package/build/npm/cjs/sdk.js +11 -37
- package/build/npm/cjs/sdk.js.map +1 -1
- package/build/npm/cjs/stack-parsers.js.map +1 -1
- package/build/npm/cjs/tracing/backgroundtab.js.map +1 -1
- package/build/npm/cjs/tracing/browserTracingIntegration.js +2 -2
- package/build/npm/cjs/tracing/browserTracingIntegration.js.map +1 -1
- package/build/npm/cjs/tracing/request.js +0 -2
- package/build/npm/cjs/tracing/request.js.map +1 -1
- package/build/npm/cjs/transports/fetch.js.map +1 -1
- package/build/npm/cjs/transports/offline.js.map +1 -1
- package/build/npm/cjs/userfeedback.js.map +1 -1
- package/build/npm/cjs/utils/featureFlags.js +96 -0
- package/build/npm/cjs/utils/featureFlags.js.map +1 -0
- package/build/npm/cjs/utils/lazyLoadIntegration.js.map +1 -1
- package/build/npm/esm/client.js +1 -1
- package/build/npm/esm/client.js.map +1 -1
- package/build/npm/esm/eventbuilder.js.map +1 -1
- package/build/npm/esm/helpers.js +25 -21
- package/build/npm/esm/helpers.js.map +1 -1
- package/build/npm/esm/index.js +4 -0
- package/build/npm/esm/index.js.map +1 -1
- package/build/npm/esm/integrations/breadcrumbs.js +3 -0
- package/build/npm/esm/integrations/breadcrumbs.js.map +1 -1
- package/build/npm/esm/integrations/browserapierrors.js +41 -63
- package/build/npm/esm/integrations/browserapierrors.js.map +1 -1
- package/build/npm/esm/integrations/browsersession.js +42 -0
- package/build/npm/esm/integrations/browsersession.js.map +1 -0
- package/build/npm/esm/integrations/contextlines.js.map +1 -1
- package/build/npm/esm/integrations/featureFlags/featureFlagsIntegration.js +44 -0
- package/build/npm/esm/integrations/featureFlags/featureFlagsIntegration.js.map +1 -0
- package/build/npm/esm/integrations/featureFlags/launchdarkly/integration.js +52 -0
- package/build/npm/esm/integrations/featureFlags/launchdarkly/integration.js.map +1 -0
- package/build/npm/esm/integrations/featureFlags/openfeature/integration.js +34 -0
- package/build/npm/esm/integrations/featureFlags/openfeature/integration.js.map +1 -0
- package/build/npm/esm/integrations/globalhandlers.js +8 -4
- package/build/npm/esm/integrations/globalhandlers.js.map +1 -1
- package/build/npm/esm/integrations/httpclient.js.map +1 -1
- package/build/npm/esm/integrations/linkederrors.js.map +1 -1
- package/build/npm/esm/integrations/reportingobserver.js +7 -6
- package/build/npm/esm/integrations/reportingobserver.js.map +1 -1
- package/build/npm/esm/integrations/spotlight.js.map +1 -1
- package/build/npm/esm/metrics.js.map +1 -1
- package/build/npm/esm/package.json +1 -1
- package/build/npm/esm/profiling/integration.js.map +1 -1
- package/build/npm/esm/profiling/startProfileForSpan.js.map +1 -1
- package/build/npm/esm/profiling/utils.js +0 -3
- package/build/npm/esm/profiling/utils.js.map +1 -1
- package/build/npm/esm/sdk.js +12 -38
- package/build/npm/esm/sdk.js.map +1 -1
- package/build/npm/esm/stack-parsers.js.map +1 -1
- package/build/npm/esm/tracing/backgroundtab.js.map +1 -1
- package/build/npm/esm/tracing/browserTracingIntegration.js +3 -3
- package/build/npm/esm/tracing/browserTracingIntegration.js.map +1 -1
- package/build/npm/esm/tracing/request.js +0 -2
- package/build/npm/esm/tracing/request.js.map +1 -1
- package/build/npm/esm/transports/fetch.js.map +1 -1
- package/build/npm/esm/transports/offline.js.map +1 -1
- package/build/npm/esm/userfeedback.js.map +1 -1
- package/build/npm/esm/utils/featureFlags.js +91 -0
- package/build/npm/esm/utils/featureFlags.js.map +1 -0
- package/build/npm/esm/utils/lazyLoadIntegration.js.map +1 -1
- package/build/npm/types/client.d.ts +2 -3
- package/build/npm/types/client.d.ts.map +1 -1
- package/build/npm/types/eventbuilder.d.ts +1 -1
- package/build/npm/types/eventbuilder.d.ts.map +1 -1
- package/build/npm/types/exports.d.ts +1 -1
- package/build/npm/types/exports.d.ts.map +1 -1
- package/build/npm/types/feedbackAsync.d.ts +1 -1
- package/build/npm/types/feedbackSync.d.ts +1 -1
- package/build/npm/types/helpers.d.ts +8 -12
- package/build/npm/types/helpers.d.ts.map +1 -1
- package/build/npm/types/index.d.ts +8 -4
- package/build/npm/types/index.d.ts.map +1 -1
- package/build/npm/types/integrations/breadcrumbs.d.ts +1 -1
- package/build/npm/types/integrations/breadcrumbs.d.ts.map +1 -1
- package/build/npm/types/integrations/browserapierrors.d.ts +1 -1
- package/build/npm/types/integrations/browserapierrors.d.ts.map +1 -1
- package/build/npm/types/integrations/browsersession.d.ts +8 -0
- package/build/npm/types/integrations/browsersession.d.ts.map +1 -0
- package/build/npm/types/integrations/contextlines.d.ts +2 -2
- package/build/npm/types/integrations/contextlines.d.ts.map +1 -1
- package/build/npm/types/integrations/featureFlags/featureFlagsIntegration.d.ts +31 -0
- package/build/npm/types/integrations/featureFlags/featureFlagsIntegration.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/index.d.ts +2 -0
- package/build/npm/types/integrations/featureFlags/index.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/launchdarkly/index.d.ts +2 -0
- package/build/npm/types/integrations/featureFlags/launchdarkly/index.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/launchdarkly/integration.d.ts +25 -0
- package/build/npm/types/integrations/featureFlags/launchdarkly/integration.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/launchdarkly/types.d.ts +44 -0
- package/build/npm/types/integrations/featureFlags/launchdarkly/types.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/openfeature/index.d.ts +2 -0
- package/build/npm/types/integrations/featureFlags/openfeature/index.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/openfeature/integration.d.ts +16 -0
- package/build/npm/types/integrations/featureFlags/openfeature/integration.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/openfeature/types.d.ts +86 -0
- package/build/npm/types/integrations/featureFlags/openfeature/types.d.ts.map +1 -0
- package/build/npm/types/integrations/globalhandlers.d.ts +1 -1
- package/build/npm/types/integrations/globalhandlers.d.ts.map +1 -1
- package/build/npm/types/integrations/httpclient.d.ts +1 -1
- package/build/npm/types/integrations/httpclient.d.ts.map +1 -1
- package/build/npm/types/integrations/httpcontext.d.ts +1 -1
- package/build/npm/types/integrations/httpcontext.d.ts.map +1 -1
- package/build/npm/types/integrations/linkederrors.d.ts +1 -1
- package/build/npm/types/integrations/linkederrors.d.ts.map +1 -1
- package/build/npm/types/integrations/reportingobserver.d.ts +1 -1
- package/build/npm/types/integrations/reportingobserver.d.ts.map +1 -1
- package/build/npm/types/integrations/spotlight.d.ts +2 -2
- package/build/npm/types/integrations/spotlight.d.ts.map +1 -1
- package/build/npm/types/metrics.d.ts +1 -1
- package/build/npm/types/metrics.d.ts.map +1 -1
- package/build/npm/types/profiling/integration.d.ts +1 -1
- package/build/npm/types/profiling/integration.d.ts.map +1 -1
- package/build/npm/types/profiling/startProfileForSpan.d.ts +1 -1
- package/build/npm/types/profiling/startProfileForSpan.d.ts.map +1 -1
- package/build/npm/types/profiling/utils.d.ts +1 -1
- package/build/npm/types/profiling/utils.d.ts.map +1 -1
- package/build/npm/types/sdk.d.ts +2 -2
- package/build/npm/types/sdk.d.ts.map +1 -1
- package/build/npm/types/stack-parsers.d.ts +2 -2
- package/build/npm/types/stack-parsers.d.ts.map +1 -1
- package/build/npm/types/tracing/backgroundtab.d.ts.map +1 -1
- package/build/npm/types/tracing/browserTracingIntegration.d.ts +2 -3
- package/build/npm/types/tracing/browserTracingIntegration.d.ts.map +1 -1
- package/build/npm/types/tracing/request.d.ts +1 -1
- package/build/npm/types/tracing/request.d.ts.map +1 -1
- package/build/npm/types/transports/fetch.d.ts +1 -1
- package/build/npm/types/transports/fetch.d.ts.map +1 -1
- package/build/npm/types/transports/offline.d.ts +1 -2
- package/build/npm/types/transports/offline.d.ts.map +1 -1
- package/build/npm/types/transports/types.d.ts +1 -1
- package/build/npm/types/transports/types.d.ts.map +1 -1
- package/build/npm/types/userfeedback.d.ts +1 -1
- package/build/npm/types/userfeedback.d.ts.map +1 -1
- package/build/npm/types/utils/featureFlags.d.ts +34 -0
- package/build/npm/types/utils/featureFlags.d.ts.map +1 -0
- package/build/npm/types/utils/lazyLoadIntegration.d.ts +1 -1
- package/build/npm/types/utils/lazyLoadIntegration.d.ts.map +1 -1
- package/build/npm/types-ts3.8/client.d.ts +2 -3
- package/build/npm/types-ts3.8/eventbuilder.d.ts +1 -1
- package/build/npm/types-ts3.8/exports.d.ts +1 -1
- package/build/npm/types-ts3.8/feedbackAsync.d.ts +1 -1
- package/build/npm/types-ts3.8/feedbackSync.d.ts +1 -1
- package/build/npm/types-ts3.8/helpers.d.ts +8 -12
- package/build/npm/types-ts3.8/index.d.ts +8 -4
- package/build/npm/types-ts3.8/integrations/breadcrumbs.d.ts +1 -1
- package/build/npm/types-ts3.8/integrations/browserapierrors.d.ts +1 -1
- package/build/npm/types-ts3.8/integrations/browsersession.d.ts +8 -0
- package/build/npm/types-ts3.8/integrations/contextlines.d.ts +2 -2
- package/build/npm/types-ts3.8/integrations/featureFlags/featureFlagsIntegration.d.ts +31 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/index.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/launchdarkly/index.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/launchdarkly/integration.d.ts +25 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/launchdarkly/types.d.ts +44 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/openfeature/index.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/openfeature/integration.d.ts +16 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/openfeature/types.d.ts +86 -0
- package/build/npm/types-ts3.8/integrations/globalhandlers.d.ts +1 -1
- package/build/npm/types-ts3.8/integrations/httpclient.d.ts +1 -1
- package/build/npm/types-ts3.8/integrations/httpcontext.d.ts +1 -1
- package/build/npm/types-ts3.8/integrations/linkederrors.d.ts +1 -1
- package/build/npm/types-ts3.8/integrations/reportingobserver.d.ts +1 -1
- package/build/npm/types-ts3.8/integrations/spotlight.d.ts +2 -2
- package/build/npm/types-ts3.8/metrics.d.ts +1 -1
- package/build/npm/types-ts3.8/profiling/integration.d.ts +1 -1
- package/build/npm/types-ts3.8/profiling/startProfileForSpan.d.ts +1 -1
- package/build/npm/types-ts3.8/profiling/utils.d.ts +1 -1
- package/build/npm/types-ts3.8/sdk.d.ts +2 -2
- package/build/npm/types-ts3.8/stack-parsers.d.ts +2 -2
- package/build/npm/types-ts3.8/tracing/browserTracingIntegration.d.ts +2 -3
- package/build/npm/types-ts3.8/tracing/request.d.ts +1 -1
- package/build/npm/types-ts3.8/transports/fetch.d.ts +1 -1
- package/build/npm/types-ts3.8/transports/offline.d.ts +1 -2
- package/build/npm/types-ts3.8/transports/types.d.ts +1 -1
- package/build/npm/types-ts3.8/userfeedback.d.ts +1 -1
- package/build/npm/types-ts3.8/utils/featureFlags.d.ts +34 -0
- package/build/npm/types-ts3.8/utils/lazyLoadIntegration.d.ts +1 -1
- package/package.json +7 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Client, DsnLike, Integration, Options, UserFeedback } from '@sentry/
|
|
1
|
+
import { Client, DsnLike, Integration, Options, UserFeedback } from '@sentry/core';
|
|
2
2
|
import { BrowserOptions } from './client';
|
|
3
3
|
/** Get the default integrations for the browser SDK. */
|
|
4
|
-
export declare function getDefaultIntegrations(
|
|
4
|
+
export declare function getDefaultIntegrations(options: Options): Integration[];
|
|
5
5
|
/**
|
|
6
6
|
* The Sentry Browser SDK Client.
|
|
7
7
|
*
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { StackLineParser } from '@sentry/
|
|
1
|
+
import { StackLineParser } from '@sentry/core';
|
|
2
2
|
export declare const chromeStackLineParser: StackLineParser;
|
|
3
3
|
export declare const geckoStackLineParser: StackLineParser;
|
|
4
4
|
export declare const winjsStackLineParser: StackLineParser;
|
|
5
5
|
export declare const opera10StackLineParser: StackLineParser;
|
|
6
6
|
export declare const opera11StackLineParser: StackLineParser;
|
|
7
7
|
export declare const defaultStackLineParsers: StackLineParser[];
|
|
8
|
-
export declare const defaultStackParser: import("@sentry/
|
|
8
|
+
export declare const defaultStackParser: import("@sentry/core").StackParser;
|
|
9
9
|
//# sourceMappingURL=stack-parsers.d.ts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Client, StartSpanOptions } from '@sentry/
|
|
2
|
-
import { Span } from '@sentry/types';
|
|
1
|
+
import { Client, Span, StartSpanOptions } from '@sentry/core';
|
|
3
2
|
export declare const BROWSER_TRACING_INTEGRATION_ID = "BrowserTracing";
|
|
4
3
|
/** Options for Browser Tracing integration */
|
|
5
4
|
export interface BrowserTracingOptions {
|
|
@@ -120,7 +119,7 @@ export interface BrowserTracingOptions {
|
|
|
120
119
|
*/
|
|
121
120
|
export declare const browserTracingIntegration: (_options?: Partial<BrowserTracingOptions>) => {
|
|
122
121
|
name: string;
|
|
123
|
-
afterAllSetup(client: Client<import("@sentry/
|
|
122
|
+
afterAllSetup(client: Client<import("@sentry/core").ClientOptions<import("@sentry/core").BaseTransportOptions>>): void;
|
|
124
123
|
};
|
|
125
124
|
/**
|
|
126
125
|
* Manually start a page load span.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { OfflineTransportOptions } from '@sentry/core';
|
|
2
|
-
import { BaseTransportOptions, Transport } from '@sentry/types';
|
|
1
|
+
import { BaseTransportOptions, OfflineTransportOptions, Transport } from '@sentry/core';
|
|
3
2
|
type Store = <T>(callback: (store: IDBObjectStore) => T | PromiseLike<T>) => Promise<T>;
|
|
4
3
|
/** Create or open an IndexedDb store */
|
|
5
4
|
export declare function createStore(dbName: string, storeName: string): Store;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseTransportOptions } from '@sentry/
|
|
1
|
+
import { BaseTransportOptions } from '@sentry/core';
|
|
2
2
|
export interface BrowserTransportOptions extends BaseTransportOptions {
|
|
3
3
|
/** Fetch API init parameters. Used by the FetchTransport */
|
|
4
4
|
fetchOptions?: RequestInit;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Event, FeatureFlag } from '@sentry/core';
|
|
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. Currently only accepts boolean values (otherwise no-op).
|
|
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.
|
|
3
|
+
"version": "8.43.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,15 +39,14 @@
|
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@sentry-internal/browser-utils": "8.
|
|
43
|
-
"@sentry-internal/feedback": "8.
|
|
44
|
-
"@sentry-internal/replay": "8.
|
|
45
|
-
"@sentry-internal/replay-canvas": "8.
|
|
46
|
-
"@sentry/core": "8.
|
|
47
|
-
"@sentry/types": "8.41.0"
|
|
42
|
+
"@sentry-internal/browser-utils": "8.43.0",
|
|
43
|
+
"@sentry-internal/feedback": "8.43.0",
|
|
44
|
+
"@sentry-internal/replay": "8.43.0",
|
|
45
|
+
"@sentry-internal/replay-canvas": "8.43.0",
|
|
46
|
+
"@sentry/core": "8.43.0"
|
|
48
47
|
},
|
|
49
48
|
"devDependencies": {
|
|
50
|
-
"@sentry-internal/integration-shims": "8.
|
|
49
|
+
"@sentry-internal/integration-shims": "8.43.0",
|
|
51
50
|
"fake-indexeddb": "^4.0.1"
|
|
52
51
|
},
|
|
53
52
|
"scripts": {
|