-
-
Notifications
You must be signed in to change notification settings - Fork 59
fix: Replace deprecated url.parse with parseStringToURLObject #1303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. Bug Fixes 🐛
🤖 This preview updates automatically when you update the PR. |
| @@ -42,16 +43,19 @@ export interface NetOptions { | |||
| * We want to match the final URL that Electron uses | |||
| */ | |||
| function parseOptions(optionsIn: ClientRequestConstructorOptions | string): { method: string; url: string } { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can evaluate changing this all together?
Node.js 24+ (Electron 40+) emits deprecation warnings for url.parse() which get captured by captureConsoleIntegration and cause test failures. Replace url.parse() calls in net-breadcrumbs.ts with parseStringToURLObject from @sentry/core which uses the WHATWG URL API. Also updates e2e test versions to include Electron 40.0.0. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
5de8f1b to
b2ffa30
Compare
|
Could the remaining |
|
It comes internally from Electron: |
Node.js 24+ (Electron 40+) emits deprecation warnings for url.parse() which get captured by captureConsoleIntegration and cause test failures.
Replace url.parse() calls in net-breadcrumbs.ts with parseStringToURLObject from @sentry/core which uses the WHATWG URL API.
Also updates e2e test versions to include Electron 40.0.0.