@sentry/bundler-plugin-core
Advanced tools
Comparing version 2.10.3 to 2.11.0
@@ -1,5 +0,6 @@ | ||
import { UnpluginOptions } from "unplugin"; | ||
import { TransformResult, UnpluginOptions } from "unplugin"; | ||
import { Options, SentrySDKBuildFlags } from "./types"; | ||
interface SentryUnpluginFactoryOptions { | ||
releaseInjectionPlugin: (injectionCode: string) => UnpluginOptions; | ||
componentNameAnnotatePlugin?: () => UnpluginOptions; | ||
moduleMetadataInjectionPlugin?: (injectionCode: string) => UnpluginOptions; | ||
@@ -37,3 +38,3 @@ debugIdInjectionPlugin: () => UnpluginOptions; | ||
*/ | ||
export declare function sentryUnpluginFactory({ releaseInjectionPlugin, moduleMetadataInjectionPlugin, debugIdInjectionPlugin, debugIdUploadPlugin, bundleSizeOptimizationsPlugin, }: SentryUnpluginFactoryOptions): import("unplugin").UnpluginInstance<Options, true>; | ||
export declare function sentryUnpluginFactory({ releaseInjectionPlugin, componentNameAnnotatePlugin, moduleMetadataInjectionPlugin, debugIdInjectionPlugin, debugIdUploadPlugin, bundleSizeOptimizationsPlugin, }: SentryUnpluginFactoryOptions): import("unplugin").UnpluginInstance<Options, true>; | ||
export declare function getBuildInformation(): { | ||
@@ -92,2 +93,5 @@ deps: string[]; | ||
}; | ||
export declare function createComponentNameAnnotateHooks(): { | ||
transform(this: void, code: string, id: string): Promise<TransformResult>; | ||
}; | ||
export declare function getDebugIdSnippet(debugId: string): string; | ||
@@ -94,0 +98,0 @@ export { stringToUUID, replaceBooleanFlagsInCode } from "./utils"; |
@@ -62,2 +62,5 @@ import { Logger } from "./sentry/logger"; | ||
} | undefined; | ||
reactComponentAnnotation: { | ||
enabled?: boolean | undefined; | ||
} | undefined; | ||
_experiments: { | ||
@@ -64,0 +67,0 @@ injectBuildInformation?: boolean | undefined; |
@@ -250,2 +250,15 @@ export interface Options { | ||
/** | ||
* Options related to react component name annotations. | ||
* Disabled by default, unless a value is set for this option. | ||
* When enabled, your app's DOM will automatically be annotated during build-time with their respective component names. | ||
* This will unlock the capability to search for Replays in Sentry by component name, as well as see component names in breadcrumbs and performance monitoring. | ||
* Please note that this feature is not currently supported by the esbuild bundler plugins, and will only annotate React components | ||
*/ | ||
reactComponentAnnotation?: { | ||
/** | ||
* Whether the component name annotate plugin should be enabled or not. | ||
*/ | ||
enabled?: boolean; | ||
}; | ||
/** | ||
* Options that are considered experimental and subject to change. | ||
@@ -252,0 +265,0 @@ * |
{ | ||
"name": "@sentry/bundler-plugin-core", | ||
"version": "2.10.3", | ||
"version": "2.11.0", | ||
"description": "Sentry Bundler Plugin Core", | ||
@@ -55,3 +55,5 @@ "repository": "git://github.com/getsentry/sentry-javascript-bundler-plugins.git", | ||
"dependencies": { | ||
"@babel/core": "7.18.5", | ||
"@sentry/cli": "^2.22.3", | ||
"@sentry/component-annotate-plugin": "2.11.0", | ||
"@sentry/node": "^7.60.0", | ||
@@ -66,3 +68,2 @@ "@sentry/utils": "^7.60.0", | ||
"devDependencies": { | ||
"@babel/core": "7.18.5", | ||
"@babel/preset-env": "7.18.2", | ||
@@ -74,4 +75,4 @@ "@babel/preset-typescript": "7.17.12", | ||
"@rollup/plugin-replace": "^4.0.0", | ||
"@sentry-internal/eslint-config": "2.10.3", | ||
"@sentry-internal/sentry-bundler-plugin-tsconfig": "2.10.3", | ||
"@sentry-internal/eslint-config": "2.11.0", | ||
"@sentry-internal/sentry-bundler-plugin-tsconfig": "2.11.0", | ||
"@swc/core": "^1.2.205", | ||
@@ -78,0 +79,0 @@ "@swc/jest": "^0.2.21", |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
501140
17
4924
10
+ Added@babel/core@7.18.5
+ Added@ampproject/remapping@2.3.0(transitive)
+ Added@babel/code-frame@7.24.7(transitive)
+ Added@babel/compat-data@7.25.4(transitive)
+ Added@babel/core@7.18.5(transitive)
+ Added@babel/generator@7.25.6(transitive)
+ Added@babel/helper-compilation-targets@7.25.2(transitive)
+ Added@babel/helper-module-imports@7.24.7(transitive)
+ Added@babel/helper-module-transforms@7.25.2(transitive)
+ Added@babel/helper-simple-access@7.24.7(transitive)
+ Added@babel/helper-string-parser@7.24.8(transitive)
+ Added@babel/helper-validator-identifier@7.24.7(transitive)
+ Added@babel/helper-validator-option@7.24.8(transitive)
+ Added@babel/helpers@7.25.6(transitive)
+ Added@babel/highlight@7.24.7(transitive)
+ Added@babel/parser@7.25.6(transitive)
+ Added@babel/template@7.25.0(transitive)
+ Added@babel/traverse@7.25.6(transitive)
+ Added@babel/types@7.25.6(transitive)
+ Added@jridgewell/gen-mapping@0.3.5(transitive)
+ Added@jridgewell/resolve-uri@3.1.2(transitive)
+ Added@jridgewell/set-array@1.2.1(transitive)
+ Added@jridgewell/trace-mapping@0.3.25(transitive)
+ Added@sentry/component-annotate-plugin@2.11.0(transitive)
+ Addedansi-styles@3.2.1(transitive)
+ Addedbrowserslist@4.24.0(transitive)
+ Addedcaniuse-lite@1.0.30001666(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedconvert-source-map@1.9.0(transitive)
+ Addedelectron-to-chromium@1.5.31(transitive)
+ Addedescalade@3.2.0(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedgensync@1.0.0-beta.2(transitive)
+ Addedglobals@11.12.0(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedjsesc@2.5.2(transitive)
+ Addedjson5@2.2.3(transitive)
+ Addedlru-cache@5.1.1(transitive)
+ Addednode-releases@2.0.18(transitive)
+ Addedpicocolors@1.1.0(transitive)
+ Addedsemver@6.3.1(transitive)
+ Addedsupports-color@5.5.0(transitive)
+ Addedto-fast-properties@2.0.0(transitive)
+ Addedupdate-browserslist-db@1.1.1(transitive)
+ Addedyallist@3.1.1(transitive)