From d61a75a5c2f7cc52f5e49cb86373ecb64bde84f3 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Mon, 10 Mar 2014 01:30:29 -0400 Subject: [PATCH] updated deprecation notices --- NOTES.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/NOTES.md b/NOTES.md index c1f5cbff5c..d268476fef 100644 --- a/NOTES.md +++ b/NOTES.md @@ -1,9 +1,15 @@ -### 0.4x Refactor Notes +## 0.4x Refactor Notes Please remove this file after 0.4x (or perhaps organize it so that we can see the history of breaking changes) +### Immediate Deprecation Notices -## Plugins +* `action:ajaxifying` is no longer triggered on body but on window instead, in line with other similar hooks. +* `filter:server.create_routes` and `filter:admin.create_routes` will have limited support (ajaxify works, but first-load will not). Please have a look at [this plugin](https://github.com/psychobunny/nodebb-plugin-kitchen-sink/blob/master/library.js#L16-L22) for an example on how to create routes in plugins from now on. -* filter:footer.build to be deprecated -* GET/PUT /hooks/fireHook route to be deprecated \ No newline at end of file +### Upcoming Deprecation Warnings + +* `filter:footer.build` will be deprecated for 0.4x in favour of the widget system (WIP) +* templates.setGlobal (server-side only) deprecated in favour of using res.locals +* `plugins/fireHook` route will be deprecated for 0.4x +* synchronous hooks will be deprecated for 0.4x - we're reducing complexity by removing the `callbacked: true` property in `plugin.json` - just use callbacks. \ No newline at end of file