Skip to content

Commit 68655e3

Browse files
authored
feat(integrations): Deprecate Offline integration (#7063)
1 parent 5c4af0c commit 68655e3

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

packages/integrations/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ export { CaptureConsole } from './captureconsole';
22
export { Debug } from './debug';
33
export { Dedupe } from './dedupe';
44
export { ExtraErrorData } from './extraerrordata';
5+
// eslint-disable-next-line deprecation/deprecation
56
export { Offline } from './offline';
67
export { ReportingObserver } from './reportingobserver';
78
export { RewriteFrames } from './rewriteframes';

packages/integrations/src/offline.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* eslint-disable @typescript-eslint/no-explicit-any */
22
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
3+
/* eslint-disable deprecation/deprecation */
34
import type { Event, EventProcessor, Hub, Integration } from '@sentry/types';
45
import { GLOBAL_OBJ, logger, normalize, uuid4 } from '@sentry/utils';
56
import localForage from 'localforage';
@@ -20,6 +21,9 @@ export type Item = { key: string; value: Event };
2021

2122
/**
2223
* cache offline errors and send when connected
24+
* @deprecated The offline integration has been deprecated in favor of the offline transport wrapper.
25+
*
26+
* http://docs.sentry.io/platforms/javascript/configuration/transports/#offline-caching
2327
*/
2428
export class Offline implements Integration {
2529
/**

packages/integrations/test/offline.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable deprecation/deprecation */
12
import { WINDOW } from '@sentry/browser';
23
import type { Event, EventProcessor, Hub, Integration, IntegrationClass } from '@sentry/types';
34

0 commit comments

Comments
 (0)