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/validatorsdirectory. - Application auto-loads request sanitizers for express-validator from
app/sanitizersdirectory.
This release also includes bug fixes and the following enhancements:
- Switched to using a
Promisefor 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.andandPolicy.orwithPolicy.allandPolicy.any, respectively. - Policies to apply to a route (or resource) are now specified in the router via the
policyattribute 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
thenparameters onBaseController.checkSchemaThenexpectsfunction(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
/outdatedroutes on resources.
v1.9.1
v1.9.0
This release includes the following changes:
- Deprecated
allOutdatedandoutdatedonResourceControllerin favor ofHEADandLast-Modifiedhttp header.
This release includes the following bug fixes:
- The
HEADverb was overshadowed by theGETverb due to how Express.js handlesGETandHEADverbs.