Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: getsentry/sentry-javascript
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9.25.1
Choose a base ref
...
head repository: getsentry/sentry-javascript
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9.26.0
Choose a head ref
  • 9 commits
  • 57 files changed
  • 8 contributors

Commits on Jun 3, 2025

  1. Merge branch 'release/9.25.1'

    getsentry-bot committed Jun 3, 2025
    Configuration menu
    Copy the full SHA
    f43737f View commit details
    Browse the repository at this point in the history
  2. Merge pull request #16468 from getsentry/master

    [Gitflow] Merge master into develop
    github-actions[bot] authored Jun 3, 2025
    Configuration menu
    Copy the full SHA
    dcdf074 View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2025

  1. fix(nextjs): Skip re instrumentating on generate phase of experimenta…

    …l build mode (#16410)
    
    Next.js v15.3.0-canary.1 introduced a new approach to the two-phase
    experimental build (--experimental-build-mode=compile then =generate)
    that applies env inlining during generate build mode.
     
    Why it breaks?
    Our `withSentryConfig` still assumes a single “full” build and reruns
    its Webpack instrumentation in both phases. During the generate step it
    collides with Next.js’s new inliner (e.g. for assetPrefix), producing
    malformed JS and build failures.
    
    Root cause: Double application of build-time transforms—Sentry
    inlines/reprocesses a bundle that Next.js’s generate mode is
    simultaneously trying to finalize—leads to conflicting replacements and
    syntax errors.
    
    This PR is a quick workaround that patches our build script so that:
    1. Compile phase (--experimental-build-mode=compile): Sentry’s
    instrumentation runs as usual.
    2. Generate phase (--experimental-build-mode=generate): We skip Sentry’s
    build-time hooks entirely, letting Next.js handle inlining and
    prerendering without collision.
    
    This immediately prevents the build failures and defers full “generate”
    work to Next.js’s own pipeline. I confirmed that source maps and error /
    tracing still function as expected, BUT things might still occur as it's
    still an experimental undocumented feature.
    
    ---------
    
    Co-authored-by: Charly Gomez <charly.gomez@sentry.io>
    RulaKhaled and chargome authored Jun 4, 2025
    Configuration menu
    Copy the full SHA
    4806b8a View commit details
    Browse the repository at this point in the history
  2. feat(react-router): Re-export functions from @sentry/react (#16465)

    Re-exports functionality from the `@sentry/react`. However, not
    everything is exported as the react router exports would be confusing.
    
    closes #16459
    s1gr1d authored Jun 4, 2025
    Configuration menu
    Copy the full SHA
    ac22be2 View commit details
    Browse the repository at this point in the history
  3. fix(node): Ensure adding sentry-trace and baggage headers via SentryH…

    …ttpInstrumentation doesn't crash (#16473)
    
    On Node > 22.10.0, when spans are off, the `SentryHttpInstrumentation`
    attempts adding `sentry-trace` and `baggage` headers to requests. Due to
    race-conditions, this can error in cases where the request was already
    sent/finished prior to setting the headers.
    
    This fix prevents this by wrapping the logic in a try/catch.
    
    Fixes: #16438
    andreiborza authored Jun 4, 2025
    Configuration menu
    Copy the full SHA
    a08cae2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    57268c1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f2e28a3 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #16480 from getsentry/prepare-release/9.26.0

    meta(changelog): Update changelog for 9.26.0
    andreiborza authored Jun 4, 2025
    Configuration menu
    Copy the full SHA
    89b00f6 View commit details
    Browse the repository at this point in the history
  7. release: 9.26.0

    getsentry-bot committed Jun 4, 2025
    Configuration menu
    Copy the full SHA
    94398da View commit details
    Browse the repository at this point in the history
Loading