Releases: asd-xiv/blocks
Releases · asd-xiv/blocks
v1.3.1
v1.3.0
v1.2.1
v1.2.0
v1.1.0
v1.0.0
1.0.0 (2019-08-14)
Features
- middleware: Use
helmet
middleware for security headers instead of hard-coded headers (b20c1c9) - router: Default schema, optional schema and simpler format (f177b81)
- router:
Route.isAllowed
returns false by default if not defined (e580d21) - Config plugin uses only environment variable as source and exposes important setting of
ajv
,qs
,helmet
andcors
(8e42710)
BREAKING CHANGES
Schema format changed
- no longer need to define the top level object
- can provide only the keys that are different compared to the default - see
src/plugins/route-default.schema.js
Old:
module.exports = {
type: "object",
properties: {
headers: {...},
params: {...},
query: {...},
body: {...},
},
}
New:
module.exports = {
headers: {...},
params: {...},
query: {...},
body: {...},
}
settings
object no longer used
When creating a block
, the settings
object is no longer used to configure the application. See main example.
Use dotenv
lib and _env
template file for configuring the application's behaviour
v0.7.0 - 11 July 2019
Change
- Update packages
v0.6.2 - 10 April 2019
Change
- Allow passing of absolute file paths for plugins, middleware and routes when initialising
blocks
v0.6.1 - 10 April 2019
Change
- Update
pluginus
to allow plugins in commonjs format as well
v0.6 - 10 April 2019
Add
- Can add "beforeSend" middleware
- Diagrams and words describing how things work