Socket
Socket
Sign inDemoInstall

@sentry/bundler-plugin-core

Package Overview
Dependencies
Maintainers
11
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/bundler-plugin-core - npm Package Compare versions

Comparing version 2.21.1 to 2.22.0

2

dist/types/index.d.ts

@@ -19,3 +19,3 @@ import { TransformResult, UnpluginOptions } from "unplugin";

* Per default the sentry bundler plugin will inject a global `SENTRY_RELEASE` into each JavaScript/TypeScript module
* that is part of the bundle. On a technical level this is done by appending an import (`import "sentry-release-injector;"`)
* that is part of the bundle. On a technical level this is done by appending an import (`import "sentry-release-injector";`)
* to all entrypoint files of the user code (see `transformInclude` and `transform` hooks). This import is then resolved

@@ -22,0 +22,0 @@ * by the sentry plugin to a virtual module that sets the global variable (see `resolveId` and `load` hooks).

@@ -58,2 +58,3 @@ import { Logger } from "./sentry/logger";

excludePerformanceMonitoring?: boolean | undefined;
excludeTracing?: boolean | undefined;
excludeReplayCanvas?: boolean | undefined;

@@ -60,0 +61,0 @@ excludeReplayShadowDom?: boolean | undefined;

@@ -220,38 +220,52 @@ export interface Options {

/**
* If set to true, the plugin will try to tree-shake debug statements out.
* Note that the success of this depends on tree shaking generally being enabled in your build.
* If set to `true`, the plugin will attempt to tree-shake (remove) any debugging code within the Sentry SDK.
* Note that the success of this depends on tree shaking being enabled in your build tooling.
*
* Setting this option to `true` will disable features like the SDK's `debug` option.
*/
excludeDebugStatements?: boolean;
/**
* If set to true, the plugin will try to tree-shake performance monitoring statements out.
* Note that the success of this depends on tree shaking generally being enabled in your build.
* Attention: DO NOT enable this when you're using any performance monitoring-related SDK features (e.g. Sentry.startTransaction()).
* This flag is intended to be used in combination with packages like @sentry/next or @sentry/sveltekit,
* which automatically include performance monitoring functionality.
* If set to `true`, the plugin will attempt to tree-shake (remove) code within the Sentry SDK that is related to tracing and performance monitoring.
* Note that the success of this depends on tree shaking being enabled in your build tooling.
*
* **Notice**: Do not enable this when you're using any performance monitoring-related SDK features (e.g. `Sentry.startTransaction()`).
*
* @deprecated This option has been replaced with the `excludeTracing`. Currently, this option is an alias for `excludeTracing` but `excludePerformanceMonitoring` will be removed in the next major version.
*/
excludePerformanceMonitoring?: boolean;
/**
* If set to true, the plugin will try to tree-shake Session Replay's Canvas recording functionality out.
* You can safely do this when you do not want to capture any Canvas activity via Replay.
* Note that the success of this depends on tree shaking generally being enabled in your build.
* If set to `true`, the plugin will attempt to tree-shake (remove) code within the Sentry SDK that is related to tracing and performance monitoring.
* Note that the success of this depends on tree shaking being enabled in your build tooling.
*
* @deprecated Versions v7.78.0 and later of the Sentry JavaScript SDKs do not include canvas support by default, making this option redundant.
* **Notice:** Do not enable this when you're using any performance monitoring-related SDK features (e.g. `Sentry.startTransaction()`).
*/
excludeTracing?: boolean;
/**
* If set to `true`, the plugin will attempt to tree-shake (remove) code related to the Sentry SDK's Session Replay Canvas recording functionality.
* Note that the success of this depends on tree shaking being enabled in your build tooling.
*
* You can safely do this when you do not want to capture any Canvas activity via Sentry Session Replay.
*
* @deprecated In versions v7.78.0 and later of the Sentry JavaScript SDKs, canvas recording is opt-in making this option redundant.
*/
excludeReplayCanvas?: boolean;
/**
* If set to true, the plugin will try to tree-shake Session Replay's Shadow DOM recording functionality out.
* You can safely do this when you do not want to capture any Shadow DOM activity via Replay.
* Note that the success of this depends on tree shaking generally being enabled in your build.
* If set to `true`, the plugin will attempt to tree-shake (remove) code related to the Sentry SDK's Session Replay Shadow DOM recording functionality.
* Note that the success of this depends on tree shaking being enabled in your build tooling.
*
* This option is safe to be used when you do not want to capture any Shadow DOM activity via Sentry Session Replay.
*/
excludeReplayShadowDom?: boolean;
/**
* If set to true, the plugin will try to tree-shake Session Replay's IFrame recording functionality out.
* You can safely do this when you do not want to capture any IFrame activity via Replay.
* Note that the success of this depends on tree shaking generally being enabled in your build.
* If set to `true`, the plugin will attempt to tree-shake (remove) code related to the Sentry SDK's Session Replay `iframe` recording functionality.
* Note that the success of this depends on tree shaking being enabled in your build tooling.
*
* You can safely do this when you do not want to capture any `iframe` activity via Sentry Session Replay.
*/
excludeReplayIframe?: boolean;
/**
* If set to true, the plugin will try to tree-shake Session Replay's Compression Web Worker out.
* You should only do this if you manually host a compression worker and configure it in your Replay config via `workerUrl`.
* Note that the success of this depends on tree shaking generally being enabled in your build.
* If set to `true`, the plugin will attempt to tree-shake (remove) code related to the Sentry SDK's Session Replay's Compression Web Worker.
* Note that the success of this depends on tree shaking being enabled in your build tooling.
*
* **Notice:** You should only do use this option if you manually host a compression worker and configure it in your Sentry Session Replay integration config via the `workerUrl` option.
*/

@@ -258,0 +272,0 @@ excludeReplayWorker?: boolean;

{
"name": "@sentry/bundler-plugin-core",
"version": "2.21.1",
"version": "2.22.0",
"description": "Sentry Bundler Plugin Core",

@@ -56,4 +56,4 @@ "repository": "git://github.com/getsentry/sentry-javascript-bundler-plugins.git",

"@babel/core": "^7.18.5",
"@sentry/babel-plugin-component-annotate": "2.21.1",
"@sentry/cli": "^2.22.3",
"@sentry/babel-plugin-component-annotate": "2.22.0",
"@sentry/cli": "^2.33.1",
"dotenv": "^16.3.1",

@@ -72,4 +72,4 @@ "find-up": "^5.0.0",

"@rollup/plugin-replace": "^4.0.0",
"@sentry-internal/eslint-config": "2.21.1",
"@sentry-internal/sentry-bundler-plugin-tsconfig": "2.21.1",
"@sentry-internal/eslint-config": "2.22.0",
"@sentry-internal/sentry-bundler-plugin-tsconfig": "2.22.0",
"@sentry/node": "7.102.0",

@@ -76,0 +76,0 @@ "@sentry/utils": "7.102.0",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc