Skip to content

✨ Backfill the scoped() API to v3#964

Merged
cowboyd merged 1 commit intov3from
v3-scoped
Jan 20, 2025
Merged

✨ Backfill the scoped() API to v3#964
cowboyd merged 1 commit intov3from
v3-scoped

Conversation

@cowboyd
Copy link
Copy Markdown
Member

@cowboyd cowboyd commented Jan 20, 2025

Motivation

Allow v3 users to "upgrade" to the "scoped" API.

call() and action() are the ways to establish concurrency boundaries and error handling boundaries in v3, but they are getting simplified and losing those capabilities (it's a good thing!) However, in order to make the upgrade seemless, we want to have a backfill that let's you use the scoped API before you switch the version of Effection to 4.

Approach

This wraps call() which has the same function signature, and copies over its jsdoc so that the scoped() intellisense will be available in IDEs

Allow v3 users to "upgrade" to the "scoped" API.

`call()` and `action()` are the ways to establish concurrency
boundaries and error handling boundaries in v3, but they are getting
simplified and losing those capabilities (it's a good thing!) However,
in order to make the upgrade seemless, we want to have a backfill that
let's you use the scoped API _before_ you switch the version of
Effection to 4.

This wraps `call()` which has the same function signature, and copies
over its jsdoc so that the `scoped()` intellisense will be available
in IDEs
@cowboyd cowboyd requested review from jbolda, neurosnap and taras January 20, 2025 10:06
@cowboyd cowboyd merged commit a4de07c into v3 Jan 20, 2025
@cowboyd cowboyd deleted the v3-scoped branch January 20, 2025 16:45
taras pushed a commit that referenced this pull request Nov 12, 2025
✨ Backfill the `scoped()` API to v3
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.

2 participants