Skip to content

Releases: hemerajs/hemera

[email protected]

03 Oct 12:01
Compare
Choose a tag to compare

We rewrote the extension / middleware lifecycle and the plugin system.

Extension lifecycle

  • Removed async/await support in extensions due to performance and simplicity.
  • Removed support for generator functions.
  • Call send multiple times has no side effects.
  • First replied error is set others are ignored.
  • First replied value is sent others are ignored.
  • Request lifecycle is not aborted on business errors.
  • Removed req.locals.

Middleware

  • next has to be called explicit in the middleware.
  • Removed support for generator functions.
  • Pass reply interface instead of the raw resp object.
  • Removed req.locals.

Plugin

  • New Plugin signature function(hemera, options, done).
  • Plugin name is passed in options export.options = { name: 'myPlugin' } and is required.
  • exports.attributes was removed.
  • You can register .use() plugins in plugins the order is resolved correctly.
  • Enjoy all benefits of the Avvio module. We use it to bootstrap plugins asynchronously.
  • Introduce .decorate(name, fn, [deps,]) to expose data in plugins or on root.

Act

  • Removed support for generator functions.

Add

  • Removed support for generator functions.

Performance

General

  • Removed circuit breaker implementation. We will investigate in a plugin.
  • Emit clientResponseError or serverResponseError only for middleware, extensions or fatal errors not when an error is replied by the user.
  • Removed expose and use prototype based decorations.
  • Use Avvio to bootstrap plugins asynchronously.
  • Graceful shutdown routine as a separate plugin.
  • Use prettier with standardjs linting rules.
  • Added more unit tests.

Add static typing by flow

27 Dec 14:01
Compare
Choose a tag to compare

Add static typing by Flow

v0.1.62

13 Dec 23:09
Compare
Choose a tag to compare
remove version from package json

v0.1.59

11 Dec 01:37
Compare
Choose a tag to compare

Breaking changes:

  • Parambulator has been removed. There is no longer default payload validator. Please see Packages

Features:

v0.1.57

10 Dec 00:51
Compare
Choose a tag to compare
fixed benchmark

v0.1.56

08 Dec 23:27
Compare
Choose a tag to compare
0.1.56

v0.1.55

08 Dec 09:12
Compare
Choose a tag to compare
fixed scoping of timeout handler

v0.1.54

08 Dec 08:30
Compare
Choose a tag to compare
0.1.54

v0.1.53

07 Dec 00:40
Compare
Choose a tag to compare
set context before reply error

v0.1.52

06 Dec 01:41
Compare
Choose a tag to compare
0.1.52