Skip to content

build(deps): bump @sentry/node-core to 10.50.0#834

Merged
BYK merged 2 commits intomainfrom
deps/sentry-sdk-10.50.0
Apr 23, 2026
Merged

build(deps): bump @sentry/node-core to 10.50.0#834
BYK merged 2 commits intomainfrom
deps/sentry-sdk-10.50.0

Conversation

@BYK
Copy link
Copy Markdown
Member

@BYK BYK commented Apr 23, 2026

Summary

Bumps the sentry-javascript SDK from 10.47.0 → 10.50.0.

Nothing in the 10.48/10.49/10.50 changelog affects the CLI — the minors added Effect v4, Hono/Bun, Replay hooks, AI integrations, ViewHierarchy, Runtime Metrics, etc. None are imported here. Relevant-but-benign fixes:

  • fix(node-core): Pass rejection reason instead of Promise as originalException (10.50)
  • fix(core): Only attach flags context to error events (10.48)
  • OpenTelemetry dep bumps (10.49) — stays ABI-compatible with @opentelemetry/api@1.9.0.

What changed

  • package.json: exact-pin bumped 10.47.0 → 10.50.0; patchedDependencies keys + paths updated to 10.50.0.
  • patches/@sentry%2Fnode-core@10.50.0.patch (77 lines, regenerated fresh via bun patch).
  • patches/@sentry%2Fcore@10.50.0.patch (253 lines, regenerated fresh via bun patch).
  • bun.lock: @sentry/core, @sentry/node-core, @sentry/opentelemetry all to 10.50.0; @opentelemetry/context-async-hooks dropped from the transitive tree.
  • AGENTS.md: new lore entry documenting the patch-regeneration workflow and the gotcha below.

Patches continue to strip unused integrations (captureConsoleIntegration, dedupeIntegration, extraErrorDataIntegration, featureFlagsIntegration, instrumentSupabaseClient, profiler, rewriteFramesIntegration, supabaseIntegration, trpcMiddleware, wrapMcpServerWithSentry, zodErrorsIntegration, AI instrumentation for OpenAI/Anthropic/GoogleGenAI/LangChain/LangGraph/Vercel-AI, feature-flag internals, module metadata, idle-span, etc.) from the @sentry/node-core/light and @sentry/core bundles so the light startup stays fast.

Also strips newly-added exports we don't use:

  • withStreamedSpan (node-core/light + core)
  • instrumentLangChainEmbeddings (core)

Gotcha: spanStreamingIntegration must stay exported from @sentry/core

10.50.0 introduced runtime usage of spanStreamingIntegration inside @sentry/node-core/build/{cjs,esm}/light/sdk.js:

if (mergedOptions.traceLifecycle === 'stream' && !resolvedIntegrations.some(i => i.name === 'SpanStreaming')) {
  resolvedIntegrations.push(spanStreamingIntegration());
}

An early version of this patch stripped that export from @sentry/core, which caused:

SyntaxError: Export named 'spanStreamingIntegration' not found in module .../@sentry/core/build/esm/index.js

on the first Sentry.init() load. The final patch keeps spanStreamingIntegration exported from @sentry/core, but still strips it from the node-core/light re-export surface since we never import it directly.

Verification

bun run typecheck    # clean
bun run lint         # clean (one pre-existing warning unrelated)
bun run test         # 5777 unit + 138 isolated = 5915 pass / 0 fail
bun run build        # sentry-linux-x64 25MB, bundle 3.07MB
bun run bundle       # dist/index.cjs 3214KB
./dist-bin/sentry-linux-x64 --version   # 0.29.0-dev.0
SENTRY_CLI_NO_TELEMETRY=1 time ./dist-bin/sentry-linux-x64 __complete ""   # ~200ms

Post-review cleanup (2nd commit)

Subagent review surfaced two nits after initial CI green:

  1. The regenerated core patch had a stray .bun-tag-<hash> hunk at the top that would create an empty marker file in every install. Removed.
  2. Lore entry incorrectly listed withStreamedSpan alongside spanStreamingIntegration as a runtime dependency of node-core/light/sdk.js. Verified withStreamedSpan is NOT used there — stripping it is safe. Corrected the entry and documented the .bun-tag workaround for future regenerators.

Regenerate both patches against 10.50.0 bundles via `bun patch`.

Keep `spanStreamingIntegration` export in @sentry/core because
node-core/light/sdk.js in 10.50.0 imports and calls it at runtime
when traceLifecycle === 'stream'. Stripping it (as the old patch
did) would throw `SyntaxError: Export named 'spanStreamingIntegration'
not found` on the first `Sentry.init()` load.

Also strip newly-added exports we do not use:
- `withStreamedSpan` (from node-core/light + core)
- `instrumentLangChainEmbeddings` (from core)

Transitive bumps: @sentry/core, @sentry/opentelemetry → 10.50.0;
@opentelemetry/context-async-hooks dropped from the dep tree.

Verified: typecheck, lint, 5915 tests pass, `bun run build` and
`bun run bundle` both succeed, completion fast-path still ~200ms.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 23, 2026

Codecov Results 📊

138 passed | Total: 138 | Pass Rate: 100% | Execution Time: 0ms

📊 Comparison with Base Branch

Metric Change
Total Tests
Passed Tests
Failed Tests
Skipped Tests

✨ No test changes detected

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 1938 uncovered lines.
✅ Project coverage is 95.3%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    95.30%    95.30%        —%
==========================================
  Files          283       283         —
  Lines        41243     41244        +1
  Branches         0         0         —
==========================================
+ Hits         39303     39306        +3
- Misses        1940      1938        -2
- Partials         0         0         —

Generated by Codecov Action

- Drop stray `.bun-tag-<hash>` hunk from core patch (bun auto-creates
  its own tag marker on install; the one baked into the patch was
  redundant and shipped an empty file in every install).
- Fix AGENTS.md lore entry: `withStreamedSpan` is NOT imported at
  runtime by `@sentry/node-core/build/{cjs,esm}/light/*` — only
  `spanStreamingIntegration` is. Correct the constraint so future
  bumpers don't preserve `withStreamedSpan` unnecessarily.
- Document the `.bun-tag` artifact workaround in the same lore entry.
@BYK BYK merged commit fd40350 into main Apr 23, 2026
25 checks passed
@BYK BYK deleted the deps/sentry-sdk-10.50.0 branch April 23, 2026 16:28
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.

1 participant