Skip to content

Should we contain to create callbacks for new APIs? #1532

Answered by rom1504
TheDudeFromCI asked this question in Q&A
Discussion options

You must be logged in to vote

I think we should indeed deprecate the callback API.
However I think we should only do it once we are confident there are no remaining issue for the promise API.
To validate this I think it's useful to:

  • use it ourselves: our tests and our plugins should use it #1482
  • make sure at least some users are using the promise API without issue

Once this is true, we can consider adding deprecation warnings and tell users not to use callback API (if someone wants to prepare a PR to do this that we won't merge right now, feel free)

For the specific question of small new features, I'd say let's not add the callback version. Users wanting to use it in a callback-based app, can always do function().…

Replies: 6 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@wvffle
Comment options

Comment options

You must be logged in to vote
1 reply
@stenlan
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@wvffle
Comment options

@rom1504
Comment options

Answer selected by TheDudeFromCI
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants