Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/integrations/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export { CaptureConsole } from './captureconsole';
export { Debug } from './debug';
export { Dedupe } from './dedupe';
export { ExtraErrorData } from './extraerrordata';
// eslint-disable-next-line deprecation/deprecation
export { Offline } from './offline';
export { ReportingObserver } from './reportingobserver';
export { RewriteFrames } from './rewriteframes';
Expand Down
4 changes: 4 additions & 0 deletions packages/integrations/src/offline.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable deprecation/deprecation */
import type { Event, EventProcessor, Hub, Integration } from '@sentry/types';
import { GLOBAL_OBJ, logger, normalize, uuid4 } from '@sentry/utils';
import localForage from 'localforage';
Expand All @@ -20,6 +21,9 @@ export type Item = { key: string; value: Event };

/**
* cache offline errors and send when connected
* @deprecated The offline integration has been deprecated in favor of the offline transport wrapper.
*
* http://docs.sentry.io/platforms/javascript/configuration/transports/#offline-caching
*/
export class Offline implements Integration {
/**
Expand Down
1 change: 1 addition & 0 deletions packages/integrations/test/offline.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable deprecation/deprecation */
import { WINDOW } from '@sentry/browser';
import type { Event, EventProcessor, Hub, Integration, IntegrationClass } from '@sentry/types';

Expand Down