Skip to content

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

Closed

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

  1. linear commented on Dec 9, 2025

    @linear
  2. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Dec 9, 2025
  3. JPeer264 commented on Dec 9, 2025

    @JPeer264
    Member

    Thanks for the issue. Before addressing this I want to wait on their take of your raised issue.

    As it seemed that this was already downgraded once: GoogleCloudPlatform/functions-framework-nodejs#674

  4. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Dec 9, 2025
  5. caugner commented on Dec 9, 2025

    @caugner
    Author

    FWIW Back then only @types/express was bumped, but now GoogleCloudPlatform/functions-framework-nodejs@1488662 bumped both express and @types/express.

  6. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Dec 9, 2025
  7. self-assigned this
    on Dec 10, 2025
  8. JPeer264 commented on Dec 10, 2025

    @JPeer264
    Member

    Indeed! I created a PR to mitigate the issue and be more flexible with the types. However, I will still wait 1 week ish to check on their state for the v5 upgrade

  9. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Dec 10, 2025
  10. added a commit that references this issue on Dec 16, 2025
    861ed3f
  11. github-actions commented on Dec 16, 2025

    @github-actions
    Contributor

    A PR closing this issue has just been released 🚀

    This issue was referenced by PR #18452, which was included in the 10.31.0 release.

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