Skip to content

Commit b1e9a7a

Browse files
[HGI 404] update pinned version of sentry to 7.45.0 (#741)
* HGI-404 version upgraded of sentry from 5.12.1 to 7.45.0 * HGI-404 change cdn settings * Package version change for sentry * version updated and worked on PR changes --------- Co-authored-by: Ankit Gupta <[email protected]>
1 parent da03368 commit b1e9a7a

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

Diff for: integrations/sentry/lib/index.js

+4-7
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,22 @@ var Sentry = (module.exports = integration('Sentry')
1616
.global('Sentry')
1717
.option('config', '')
1818
.option('environment', null)
19-
.option('serverName', null)
2019
.option('release', null)
2120
.option('ignoreErrors', []) // still exists, but not documented on Sentry's website
2221
.option('ignoreUrls', [])
2322
.option('whitelistUrls', [])
2423
.option('includePaths', []) // maps to Sentry.Integrations.RewriteFrames plugin
25-
.option('maxMessageLength', null) // deprecated
2624
.option('logger', null)
2725
.option('customVersionProperty', null)
2826
.option('debug', false)
2927
.tag(
3028
'sentry',
31-
'<script src="https://browser.sentry-cdn.com/5.12.1/bundle.min.js" integrity="sha384-y+an4eARFKvjzOivf/Z7JtMJhaN6b+lLQ5oFbBbUwZNNVir39cYtkjW1r6Xjbxg3" crossorigin="anonymous"></script>'
29+
'<script src="https://browser.sentry-cdn.com/7.45.0/bundle.min.js" integrity="sha384-eB2/mQAt3oY62hGYFXiPg18greyp8WT/GvKHlsvdYbvSxBRGEhBqEX8L7giHxzvp" crossorigin="anonymous"></script>'
3230
)
3331
// Sentry.Integrations.RewriteFrames plugin: https://docs.sentry.io/platforms/javascript/#rewriteframes
3432
.tag(
3533
'plugin',
36-
'<script src="https://browser.sentry-cdn.com/5.12.1/rewriteframes.min.js" crossorigin="anonymous"></script>'
34+
'<script src="https://browser.sentry-cdn.com/7.45.0/rewriteframes.min.js" integrity="sha384-m1kRQsSdJkB99lz+1ZvWWjrj0SPH0wXH8y7gvdjHAtKBP8lrLrcv9iF7fOQGL8I0" crossorigin="anonymous"></script>'
3735
));
3836

3937
/**
@@ -52,9 +50,8 @@ Sentry.prototype.initialize = function() {
5250
dsn: this.options.config,
5351
environment: this.options.environment,
5452
release: customRelease || this.options.release,
55-
serverName: this.options.serverName,
56-
whitelistUrls: this.options.whitelistUrls,
57-
blacklistUrls: this.options.ignoreUrls,
53+
allowUrls: this.options.whitelistUrls,
54+
denyUrls: this.options.ignoreUrls,
5855
// ignoreErrors still exists, but is not documented on Sentry's website
5956
// https://github.com/getsentry/sentry-javascript/blob/master/packages/core/src/integrations/inboundfilters.ts#L12
6057
ignoreErrors: this.options.ignoreErrors,

Diff for: integrations/sentry/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@segment/analytics.js-integration-sentry",
33
"description": "The Sentry analytics.js integration.",
4-
"version": "3.0.1",
4+
"version": "4.0.0",
55
"keywords": [
66
"analytics.js",
77
"analytics.js-integration",

Diff for: integrations/sentry/test/index.test.js

-2
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,11 @@ describe('Sentry', function() {
6161
.global('Sentry')
6262
.option('config', '')
6363
.option('environment', null)
64-
.option('serverName', null)
6564
.option('release', null)
6665
.option('ignoreErrors', [])
6766
.option('ignoreUrls', [])
6867
.option('whitelistUrls', [])
6968
.option('includePaths', [])
70-
.option('maxMessageLength', null)
7169
.option('logger', null)
7270
.option('customVersionProperty', null)
7371
.option('debug', false)

0 commit comments

Comments
 (0)