hemera

🔬 Writing reliable & fault-tolerant microservices in Node.js https://hemerajs.github.io/hemera/

MIT License

Downloads
77.3K
Stars
805
Committers
20

Bot releases are hidden (Show)

hemera -

Published by StarpTech about 7 years ago

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.
hemera - Add static typing by flow

Published by StarpTech almost 8 years ago

Add static typing by Flow

hemera -

Published by StarpTech almost 8 years ago

hemera -

Published by StarpTech almost 8 years ago

Breaking changes:

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

Features:

hemera -

Published by StarpTech almost 8 years ago

hemera -

Published by StarpTech almost 8 years ago

hemera -

Published by StarpTech almost 8 years ago

hemera -

Published by StarpTech almost 8 years ago

hemera -

Published by StarpTech almost 8 years ago

hemera -

Published by StarpTech almost 8 years ago

hemera -

Published by StarpTech almost 8 years ago

hemera -

Published by StarpTech almost 8 years ago

hemera - Hemera 0.1.31

Published by StarpTech almost 8 years ago

hemera -

Published by StarpTech almost 8 years ago

Package Rankings
Top 2.0% on Npmjs.org
Badges
Extracted from project README
appcom-interactive amerbank savicontrols mercado unico