Releases: bleupen/halacious
Releases · bleupen/halacious
Version 5.0.1
Version 5.0.0
Added support for representation.configure()
For example:
handler: function(req, reply) {
const result = {
name: 'John Doe',
bossId: 10001,
toHal: function(rep, done) {
rep.configure({
// provide a conf object similar to what you would use in a route definition
links: {
boss: r => r.route('boss.lookup', { id: this.bossId })
},
embedded: {}
}, done);
}
};
}
I rolled the major version because this is a non-trivial refactoring, however I have not encountered any test regressions or problems in my own applications.
Version 4.0.0
Merged three PR's, courtesy of @Bazze. I decided to bump the major version because there could be some breaking changes for those of you who use inject()
in your code or tests.
- #97 Halacious processing has been moved from
onPreResponse
toonPostHandler
. This change enables response payload validation in your routes. - #98
curie
link href's now show absolute paths whenabsolute
is set to true. - #99 Auto-documetation rels now display correctly.
Many thanks to @Bazze!
version 3.7.1
version 3.7.0
version 3.6.0
added ability to specify marked options and completely override the documentation template. thanks, @felixheck
version 3.5.3
another urijs rename fix.
version 3.5.2
Fixes a require problem with "URIjs". All 3.5 fixes now merged to master. Apologies for any inconvenience
version 3.5.0
version 3.4.0
- supports hapi 11 by using server.ext('onPreStart') instead of server.after()
- added support for
host
configuration parameter for absolute urls