Releases: asd-xiv/blocks
Releases · asd-xiv/blocks
v3.6.0
v3.5.0
v3.4.0
v3.3.0
v3.2.0
v3.1.0
v3.0.0
3.0.0 (2020-01-11)
Features
- Change "block" resolve and update plugin manager. (e9574ee)
BREAKING CHANGES
- Change what block resolves to:
const app = block({
plugins: glob.sync(...),
routes: glob.sync(...),
})
// old
.then(({ Plugins, middlewarePipeline }) => {
...
})
// new
.then(([middleware, plugins]) => {
...
})
Defining plugins:
module.exports = {
depend: ["Lorem"],
// old
create: (/* props */) => Lorem => {
console.log("Checking DB connection")
// Database connection, model loading etc
...
return {
Todos: ...,
Comments: ...,
}
}
// new - no more props, use env vars
create: Lorem => {
console.log("Checking DB connection")
// Database connection, model loading etc
...
return {
Todos: ...,
Comments: ...,
}
}
}
v2.0.1
v2.0.0
2.0.0 (2019-11-20)
Features
- Deprecate Config Plugin (d54f2c8)
- Parse body content with "qs" for req with content type "x-www-form-urlencoded" (e1c54f6)
BREAKING CHANGES
- Default Config plugin is no longer available in Plugin object.
All env setting should be accessed directly from "process.env" and processed locally where they are used.