Releases: clay/amphora
Releases · clay/amphora
Feature: Site Middleware
#622 allows for middleware to be defined on a per-site or per-route basis. In your site's controller (siites/<SITE>/index.js
) simply export middleware for the whole site to use:
module.exports.middleware = [
(req, res, next) => {
console.log(req.headers);
next();
}
]
Or attach middleware to a specific route:
module.exports.routes = [
{
path: '/',
middleware: [
(req, res, next) => {
console.log(req.headers);
next();
}
]
]
Courtesy of @yuliyv 🎉
Bugfix: PATCH CORS && Dependency Vulnerabilities
Fixes:
- Adds CORS support in for PATCH requests
- Updates development dependencies for security vulnerabilities
[BETA] 7.x Testing
v7.0.0-0 7.0.0-0
Feature: Publish Rules Error Messaging
Updates publishing rules to supply better error messaging around each publish rule which fails rather than the No items resolved
message of previous versions.
- If a named function is provided as a publish rule then the name of the function will be displayed next to the error
- If an anonymous function is provided as a publish rule then the index of the publish rule in the
resolvePublishUrl
array will be provided - Functions with
_
prefixed names are internal Amphora functions for resolving dynamic pages and pages with aurl
property set
Feature: More Logs & Bus Messages
Feature:
- Ensured that logs were being called on the server for client errors to make sure they're tracked
- Exposes save operations to the bus always
Bugfix: Bootstrap Memory
Bugfix:
- Rolled back changes to the bootstrap process where Claycli was exhausting CPU
v6.7.6-beta.6
6.7.6-beta.6
v6.7.6-beta.5
6.7.6-beta.5
v6.7.6-beta.4
6.7.6-beta.4
v6.7.6-beta.3
6.7.6-beta.3