Skip to content

v9.17.0

Compare
Choose a tag to compare
@nhunzaker nhunzaker released this 13 Jan 18:22
· 1326 commits to master since this release

Plugins no longer require a next argument. For example, consider:

function Plugin (app, options, next) {
  app.listen(function() {
    console.log("I changed!")
  })

  next()
}

This plugin is entirely synchronous, yet relies on next() to advance plugin installation forward. As of this release, omitting the next argument causes a plugin to be synchronously processed:

function Plugin (app, options) {
  app.listen(function() {
    console.log("I changed!")
  })
}

This is not mandatory, and designed to streamline simple plugins.