Skip to content

Commit 8f89b69

Browse files
committed
fix: Replace outdated sentry/minimal with newer sentry/core
1 parent dd6b663 commit 8f89b69

File tree

4 files changed

+50
-103
lines changed

4 files changed

+50
-103
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ Upload abort throws an `FilestackError` with type `FilestackErrorType.ABORTED`
234234

235235
## Sentry Integration
236236

237-
If you're using [Sentry](https://sentry.io/welcome/) to monitor your application, Filestack will automatically report upload errors to Sentry, and tag them with helpful diagnostic information via [`@sentry/minimal`](https://github.com/getsentry/sentry-javascript/tree/master/packages/minimal).
237+
If you're using [Sentry](https://sentry.io/welcome/) to monitor your application, Filestack will automatically report upload errors to Sentry, and tag them with helpful diagnostic information via [`@sentry/core`](https://github.com/getsentry/sentry-javascript/tree/master/packages/core).
238238

239239
## Versioning
240240

package-lock.json

Lines changed: 38 additions & 99 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"dependencies": {
4444
"@babel/runtime": "^7.8.4",
4545
"@filestack/loader": "^1.0.9",
46-
"@sentry/minimal": "^6.19.7",
46+
"@sentry/core": "^8.9.1",
4747
"abab": "^2.0.6",
4848
"debug": "^4.3.4",
4949
"eventemitter3": "^5.0.0",

src/lib/client.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717

1818
import { EventEmitter } from 'eventemitter3';
19-
import * as Sentry from '@sentry/minimal';
19+
import * as Sentry from '@sentry/core';
2020
import { config, Hosts } from '../config';
2121
import { FilestackError } from './../filestack_error';
2222
import { metadata, MetadataOptions, remove, retrieve, RetrieveOptions, download } from './api/file';
@@ -305,7 +305,15 @@ export class Client extends EventEmitter {
305305
* @param headers Optional headers to send
306306
* @param workflowIds Optional workflowIds to send
307307
*/
308-
storeURL(url: string, storeParams?: StoreParams, token?: any, security?: Security, uploadTags?: UploadTags, headers?: {[key: string]: string}, workflowIds?: string[]): Promise<Object> {
308+
storeURL(
309+
url: string,
310+
storeParams?: StoreParams,
311+
token?: any,
312+
security?: Security,
313+
uploadTags?: UploadTags,
314+
headers?: { [key: string]: string },
315+
workflowIds?: string[]
316+
): Promise<Object> {
309317
return storeURL({
310318
session: this.session,
311319
url,

0 commit comments

Comments
 (0)