0.6.0 Breaking Changes
-
So with most (all?) multi-argument hooks being updated to use a single data object, what will become of the single argument hooks? Will they get the same treatment with in mind that more data can be added later?
Sorry if this has been discussed before, must've missed it.
-
Ideally we should change those to be objects as well so we don't have to do this amount of breaking changes in the future. Ie stuff like
plugins.fireHook('action:post.delete', pid);
Should be
plugins.fireHook('action:post.delete', {pid: pid, uid:uid});
There aren't alot of these as far as I know so I will make a list and let you all know about the changes here when they happen.
-
-
@baris make every. Single. Hook. Have an object param. That way we will never ever need to worry about breaking changes again!
Seriously: consistency is the best possible thing you can have with software