Skip to content

Return callback value from contextualize plugin#2654

Merged
gingerbenw merged 1 commit intonextfrom
PLAT-15476/contextualize-return-callback-value
Jan 15, 2026
Merged

Return callback value from contextualize plugin#2654
gingerbenw merged 1 commit intonextfrom
PLAT-15476/contextualize-return-callback-value

Conversation

@gingerbenw
Copy link
Copy Markdown
Contributor

@gingerbenw gingerbenw commented Jan 15, 2026

Goal

This PR modifies the contextualize plugin to return the value from the callback function, enabling proper value propagation through the contextualized scope. Previously, the plugin did not return the callback's result, making it impossible for callers to retrieve values from wrapped functions. This change resolves issue #2651

Changeset

  • Added return statement to propagate callback function's return value
  • Updated CHANGELOG

Testing

Added comprehensive test coverage for return value behavior and async operations

@gingerbenw gingerbenw requested a review from Copilot January 15, 2026 10:15

This comment was marked as resolved.

@gingerbenw gingerbenw marked this pull request as ready for review January 15, 2026 10:17
@github-actions
Copy link
Copy Markdown

@bugsnag/browser bundle size diff

Minified Minfied + Gzipped
Before 47.74 kB 14.17 kB
After 47.74 kB 14.17 kB
± No change No change

code coverage diff

<temporarily disabled>

Generated by 🚫 dangerJS against e521d74

@gingerbenw gingerbenw requested a review from a team January 15, 2026 10:18
@gingerbenw gingerbenw merged commit e379e7b into next Jan 15, 2026
25 checks passed
@gingerbenw gingerbenw deleted the PLAT-15476/contextualize-return-callback-value branch January 15, 2026 10:54
@gingerbenw gingerbenw mentioned this pull request Jan 20, 2026
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.

3 participants