Skip to content

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Jan 31, 2025

Removes a no longer necessary fallback check that we only needed in SvelteKit 1.26.0 or older. For Kit 2.x, we can rely on the event.isSubRequest flag to identify sub vs. actual requests in our request handler.

fixes #15244

@Lms24 Lms24 self-assigned this Jan 31, 2025
@Lms24 Lms24 marked this pull request as ready for review January 31, 2025 16:01
@Lms24 Lms24 requested review from andreiborza and mydea January 31, 2025 16:01
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in case reviewers are wondering, this is just funny diff formatting. I actually deleted the other test and removed [kit>=1.21.0] from the test that GH shows as removed 😅

Copy link

codecov bot commented Jan 31, 2025

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
18 1 17 0
View the top 1 failed tests by shortest run time
sdk.test.ts SDK-internal behaviorInjects fetch proxy script for SvelteKit<2.16.0
Stack Traces | 0.139s run time
sdk.test.ts:4:3 Injects fetch proxy script for SvelteKit<2.16.0

To view more test analytics, go to the Test Analytics Dashboard
📢 Thoughts on this report? Let us know!

@Lms24 Lms24 merged commit 76854e8 into develop Feb 4, 2025
31 checks passed
@Lms24 Lms24 deleted the lms/ref-sveltekit-cleanup-subrequest-checl branch February 4, 2025 11:01
Zen-cronic pushed a commit to Zen-cronic/sentry-javascript that referenced this pull request Feb 5, 2025
Removes a no longer necessary fallback check that we only needed in
SvelteKit 1.26.0 or older. For Kit 2.x, we can rely on the
`event.isSubRequest` flag to identify sub vs. actual requests in our
request handler.

fixes getsentry#15244
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clean up SvelteKit isSubRequest check

2 participants