-
-
Notifications
You must be signed in to change notification settings - Fork 51
Remove support for callbacks in models #48
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
Comments
I agree, however
|
@jankapunkt By next major version do you mean v5? As far as I understand that's the migration to TypeScript correct? If thats the case it would be nice to do this before all that happens. I think removing support for callbacks can happen now, as we move from v3 to v4. We don't really have to do much, just update the documentation and perhaps put a warning message if people try to use callbacks: "support for callbacks has been deprecated—we recommend using Promises in your models since this may have adverse effects in future minor releases". Since we've officially removed callback support at v4 and have given people fair warning we should be ok to remove callbacks at any time during the v4 lifecycle. |
If we remove callbacks completely and it would be breaking changed then it would have to be a major version. Usually versioning follows implementation so if we imement something breaking before TS it would become 5.0.0 and Typescript may be a later version like 6.0.0 |
Vice verca this means if we don't break big changes then we can easily do this as 4.1.0 |
@jankapunkt, @HappyZombies I found some time to work on this a bit today. I removed If you get some time take a look and let me know if you have any questions/concerns: 4a360ee. If all looks good I'll continue to chip away at this. |
@jwerre do you mind open a draft PR so we don't forget you working on this? I will check it out later but I want to focus on some of the security-related issues for the next days. |
Callback support dropped in 5.0.0 see #190 |
Uh oh!
There was an error while loading. Please reload this page.
Callback support adds unneeded complexity. Models should be exclusively promise based version ^4.1.0. #20 (comment)
The text was updated successfully, but these errors were encountered: