Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Changes and Deprecation List for V4 #909

Open
cowboyd opened this issue Sep 13, 2024 · 0 comments
Open

API Changes and Deprecation List for V4 #909

cowboyd opened this issue Sep 13, 2024 · 0 comments
Milestone

Comments

@cowboyd
Copy link
Member

cowboyd commented Sep 13, 2024

Certain APIs are going to need to change, although not very much, for v4. We should make a list of them.

  • call() This is very overused for noting scope, and also for evaluating promise. We are going to deprecate the bare promise
    • add notes on the what is changing about call(), and how to upgrade
    • add scoped() to V3. It will be just an alias to call(). One option for upgrade. Upgrade would involve replace call() -> scope() then fix TS errors.
  • Scope#run -> run(op, { scope })
    • ideally replace Scope#run -> Scope#spawn
  • action(): Action will become more like the promise constructor and will not take an operation function, but instead will take a simple function that receives a resolver to be called when the effect resolves. It is more a general effect resolver than anything else.
@cowboyd cowboyd added this to the v4 milestone Dec 13, 2024
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

No branches or pull requests

1 participant