Releases: clay/amphora
Final RC Candidate for 4.0
v4.0.0-rc3 4.0.0-rc3
4.0.0-rc2
- Remove
components/:name@version
support - Test coverage upping
Cache Control Configuration
First addition to controlling caching in Amphora.
Allows for configuration of Express maxAge
for serving static assets. To implement pass in the cacheControl
object with the staticMaxAge
property. The value of the property should be the number of milliseconds an asset is stored in browser cache.
amphora({
app: app,
cacheControl: {
staticMaxAge: 3600000
},
// ...any other options
});
Another Auth Url Patch
Last patch needed on more patch to account for when a site isn't found.
Auth Url Patch
Fun bug! An issue was found that if you have a site as a subdomain of another site, then trying to login will re-direct you to the host site's login page.
This issue is going to be solved in Amphora 4.0 when all sites share a pool of users, but for right now it's an issue.
4.0.0-rc1
- Removing legacy support of server.js/index.js
- Removing .html routes for updating component data
- Updates packages used for testing
`@published` Lists
Adds a new route to get only the @published
instances of components and pages.
components/:name/instances/@published
: shows all published instances of that componentpages/@published
: shows all published pages
Plugin Update
Thanks to @cruzanmo for adding a new feature, documentation and making previous plugin hooks more consistent #427
- Added
publish
plugin hook - Made args to handlers consistent by wrapping non-array operations in an array
- Added a nice doc on plugins
Plugin Publish Beta 1
Beta release of #427
Expose Request Params & Query
This feature release exposes the req.query
and req.params
object in locals
for model.js
/server.js
/upgrade.js
files.
For further information on these two objects refer to the ExpressJS documentation as Amphora is simply passing these objects without modifying them in any way.