Skip to content

Bump @types/express to v5 for @sentry/google-cloud-serverless #18438

Description

@caugner

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/google-cloud-serverless

SDK Version

10.29.0

Framework Version

No response

Link to Sentry event

No response

Reproduction Example/SDK Setup

https://github.com/mdn/dex/blob/44966e9b253b9c38a35f8bc7652609d0be049e3e/cloud-function/src/index.js#L7-L10

let handler = createHandler();

if (process.env["SENTRY_DSN"]) {
  Sentry.init();
  handler = Sentry.wrapHttpFunction(handler);
}

http("mdnHandler", handler);

Steps to Reproduce

  1. Bump @google-cloud/functions-framework from 4.0.0 to 4.0.1 (which bumps express from v4 to v5).

Expected Result

Expected types to match.

Actual Result

TypeScript complains about a type mismatch, because @google-cloud/functions-framework now expects express v5 signature, but @sentry/google-cloud-serverless depends on express v4.

Additional Context

No response

Priority

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.

Activity

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

Metadata

Metadata

Assignees

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions