Releases: clay/amphora
Feature: unpublish hook old page uri
Bug Fix: getSiteFromPrefix
page-plugin-hooks
add plugin hooks for page actions #482
Bug Fix: Webhook Logging
- Fixed issue where notification errors were not being logged with the logging package (#484)
Feature: Component Rendering Message
When rendering a route defined by a site's controller, Amphora logs a success message with the render time of the page. This messaging is now added to a component that's rendered in a non-JSON format at it's specific route: i.e. site.com/components/foo/instances/test.html
Additionally, added stack trace to error messages for server error logs.
Feature: Renderer Specific Model.js Files
- Allows for
<RENDERER_EXTENSION>.model.js
files to be included in components (#480)
For a detailed explanation of the rationale, please refer to the the PR.
These files should closely mirror the regular model.js files, except they only need to export one function by default.
module.exports = function (ref, data, locals) {
// Transform data
// Return a Promise which resolves data
// or an object directly
return data;
};
Plugins: Stream Support
PR: #476
- Adds plugin Streams support for the
publish
andsave
events. UsepublishStream
andsaveStream
. - Bug fix where
save
andpublish
events could collide
5.0 RC 2
- Changes all prefixing of keys to be by slug
- Adds functionality for finding site by slug
- General underscoring consistency improvements
- Deprecates some helper functions in favor of moving them to
clayutils
Bug Fix: Multiple Schedule Instances
Fixes a faulty assumption around creating multiple @scheduled
instances of pages and layouts.
Bug Fix: Deleting Scheduled Instances
Specifies a @scheduled
specific DELETE
route for pages and components so that users with a write
auth level can unschedule pages.