If you were a user for v1 and would like to upgrade to v2 please take the following steps:
--sidebar
command-line argument is removed. it had no effect for a long time already and was kept for backward compatibilitybook
extension is renamed to blocks
and has the same book
shortcode. if you’re importing it manually you need to change the import path to import blocks
insteadxlog.RegisterExtension
your extension in your init()
function then Register*
the rest of your components in the extension .Init()
function instead of the global one. this allow for future development to enable/disable extensions by the user.xlog.Config.Readonly
instead of xlog.READONLY
during initialization (extension Init()
)Get/Post/Delete/..etc
doesn’t accept middlewares parameters anymore.versions
subdirectories you can remove them by running rm -rf *.versions