Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d1ddb53

Browse files
authoredApr 24, 2025
ref(core): Remove internal types-hoist re-export (#16116)
We can get rid of this barrel file.
1 parent 2e5f6b6 commit d1ddb53

File tree

129 files changed

+552
-537
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+552
-537
lines changed
 

‎packages/core/src/fetch.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import { getClient } from './currentScopes';
22
import { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from './semanticAttributes';
33
import { SPAN_STATUS_ERROR, setHttpStatus, startInactiveSpan } from './tracing';
44
import { SentryNonRecordingSpan } from './tracing/sentryNonRecordingSpan';
5-
import type { FetchBreadcrumbHint, HandlerDataFetch, Span, SpanAttributes, SpanOrigin } from './types-hoist';
5+
import type { FetchBreadcrumbHint } from './types-hoist/breadcrumb';
6+
import type { HandlerDataFetch } from './types-hoist/instrument';
7+
import type { Span, SpanAttributes, SpanOrigin } from './types-hoist/span';
68
import { SENTRY_BAGGAGE_KEY_PREFIX } from './utils-hoist/baggage';
79
import { isInstanceOf, isRequest } from './utils-hoist/is';
810
import { getSanitizedUrlStringFromUrlObject, isURLObjectRelative, parseStringToURLObject } from './utils-hoist/url';

‎packages/core/src/index.ts

+174-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint-disable max-lines */
2+
13
export type { ClientClass as SentryCoreCurrentScopes } from './sdk';
24
export type { AsyncContextStrategy } from './asyncContext/types';
35
export type { Carrier } from './carrier';
@@ -120,9 +122,6 @@ export type { ReportDialogOptions } from './report-dialog';
120122
export { _INTERNAL_captureLog, _INTERNAL_flushLogsBuffer } from './logs/exports';
121123
export { consoleLoggingIntegration } from './logs/console-integration';
122124

123-
// TODO: Make this structure pretty again and don't do "export *"
124-
export * from './types-hoist/index';
125-
126125
export type { FeatureFlag } from './featureFlags';
127126

128127
export { applyAggregateErrorsToEvent } from './utils-hoist/aggregate-errors';
@@ -272,3 +271,175 @@ export { vercelWaitUntil } from './utils-hoist/vercelWaitUntil';
272271
export { SDK_VERSION } from './utils-hoist/version';
273272
export { getDebugImagesForResources, getFilenameToDebugIdMap } from './utils-hoist/debug-ids';
274273
export { escapeStringForRegex } from './utils-hoist/vendor/escapeStringForRegex';
274+
275+
export type { Attachment } from './types-hoist/attachment';
276+
export type {
277+
Breadcrumb,
278+
BreadcrumbHint,
279+
FetchBreadcrumbData,
280+
XhrBreadcrumbData,
281+
FetchBreadcrumbHint,
282+
XhrBreadcrumbHint,
283+
} from './types-hoist/breadcrumb';
284+
export type { ClientReport, Outcome, EventDropReason } from './types-hoist/clientreport';
285+
export type {
286+
Context,
287+
Contexts,
288+
DeviceContext,
289+
OsContext,
290+
AppContext,
291+
CultureContext,
292+
TraceContext,
293+
CloudResourceContext,
294+
MissingInstrumentationContext,
295+
} from './types-hoist/context';
296+
export type { DataCategory } from './types-hoist/datacategory';
297+
export type { DsnComponents, DsnLike, DsnProtocol } from './types-hoist/dsn';
298+
export type { DebugImage, DebugMeta } from './types-hoist/debugMeta';
299+
export type {
300+
AttachmentItem,
301+
BaseEnvelopeHeaders,
302+
BaseEnvelopeItemHeaders,
303+
ClientReportEnvelope,
304+
ClientReportItem,
305+
DynamicSamplingContext,
306+
Envelope,
307+
EnvelopeItemType,
308+
EnvelopeItem,
309+
EventEnvelope,
310+
EventEnvelopeHeaders,
311+
EventItem,
312+
ReplayEnvelope,
313+
FeedbackItem,
314+
SessionEnvelope,
315+
SessionItem,
316+
UserFeedbackItem,
317+
CheckInItem,
318+
CheckInEnvelope,
319+
RawSecurityEnvelope,
320+
RawSecurityItem,
321+
ProfileItem,
322+
ProfileChunkEnvelope,
323+
ProfileChunkItem,
324+
SpanEnvelope,
325+
SpanItem,
326+
OtelLogEnvelope,
327+
OtelLogItem,
328+
} from './types-hoist/envelope';
329+
export type { ExtendedError } from './types-hoist/error';
330+
export type { Event, EventHint, EventType, ErrorEvent, TransactionEvent } from './types-hoist/event';
331+
export type { EventProcessor } from './types-hoist/eventprocessor';
332+
export type { Exception } from './types-hoist/exception';
333+
export type { Extra, Extras } from './types-hoist/extra';
334+
export type { Integration, IntegrationFn } from './types-hoist/integration';
335+
export type { Mechanism } from './types-hoist/mechanism';
336+
export type { ExtractedNodeRequestData, HttpHeaderValue, Primitive, WorkerLocation } from './types-hoist/misc';
337+
export type { ClientOptions, Options } from './types-hoist/options';
338+
export type { Package } from './types-hoist/package';
339+
export type { PolymorphicEvent, PolymorphicRequest } from './types-hoist/polymorphics';
340+
export type {
341+
ThreadId,
342+
FrameId,
343+
StackId,
344+
ThreadCpuSample,
345+
ThreadCpuStack,
346+
ThreadCpuFrame,
347+
ThreadCpuProfile,
348+
ContinuousThreadCpuProfile,
349+
Profile,
350+
ProfileChunk,
351+
} from './types-hoist/profiling';
352+
export type { ReplayEvent, ReplayRecordingData, ReplayRecordingMode } from './types-hoist/replay';
353+
export type {
354+
FeedbackEvent,
355+
FeedbackFormData,
356+
FeedbackInternalOptions,
357+
FeedbackModalIntegration,
358+
FeedbackScreenshotIntegration,
359+
SendFeedback,
360+
SendFeedbackParams,
361+
UserFeedback,
362+
} from './types-hoist/feedback';
363+
export type { QueryParams, RequestEventData, SanitizedRequestData } from './types-hoist/request';
364+
export type { Runtime } from './types-hoist/runtime';
365+
export type { SdkInfo } from './types-hoist/sdkinfo';
366+
export type { SdkMetadata } from './types-hoist/sdkmetadata';
367+
export type {
368+
SessionAggregates,
369+
AggregationCounts,
370+
Session,
371+
SessionContext,
372+
SessionStatus,
373+
SerializedSession,
374+
} from './types-hoist/session';
375+
export type { SeverityLevel } from './types-hoist/severity';
376+
export type {
377+
Span,
378+
SentrySpanArguments,
379+
SpanOrigin,
380+
SpanAttributeValue,
381+
SpanAttributes,
382+
SpanTimeInput,
383+
SpanJSON,
384+
SpanContextData,
385+
TraceFlag,
386+
} from './types-hoist/span';
387+
export type { SpanStatus } from './types-hoist/spanStatus';
388+
export type {
389+
Log,
390+
LogSeverityLevel,
391+
SerializedOtelLog,
392+
SerializedLogAttribute,
393+
SerializedLogAttributeValueType,
394+
} from './types-hoist/log';
395+
export type { TimedEvent } from './types-hoist/timedEvent';
396+
export type { StackFrame } from './types-hoist/stackframe';
397+
export type { Stacktrace, StackParser, StackLineParser, StackLineParserFn } from './types-hoist/stacktrace';
398+
export type { PropagationContext, TracePropagationTargets, SerializedTraceData } from './types-hoist/tracing';
399+
export type { StartSpanOptions } from './types-hoist/startSpanOptions';
400+
export type { TraceparentData, TransactionSource } from './types-hoist/transaction';
401+
export type { CustomSamplingContext, SamplingContext } from './types-hoist/samplingcontext';
402+
export type {
403+
DurationUnit,
404+
InformationUnit,
405+
FractionUnit,
406+
MeasurementUnit,
407+
NoneUnit,
408+
Measurements,
409+
} from './types-hoist/measurement';
410+
export type { Thread } from './types-hoist/thread';
411+
export type {
412+
Transport,
413+
TransportRequest,
414+
TransportMakeRequestResponse,
415+
InternalBaseTransportOptions,
416+
BaseTransportOptions,
417+
TransportRequestExecutor,
418+
} from './types-hoist/transport';
419+
export type { User } from './types-hoist/user';
420+
export type { WebFetchHeaders, WebFetchRequest } from './types-hoist/webfetchapi';
421+
export type { WrappedFunction } from './types-hoist/wrappedfunction';
422+
export type {
423+
HandlerDataFetch,
424+
HandlerDataXhr,
425+
HandlerDataDom,
426+
HandlerDataConsole,
427+
HandlerDataHistory,
428+
HandlerDataError,
429+
HandlerDataUnhandledRejection,
430+
ConsoleLevel,
431+
SentryXhrData,
432+
SentryWrappedXMLHttpRequest,
433+
} from './types-hoist/instrument';
434+
export type { BrowserClientReplayOptions, BrowserClientProfilingOptions } from './types-hoist/browseroptions';
435+
export type {
436+
CheckIn,
437+
MonitorConfig,
438+
FinishedCheckIn,
439+
InProgressCheckIn,
440+
SerializedCheckIn,
441+
} from './types-hoist/checkin';
442+
export type { ParameterizedString } from './types-hoist/parameterize';
443+
export type { ContinuousProfiler, ProfilingIntegration, Profiler } from './types-hoist/profiling';
444+
export type { ViewHierarchyData, ViewHierarchyWindow } from './types-hoist/view-hierarchy';
445+
export type { LegacyCSPReport } from './types-hoist/csp';

‎packages/core/src/integration.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import type { Client } from './client';
22
import { getClient } from './currentScopes';
33
import { DEBUG_BUILD } from './debug-build';
4-
import type { Event, EventHint, Integration, IntegrationFn, Options } from './types-hoist';
4+
import type { Event, EventHint } from './types-hoist/event';
5+
import type { Integration, IntegrationFn } from './types-hoist/integration';
6+
import type { Options } from './types-hoist/options';
57
import { logger } from './utils-hoist/logger';
68

79
export const installedIntegrations: string[] = [];
There was a problem loading the remainder of the diff.

0 commit comments

Comments
 (0)
Failed to load comments.