Releases: onehilltech/blueprint
Releases · onehilltech/blueprint
v2.7.0
v2.6.0
v2.5.0
This minor release includes the following features:
- Policies specified in the router that begin with
?
are considered optional, and will not halt the loading of the application if not found. - Application auto-loads request validators for express-validator from
app/validators
directory. - Application auto-loads request sanitizers for express-validator from
app/sanitizers
directory.
This release also includes bug fixes and the following enhancements:
- Switched to using a
Promise
for lazying-loading policies
v2.4.0
This minor release includes the following changes:
- When policies are executed in the context of a controller has changed. Policies
are executed after the sanitize method, and before the execute method. If a controller
method returns a function, or an array, then the policy is executed before either.
v2.3.0
This release includes the following changes:
- Replaced
Policy.and
andPolicy.or
withPolicy.all
andPolicy.any
, respectively. - Policies to apply to a route (or resource) are now specified in the router via the
policy
attribute at the level of application (e.g., route or verb/action)
This release also includes bug fixes.
v2.0.1
v2.0.0
This version includes all changes and fixes between 1.0.0 and 2.0.0. This version includes the following breaking changes:
- The
then
parameters onBaseController.checkSchemaThen
expectsfunction(req, callback)
- Standardized the structure of an error object returned for requests so clients can react better to errors.
- Improve error handling when a application resource (e.g., model, listener, etc.) fails to load.
- Changed the type hierarchy of errors in Blueprint.
- Removed the
/outdated
routes on resources.
v1.9.1
v1.9.0
This release includes the following changes:
- Deprecated
allOutdated
andoutdated
onResourceController
in favor ofHEAD
andLast-Modified
http header.
This release includes the following bug fixes:
- The
HEAD
verb was overshadowed by theGET
verb due to how Express.js handlesGET
andHEAD
verbs.