Skip to content

Commit

Permalink
remove unsued constants, update blog post
Browse files Browse the repository at this point in the history
  • Loading branch information
StarpTech committed Mar 19, 2018
1 parent 6eda20e commit 338872a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
10 changes: 0 additions & 10 deletions packages/hemera/lib/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,33 +32,23 @@ module.exports = {
REQUEST_TYPE_PUBSUB: 'pubsub',
REQUEST_TYPE_REQUEST: 'request',
// Application errors
JSON_PARSE_ERROR: 'Invalid JSON payload',
TOPIC_SID_REQUIRED_FOR_DELETION: 'Topic or sid is required for deletion',
ACT_TIMEOUT_ERROR: 'Timeout',
NO_TOPIC_TO_SUBSCRIBE: 'No topic to subscribe',
NO_TOPIC_TO_REQUEST: 'No topic to request',
PATTERN_ALREADY_IN_USE: 'Pattern is already in use',
INVALID_ERROR_OBJECT: 'No native Error object passed',
PATTERN_NOT_FOUND: 'No handler found for this pattern',
IMPLEMENTATION_ERROR: 'Bad implementation',
PAYLOAD_PARSING_ERROR: 'Invalid payload',
ADD_MIDDLEWARE_ERROR: 'Middleware error',
PAYLOAD_VALIDATION_ERROR: 'Invalid payload',
ADD_ADDED: 'ADD - ADDED',
BUSINESS_ERROR: 'Business error',
FATAL_ERROR: 'Fatal error',
EXTENSION_ERROR: 'Extension error',
INVALID_EXTENSION: 'Invalid extension type',
INVALID_EXTENSION_HANDLER: 'Extension must be from type "function"',
MISSING_DECORATE_DEPENDENCY: 'Missing decorate dependency',
DECORATION_ALREADY_DEFINED: 'Decoration has been already added',
GRACEFULLY_SHUTDOWN: 'Gracefully shutdown',
ACT_PATTERN_REQUIRED: 'Pattern is required to start an act call',
ADD_PATTERN_REQUIRED: 'Pattern is required to define an add',
TERMINATE_AFTER_TIMEOUT: 'Terminate process after timeout',
PROCESS_TERMINATED: 'Process terminated',
TRIGGERING_CLOSE_HOOK: 'Triggering close hook',
REPLY_ERROR_ALREADY_SET: 'Error already set',
REPLY_ALREADY_SENT: 'Reply already sent',
TRANSPORT_OPTIONS_DIFFER:
'Transport options differ from the first registration to this topic',
Expand Down
9 changes: 5 additions & 4 deletions website/blog/2017-03-18-new-version-5.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@ This release is a ground-breaking refactoring of the core. The goal was to simpl

### Breaking changes:

* Removed `Reply.end`
* Removed `Reply.end()`
* Removed `hemera.root` property
* Removed `Hemera.reply` in favor of `hemera.reply.next` to send multiple responses in a row
* Removed `hemera.fatal()`
* Removed `Hemera.reply()` in favor of `hemera.reply.next()` to send multiple responses in a row
* Removed configuration properties `crashOnFatal`, `shouldCrash`. The developer is responsible to catch these errors
* Removed `CodecPipeline`
* Removed `encoder`, `decoder`. We provide setter functions for client and server encoding
* Remove support to register multiple plugins at once with `hemera.use`
* Remove `plugin$`, plugins property, remove `setOption`, `setConfig` methods
* Remove `plugin$`, plugins property, remove `hemera.setOption()`, `hemera.setConfig()` methods
* Remove functionality to to send a response inside `serverPreResponse`. This was confusing because the payload is already set at this point
* Load plugins only on `hemera.ready` not when `hemera.use` is called
* Load plugins only on `hemera.ready()` not when `hemera.use()` is called
* We break the support of simple return values in `add` or `middlewares` without the use of callback or promises

### New features:
Expand Down

0 comments on commit 338872a

Please sign in to comment.