@sentry/vercel-edge
Advanced tools
Comparing version 8.0.0-alpha.2 to 8.0.0-alpha.3
@@ -8,8 +8,4 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
/** @deprecated Import the integration function directly, e.g. `inboundFiltersIntegration()` instead of `new Integrations.InboundFilter(). */ | ||
const Integrations = { | ||
WinterCGFetch: wintercgFetch.WinterCGFetch, | ||
RequestData: core.RequestData, | ||
}; | ||
exports.Hub = core.Hub; | ||
@@ -24,3 +20,2 @@ exports.SDK_VERSION = core.SDK_VERSION; | ||
exports.addEventProcessor = core.addEventProcessor; | ||
exports.addGlobalEventProcessor = core.addGlobalEventProcessor; | ||
exports.addIntegration = core.addIntegration; | ||
@@ -37,8 +32,8 @@ exports.captureCheckIn = core.captureCheckIn; | ||
exports.getActiveSpan = core.getActiveSpan; | ||
exports.getActiveTransaction = core.getActiveTransaction; | ||
exports.getClient = core.getClient; | ||
exports.getCurrentHub = core.getCurrentHub; | ||
exports.getCurrentScope = core.getCurrentScope; | ||
exports.getGlobalScope = core.getGlobalScope; | ||
exports.getIsolationScope = core.getIsolationScope; | ||
exports.getRootSpan = core.getRootSpan; | ||
exports.getSpanDescendants = core.getSpanDescendants; | ||
exports.getSpanStatusFromHttpCode = core.getSpanStatusFromHttpCode; | ||
@@ -48,3 +43,2 @@ exports.inboundFiltersIntegration = core.inboundFiltersIntegration; | ||
exports.linkedErrorsIntegration = core.linkedErrorsIntegration; | ||
exports.makeMain = core.makeMain; | ||
exports.metrics = core.metrics; | ||
@@ -64,3 +58,2 @@ exports.requestDataIntegration = core.requestDataIntegration; | ||
exports.startSpanManual = core.startSpanManual; | ||
exports.startTransaction = core.startTransaction; | ||
exports.withActiveSpan = core.withActiveSpan; | ||
@@ -74,3 +67,2 @@ exports.withIsolationScope = core.withIsolationScope; | ||
exports.winterCGFetchIntegration = wintercgFetch.winterCGFetchIntegration; | ||
exports.Integrations = Integrations; | ||
//# sourceMappingURL=index.js.map |
Object.defineProperty(exports, '__esModule', { value: true }); | ||
const tracing = require('@sentry-internal/tracing'); | ||
const core = require('@sentry/core'); | ||
@@ -73,3 +72,3 @@ const utils = require('@sentry/utils'); | ||
tracing.instrumentFetchRequest( | ||
core.instrumentFetchRequest( | ||
handlerData, | ||
@@ -93,19 +92,7 @@ _shouldCreateSpan, | ||
const winterCGFetchIntegration = core.defineIntegration(_winterCGFetch); | ||
/** | ||
* Creates spans and attaches tracing headers to fetch requests on WinterCG runtimes. | ||
* | ||
* @deprecated Use `winterCGFetchIntegration()` instead. | ||
*/ | ||
// eslint-disable-next-line deprecation/deprecation | ||
const WinterCGFetch = core.convertIntegrationFnToClass( | ||
INTEGRATION_NAME, | ||
winterCGFetchIntegration, | ||
) | ||
const winterCGFetchIntegration = core.defineIntegration(_winterCGFetch); | ||
; | ||
// eslint-disable-next-line deprecation/deprecation | ||
function createBreadcrumb(handlerData) { | ||
@@ -159,4 +146,3 @@ const { startTimestamp, endTimestamp } = handlerData; | ||
exports.WinterCGFetch = WinterCGFetch; | ||
exports.winterCGFetchIntegration = winterCGFetchIntegration; | ||
//# sourceMappingURL=wintercg-fetch.js.map |
@@ -1,15 +0,5 @@ | ||
import { RequestData } from '@sentry/core'; | ||
export { Hub, SDK_VERSION, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, Scope, addBreadcrumb, addEventProcessor, addGlobalEventProcessor, addIntegration, captureCheckIn, captureEvent, captureException, captureMessage, close, continueTrace, createTransport, flush, functionToStringIntegration, getActiveSpan, getActiveTransaction, getClient, getCurrentHub, getCurrentScope, getGlobalScope, getIsolationScope, getSpanStatusFromHttpCode, inboundFiltersIntegration, isInitialized, linkedErrorsIntegration, makeMain, metrics, requestDataIntegration, setContext, setCurrentClient, setExtra, setExtras, setHttpStatus, setMeasurement, setTag, setTags, setUser, startInactiveSpan, startSpan, startSpanManual, startTransaction, withActiveSpan, withIsolationScope, withMonitor, withScope } from '@sentry/core'; | ||
export { Hub, SDK_VERSION, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, Scope, addBreadcrumb, addEventProcessor, addIntegration, captureCheckIn, captureEvent, captureException, captureMessage, close, continueTrace, createTransport, flush, functionToStringIntegration, getActiveSpan, getClient, getCurrentScope, getGlobalScope, getIsolationScope, getRootSpan, getSpanDescendants, getSpanStatusFromHttpCode, inboundFiltersIntegration, isInitialized, linkedErrorsIntegration, metrics, requestDataIntegration, setContext, setCurrentClient, setExtra, setExtras, setHttpStatus, setMeasurement, setTag, setTags, setUser, startInactiveSpan, startSpan, startSpanManual, withActiveSpan, withIsolationScope, withMonitor, withScope } from '@sentry/core'; | ||
export { VercelEdgeClient } from './client.js'; | ||
export { getDefaultIntegrations, init } from './sdk.js'; | ||
import { WinterCGFetch } from './integrations/wintercg-fetch.js'; | ||
export { winterCGFetchIntegration } from './integrations/wintercg-fetch.js'; | ||
/** @deprecated Import the integration function directly, e.g. `inboundFiltersIntegration()` instead of `new Integrations.InboundFilter(). */ | ||
const Integrations = { | ||
WinterCGFetch, | ||
RequestData, | ||
}; | ||
export { Integrations }; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,2 @@ | ||
import { instrumentFetchRequest } from '@sentry-internal/tracing'; | ||
import { defineIntegration, convertIntegrationFnToClass, getClient, isSentryRequestUrl, addBreadcrumb } from '@sentry/core'; | ||
import { defineIntegration, getClient, isSentryRequestUrl, instrumentFetchRequest, addBreadcrumb } from '@sentry/core'; | ||
import { LRUMap, addFetchInstrumentationHandler, stringMatchesSomePattern } from '@sentry/utils'; | ||
@@ -90,19 +89,7 @@ | ||
const winterCGFetchIntegration = defineIntegration(_winterCGFetch); | ||
/** | ||
* Creates spans and attaches tracing headers to fetch requests on WinterCG runtimes. | ||
* | ||
* @deprecated Use `winterCGFetchIntegration()` instead. | ||
*/ | ||
// eslint-disable-next-line deprecation/deprecation | ||
const WinterCGFetch = convertIntegrationFnToClass( | ||
INTEGRATION_NAME, | ||
winterCGFetchIntegration, | ||
) | ||
const winterCGFetchIntegration = defineIntegration(_winterCGFetch); | ||
; | ||
// eslint-disable-next-line deprecation/deprecation | ||
function createBreadcrumb(handlerData) { | ||
@@ -156,3 +143,3 @@ const { startTimestamp, endTimestamp } = handlerData; | ||
export { WinterCGFetch, winterCGFetchIntegration }; | ||
export { winterCGFetchIntegration }; | ||
//# sourceMappingURL=wintercg-fetch.js.map |
{ | ||
"name": "@sentry/vercel-edge", | ||
"version": "8.0.0-alpha.2", | ||
"version": "8.0.0-alpha.3", | ||
"description": "Offical Sentry SDK for the Vercel Edge Runtime", | ||
@@ -10,3 +10,3 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"engines": { | ||
"node": ">=14.8" | ||
"node": ">=14.18" | ||
}, | ||
@@ -22,2 +22,15 @@ "files": [ | ||
"types": "types/index.d.ts", | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": { | ||
"import": { | ||
"types": "./types/index.d.ts", | ||
"default": "./esm/index.js" | ||
}, | ||
"require": { | ||
"types": "./types/index.d.ts", | ||
"default": "./cjs/index.js" | ||
} | ||
} | ||
}, | ||
"typesVersions": { | ||
@@ -34,6 +47,5 @@ "<4.9": { | ||
"dependencies": { | ||
"@sentry-internal/tracing": "8.0.0-alpha.2", | ||
"@sentry/core": "8.0.0-alpha.2", | ||
"@sentry/types": "8.0.0-alpha.2", | ||
"@sentry/utils": "8.0.0-alpha.2" | ||
"@sentry/core": "8.0.0-alpha.3", | ||
"@sentry/types": "8.0.0-alpha.3", | ||
"@sentry/utils": "8.0.0-alpha.3" | ||
}, | ||
@@ -40,0 +52,0 @@ "devDependencies": { |
export { Breadcrumb, BreadcrumbHint, PolymorphicRequest, Request, SdkInfo, Event, EventHint, Exception, Session, SeverityLevel, Span, StackFrame, Stacktrace, Thread, Transaction, User, } from '@sentry/types'; | ||
export { AddRequestDataToEventOptions } from '@sentry/utils'; | ||
export { VercelEdgeOptions } from './types'; | ||
export { addGlobalEventProcessor, addEventProcessor, addBreadcrumb, addIntegration, captureException, captureEvent, captureMessage, close, createTransport, flush, getActiveTransaction, getCurrentHub, getClient, isInitialized, getCurrentScope, getGlobalScope, getIsolationScope, Hub, makeMain, setCurrentClient, Scope, startTransaction, SDK_VERSION, setContext, setExtra, setExtras, setTag, setTags, setUser, getSpanStatusFromHttpCode, setHttpStatus, withScope, withIsolationScope, captureCheckIn, withMonitor, setMeasurement, getActiveSpan, startSpan, startInactiveSpan, startSpanManual, withActiveSpan, continueTrace, metrics, functionToStringIntegration, inboundFiltersIntegration, linkedErrorsIntegration, requestDataIntegration, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, } from '@sentry/core'; | ||
export { addEventProcessor, addBreadcrumb, addIntegration, captureException, captureEvent, captureMessage, close, createTransport, flush, getClient, isInitialized, getCurrentScope, getGlobalScope, getIsolationScope, Hub, setCurrentClient, Scope, SDK_VERSION, setContext, setExtra, setExtras, setTag, setTags, setUser, getSpanStatusFromHttpCode, setHttpStatus, withScope, withIsolationScope, captureCheckIn, withMonitor, setMeasurement, getActiveSpan, getRootSpan, startSpan, startInactiveSpan, startSpanManual, withActiveSpan, getSpanDescendants, continueTrace, metrics, functionToStringIntegration, inboundFiltersIntegration, linkedErrorsIntegration, requestDataIntegration, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, } from '@sentry/core'; | ||
export { VercelEdgeClient } from './client'; | ||
export { getDefaultIntegrations, init, } from './sdk'; | ||
export { winterCGFetchIntegration } from './integrations/wintercg-fetch'; | ||
/** @deprecated Import the integration function directly, e.g. `inboundFiltersIntegration()` instead of `new Integrations.InboundFilter(). */ | ||
export declare const Integrations: { | ||
WinterCGFetch: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & { | ||
setupOnce: () => void; | ||
}> & (new (options?: Partial<import("./integrations/wintercg-fetch").Options> | undefined) => import("@sentry/types").Integration); | ||
RequestData: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & { | ||
processEvent: (event: import("@sentry/types").Event, hint: import("@sentry/types").EventHint, client: import("@sentry/types").Client<import("@sentry/types").ClientOptions<import("@sentry/types").BaseTransportOptions>>) => import("@sentry/types").Event; | ||
}> & (new (options?: { | ||
include?: { | ||
cookies?: boolean | undefined; | ||
data?: boolean | undefined; | ||
headers?: boolean | undefined; | ||
ip?: boolean | undefined; | ||
query_string?: boolean | undefined; | ||
url?: boolean | undefined; | ||
user?: boolean | { | ||
id?: boolean | undefined; | ||
username?: boolean | undefined; | ||
email?: boolean | undefined; | ||
} | undefined; | ||
} | undefined; | ||
transactionNamingScheme?: import("@sentry/utils").TransactionNamingScheme | undefined; | ||
} | undefined) => import("@sentry/types").Integration); | ||
}; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,2 +0,1 @@ | ||
import { Integration, IntegrationClass } from '@sentry/types'; | ||
export interface Options { | ||
@@ -14,12 +13,6 @@ /** | ||
} | ||
export declare const winterCGFetchIntegration: (options?: Partial<Options> | undefined) => import("@sentry/types").IntegrationFnResult; | ||
/** | ||
* Creates spans and attaches tracing headers to fetch requests on WinterCG runtimes. | ||
* | ||
* @deprecated Use `winterCGFetchIntegration()` instead. | ||
*/ | ||
export declare const WinterCGFetch: IntegrationClass<Integration & { | ||
setupOnce: () => void; | ||
}> & (new (options?: Partial<Options>) => Integration); | ||
export type WinterCGFetch = typeof WinterCGFetch; | ||
export declare const winterCGFetchIntegration: (options?: Partial<Options> | undefined) => import("@sentry/types").IntegrationFnResult; | ||
//# sourceMappingURL=wintercg-fetch.d.ts.map |
export type { Breadcrumb, BreadcrumbHint, PolymorphicRequest, Request, SdkInfo, Event, EventHint, Exception, Session, SeverityLevel, Span, StackFrame, Stacktrace, Thread, Transaction, User, } from '@sentry/types'; | ||
export type { AddRequestDataToEventOptions } from '@sentry/utils'; | ||
export type { VercelEdgeOptions } from './types'; | ||
export { addGlobalEventProcessor, addEventProcessor, addBreadcrumb, addIntegration, captureException, captureEvent, captureMessage, close, createTransport, flush, getActiveTransaction, getCurrentHub, getClient, isInitialized, getCurrentScope, getGlobalScope, getIsolationScope, Hub, makeMain, setCurrentClient, Scope, startTransaction, SDK_VERSION, setContext, setExtra, setExtras, setTag, setTags, setUser, getSpanStatusFromHttpCode, setHttpStatus, withScope, withIsolationScope, captureCheckIn, withMonitor, setMeasurement, getActiveSpan, startSpan, startInactiveSpan, startSpanManual, withActiveSpan, continueTrace, metrics, functionToStringIntegration, inboundFiltersIntegration, linkedErrorsIntegration, requestDataIntegration, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, } from '@sentry/core'; | ||
export { addEventProcessor, addBreadcrumb, addIntegration, captureException, captureEvent, captureMessage, close, createTransport, flush, getClient, isInitialized, getCurrentScope, getGlobalScope, getIsolationScope, Hub, setCurrentClient, Scope, SDK_VERSION, setContext, setExtra, setExtras, setTag, setTags, setUser, getSpanStatusFromHttpCode, setHttpStatus, withScope, withIsolationScope, captureCheckIn, withMonitor, setMeasurement, getActiveSpan, getRootSpan, startSpan, startInactiveSpan, startSpanManual, withActiveSpan, getSpanDescendants, continueTrace, metrics, functionToStringIntegration, inboundFiltersIntegration, linkedErrorsIntegration, requestDataIntegration, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, } from '@sentry/core'; | ||
export { VercelEdgeClient } from './client'; | ||
export { getDefaultIntegrations, init, } from './sdk'; | ||
export { winterCGFetchIntegration } from './integrations/wintercg-fetch'; | ||
/** @deprecated Import the integration function directly, e.g. `inboundFiltersIntegration()` instead of `new Integrations.InboundFilter(). */ | ||
export declare const Integrations: { | ||
WinterCGFetch: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & { | ||
setupOnce: () => void; | ||
}> & (new (options?: Partial<import("./integrations/wintercg-fetch").Options> | undefined) => import("@sentry/types").Integration); | ||
RequestData: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & { | ||
processEvent: (event: import("@sentry/types").Event, hint: import("@sentry/types").EventHint, client: import("@sentry/types").Client<import("@sentry/types").ClientOptions<import("@sentry/types").BaseTransportOptions>>) => import("@sentry/types").Event; | ||
}> & (new (options?: { | ||
include?: { | ||
cookies?: boolean | undefined; | ||
data?: boolean | undefined; | ||
headers?: boolean | undefined; | ||
ip?: boolean | undefined; | ||
query_string?: boolean | undefined; | ||
url?: boolean | undefined; | ||
user?: boolean | { | ||
id?: boolean | undefined; | ||
username?: boolean | undefined; | ||
email?: boolean | undefined; | ||
} | undefined; | ||
} | undefined; | ||
transactionNamingScheme?: import("@sentry/utils").TransactionNamingScheme | undefined; | ||
} | undefined) => import("@sentry/types").Integration); | ||
}; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,2 +0,1 @@ | ||
import type { Integration, IntegrationClass } from '@sentry/types'; | ||
export interface Options { | ||
@@ -14,12 +13,6 @@ /** | ||
} | ||
export declare const winterCGFetchIntegration: (options?: Partial<Options> | undefined) => import("@sentry/types").IntegrationFnResult; | ||
/** | ||
* Creates spans and attaches tracing headers to fetch requests on WinterCG runtimes. | ||
* | ||
* @deprecated Use `winterCGFetchIntegration()` instead. | ||
*/ | ||
export declare const WinterCGFetch: IntegrationClass<Integration & { | ||
setupOnce: () => void; | ||
}> & (new (options?: Partial<Options>) => Integration); | ||
export type WinterCGFetch = typeof WinterCGFetch; | ||
export declare const winterCGFetchIntegration: (options?: Partial<Options> | undefined) => import("@sentry/types").IntegrationFnResult; | ||
//# sourceMappingURL=wintercg-fetch.d.ts.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3
66
120423
1264
+ Added@sentry/core@8.0.0-alpha.3(transitive)
+ Added@sentry/types@8.0.0-alpha.3(transitive)
+ Added@sentry/utils@8.0.0-alpha.3(transitive)
- Removed@sentry-internal/tracing@8.0.0-alpha.2(transitive)
- Removed@sentry/core@8.0.0-alpha.2(transitive)
- Removed@sentry/types@8.0.0-alpha.2(transitive)
- Removed@sentry/utils@8.0.0-alpha.2(transitive)
Updated@sentry/core@8.0.0-alpha.3
Updated@sentry/types@8.0.0-alpha.3
Updated@sentry/utils@8.0.0-alpha.3