From b1e9a7ad406f0ecb8a462f7e223f689ca3831c78 Mon Sep 17 00:00:00 2001 From: AnkitUnthinkable <117071411+AnkitUnthinkable@users.noreply.github.com> Date: Mon, 17 Apr 2023 12:08:32 +0530 Subject: [PATCH] [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 --- integrations/sentry/lib/index.js | 11 ++++------- integrations/sentry/package.json | 2 +- integrations/sentry/test/index.test.js | 2 -- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/integrations/sentry/lib/index.js b/integrations/sentry/lib/index.js index 5f3d63993..a94ee1144 100644 --- a/integrations/sentry/lib/index.js +++ b/integrations/sentry/lib/index.js @@ -16,24 +16,22 @@ var Sentry = (module.exports = integration('Sentry') .global('Sentry') .option('config', '') .option('environment', null) - .option('serverName', null) .option('release', null) .option('ignoreErrors', []) // still exists, but not documented on Sentry's website .option('ignoreUrls', []) .option('whitelistUrls', []) .option('includePaths', []) // maps to Sentry.Integrations.RewriteFrames plugin - .option('maxMessageLength', null) // deprecated .option('logger', null) .option('customVersionProperty', null) .option('debug', false) .tag( 'sentry', - '' + '' ) // Sentry.Integrations.RewriteFrames plugin: https://docs.sentry.io/platforms/javascript/#rewriteframes .tag( 'plugin', - '' + '' )); /** @@ -52,9 +50,8 @@ Sentry.prototype.initialize = function() { dsn: this.options.config, environment: this.options.environment, release: customRelease || this.options.release, - serverName: this.options.serverName, - whitelistUrls: this.options.whitelistUrls, - blacklistUrls: this.options.ignoreUrls, + allowUrls: this.options.whitelistUrls, + denyUrls: this.options.ignoreUrls, // ignoreErrors still exists, but is not documented on Sentry's website // https://github.com/getsentry/sentry-javascript/blob/master/packages/core/src/integrations/inboundfilters.ts#L12 ignoreErrors: this.options.ignoreErrors, diff --git a/integrations/sentry/package.json b/integrations/sentry/package.json index 33b4e2dc1..f683f751f 100644 --- a/integrations/sentry/package.json +++ b/integrations/sentry/package.json @@ -1,7 +1,7 @@ { "name": "@segment/analytics.js-integration-sentry", "description": "The Sentry analytics.js integration.", - "version": "3.0.1", + "version": "4.0.0", "keywords": [ "analytics.js", "analytics.js-integration", diff --git a/integrations/sentry/test/index.test.js b/integrations/sentry/test/index.test.js index 798c4d7f0..e630f01a2 100644 --- a/integrations/sentry/test/index.test.js +++ b/integrations/sentry/test/index.test.js @@ -61,13 +61,11 @@ describe('Sentry', function() { .global('Sentry') .option('config', '') .option('environment', null) - .option('serverName', null) .option('release', null) .option('ignoreErrors', []) .option('ignoreUrls', []) .option('whitelistUrls', []) .option('includePaths', []) - .option('maxMessageLength', null) .option('logger', null) .option('customVersionProperty', null) .option('debug', false)