Skip to content

Releases: onehilltech/blueprint

v2.7.0

11 Mar 02:09
Compare
Choose a tag to compare

This version includes the following features:

  • ResourceController supports auto-loading of policies. The name of the policy for a resource use the following directory structure and naming convention namespace/name/action.js in the policies directory. namespace is optional.

v2.6.0

10 Mar 21:33
Compare
Choose a tag to compare

This release includes the following changes:

  • ResourceController supports namespace option
  • Converted private variables on ResourceController to attributes

v2.5.0

10 Mar 20:41
Compare
Choose a tag to compare

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

10 Mar 20:46
Compare
Choose a tag to compare

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

10 Mar 20:57
Compare
Choose a tag to compare

This release includes the following changes:

  • Replaced Policy.and and Policy.or with Policy.all and Policy.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

28 Jan 20:26
Compare
Choose a tag to compare
2.0.1

v2.0.0

28 Jan 19:21
Compare
Choose a tag to compare

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 on BaseController.checkSchemaThen expects function(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

21 Dec 19:52
Compare
Choose a tag to compare

This release includes the following fixes:

  • Added more context to the deprecated messages

v1.9.0

21 Dec 18:25
Compare
Choose a tag to compare

This release includes the following changes:

  • Deprecated allOutdated and outdated on ResourceController in favor of HEAD and Last-Modified http header.

This release includes the following bug fixes:

  • The HEAD verb was overshadowed by the GET verb due to how Express.js handles GET and HEAD verbs.

v1.8.0

21 Dec 06:20
Compare
Choose a tag to compare

This release includes the following features:

  • The ResourceController requires name option at construction time instead of id.
  • The ResourceController define the name getter property.