Skip to content

Releases: bleupen/halacious

Version 5.0.1

12 Oct 12:59
Compare
Choose a tag to compare

Fixed link resolution issue #102

Version 5.0.0

08 May 19:58
Compare
Choose a tag to compare

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

14 Feb 12:50
Compare
Choose a tag to compare

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 to onPostHandler. This change enables response payload validation in your routes.
  • #98 curie link href's now show absolute paths when absolute is set to true.
  • #99 Auto-documetation rels now display correctly.

Many thanks to @Bazze!

version 3.7.1

09 Sep 12:23
Compare
Choose a tag to compare

fixes #93, #94 to update dependencies and resolve security violations. thanks @travi

version 3.7.0

26 Jul 13:43
Compare
Choose a tag to compare
  • Merged PR to fix #90 to reuse existing HAPI request
  • Merged PR to fix #92 to handle optional route parameters in rep.route()

version 3.6.0

13 Jul 20:17
Compare
Choose a tag to compare

added ability to specify marked options and completely override the documentation template. thanks, @felixheck

version 3.5.3

22 Feb 16:32
Compare
Choose a tag to compare

another urijs rename fix.

version 3.5.2

22 Feb 16:24
Compare
Choose a tag to compare

Fixes a require problem with "URIjs". All 3.5 fixes now merged to master. Apologies for any inconvenience

version 3.5.0

21 Feb 16:09
Compare
Choose a tag to compare
  • #77 Added requireHalJsonAcceptHeader boolean configuration parameter, which triggers hal processing only if the client explicitly requests application/hal+json
  • Replaced deprecated swig library with jade for rel documentation
  • changed "URIjs" dependency to "urijs"

version 3.4.0

26 Oct 18:45
Compare
Choose a tag to compare
  • supports hapi 11 by using server.ext('onPreStart') instead of server.after()
  • added support for host configuration parameter for absolute urls