Skip to content

Conversation

lobsterkatie
Copy link
Member

@lobsterkatie lobsterkatie commented Jun 20, 2022

This fixes an issue introduced by #5257, which was designed to be backwards-compatible, but which missed a key use case: When users pass options to our Express middleware, they might be (and in fact, for now, almost certainly are) passing them in the form of ParseRequestOptions, not AddRequestDataToEventOptions. This allows for that possibility, as a backwards-compatibility measure until v8. It also adjusts a spot in the serverless SDK where a similar problem can occur.

Fixes #5282.

@github-actions
Copy link
Contributor

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 19.35 KB (added)
@sentry/browser - ES5 CDN Bundle (minified) 59.85 KB (added)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.15 KB (added)
@sentry/browser - ES6 CDN Bundle (minified) 53.49 KB (added)
@sentry/browser - Webpack (gzipped + minified) 19.92 KB (added)
@sentry/browser - Webpack (minified) 64.85 KB (added)
@sentry/react - Webpack (gzipped + minified) 19.95 KB (added)
@sentry/nextjs Client - Webpack (gzipped + minified) 43.9 KB (added)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 25.52 KB (added)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 24.04 KB (added)

@AbhiPrasad AbhiPrasad merged commit 9b02afb into master Jun 22, 2022
@AbhiPrasad AbhiPrasad deleted the kmclb-fix-node-request-handler-types branch June 22, 2022 14:27
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.

Sentry.Handlers.requestHandler migration steps required?
3 participants