Skip to content

Releases: clay/amphora

Feature: Site Middleware

10 Dec 18:28
Compare
Choose a tag to compare

#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

06 Dec 21:37
Compare
Choose a tag to compare

Fixes:

  • Adds CORS support in for PATCH requests
  • Updates development dependencies for security vulnerabilities

[BETA] 7.x Testing

29 Jan 14:34
Compare
Choose a tag to compare
[BETA] 7.x Testing Pre-release
Pre-release
v7.0.0-0

7.0.0-0

Feature: Publish Rules Error Messaging

31 Aug 13:51
Compare
Choose a tag to compare

#603

screen shot 2018-08-30 at 12 41 05 pm

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 a url property set

Feature: More Logs & Bus Messages

24 Aug 16:48
Compare
Choose a tag to compare

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

24 Aug 16:51
Compare
Choose a tag to compare

Bugfix:

  • Rolled back changes to the bootstrap process where Claycli was exhausting CPU

v6.7.6-beta.6

24 Aug 16:46
Compare
Choose a tag to compare
v6.7.6-beta.6 Pre-release
Pre-release
6.7.6-beta.6

v6.7.6-beta.5

24 Aug 16:46
Compare
Choose a tag to compare
v6.7.6-beta.5 Pre-release
Pre-release
6.7.6-beta.5

v6.7.6-beta.4

24 Aug 16:46
Compare
Choose a tag to compare
v6.7.6-beta.4 Pre-release
Pre-release
6.7.6-beta.4

v6.7.6-beta.3

24 Aug 16:46
Compare
Choose a tag to compare
v6.7.6-beta.3 Pre-release
Pre-release
6.7.6-beta.3