File tree Expand file tree Collapse file tree 6 files changed +8
-268
lines changed
packages/bundler-plugin-core/src Expand file tree Collapse file tree 6 files changed +8
-268
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @codecov/bundler-plugin-core " : patch
3
+ " @codecov/rollup-plugin " : patch
4
+ " @codecov/vite-plugin " : patch
5
+ " @codecov/webpack-plugin " : patch
6
+ ---
7
+
8
+ Remove Sentry stats upload from the plugins, as the project has been put on hold
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ import { getPreSignedURL } from "../utils/getPreSignedURL.ts";
9
9
import { type NormalizedOptions } from "../utils/normalizeOptions.ts" ;
10
10
import { detectProvider } from "../utils/provider.ts" ;
11
11
import { uploadStats } from "../utils/uploadStats.ts" ;
12
- import { sendSentryBundleStats } from "../utils/sentryUtils.ts" ;
13
12
14
13
interface BundleAnalysisUploadPluginArgs {
15
14
options : NormalizedOptions ;
@@ -51,16 +50,6 @@ export const bundleAnalysisPluginFactory = ({
51
50
// don't need to do anything if the bundle name is not present or empty
52
51
if ( ! options . bundleName || options . bundleName === "" ) return ;
53
52
54
- if ( options . sentry ?. isEnabled ) {
55
- try {
56
- await sendSentryBundleStats ( output , options ) ;
57
- } catch { }
58
-
59
- if ( options ?. sentry ?. sentryOnly ) {
60
- return ;
61
- }
62
- }
63
-
64
53
const args : UploadOverrides = options . uploadOverrides ?? { } ;
65
54
const envs = process . env ;
66
55
const inputs : ProviderUtilInputs = { envs, args } ;
Original file line number Diff line number Diff line change @@ -105,35 +105,6 @@ export interface Options {
105
105
106
106
/** Override values for passing custom information to API. */
107
107
uploadOverrides ?: UploadOverrides ;
108
-
109
- /** A set of options to configure Sentry settings inside the plugin. */
110
- sentry ?: {
111
- /**
112
- * Only send bundle stats to sentry (used within sentry bundler plugin).
113
- *
114
- * Defaults to `false`
115
- */
116
- sentryOnly ?: boolean ;
117
-
118
- /**
119
- * Enables stats to be sent to sentry, set this to true on release.
120
- *
121
- * Defaults to `false`
122
- */
123
- isEnabled ?: boolean ;
124
-
125
- /** Sentry auth token to send bundle stats. */
126
- authToken ?: string ;
127
-
128
- /** The name of the sentry organization to send bundler stats to. */
129
- org ?: string ;
130
-
131
- /** The name of the sentry project to send bundler stats to. */
132
- project ?: string ;
133
-
134
- /** The name of the sentry enviornment to send bundler stats to. */
135
- environment ?: string ;
136
- } ;
137
108
}
138
109
139
110
export type BundleAnalysisUploadPlugin = (
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -80,36 +80,6 @@ const optionsSchemaFactory = (options: Options) =>
80
80
. string ( { invalid_type_error : "`uploadToken` must be a string." } )
81
81
. optional ( ) ,
82
82
uploadOverrides : UploadOverridesSchema . optional ( ) ,
83
- sentry : z
84
- . object ( {
85
- sentryOnly : z
86
- . boolean ( {
87
- invalid_type_error : "`sentry.sentryOnly` must be a boolean." ,
88
- } )
89
- . default ( false ) ,
90
- authToken : z . string ( {
91
- invalid_type_error : "`sentry.authToken` must be a string." ,
92
- } ) ,
93
- isEnabled : z
94
- . boolean ( {
95
- invalid_type_error : "`sentry.isEnabled` must be a boolean." ,
96
- } )
97
- . default ( false ) ,
98
- org : z
99
- . string ( { invalid_type_error : "`sentry.org` must be a string." } )
100
- . optional ( ) ,
101
- project : z
102
- . string ( {
103
- invalid_type_error : "`sentry.project` must be a string." ,
104
- } )
105
- . optional ( ) ,
106
- environment : z
107
- . string ( {
108
- invalid_type_error : "`sentry.environment` must be a string." ,
109
- } )
110
- . optional ( ) ,
111
- } )
112
- . optional ( ) ,
113
83
} ) ;
114
84
115
85
interface NormalizedOptionsFailure {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments