This repository was archived by the owner on Apr 8, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Version 0.23.0
Known Issues
Things that don't work or don't work as expected, and which will be addressed in a future release
onConnectionError
event of the ZBClient and ZBWorker/ZBBatchWorker is not debounced, and may be called multiple times in succession when the channel jitters, or the broker is not available. See #161.Breaking Changes
Changes in APIs or behaviour that may affect existing applications that use zeebe-node.
job.variables
andjob.customHeaders
in the worker job handler are now typed as read-only structures. This will only be a breaking change if your code relies on mutating these data structures. See the section "Working with Workflow Variables and Custom Headers" in the README for an explanation on doing deep key updates on the job variables.eagerConnection: true
to the client constructor options, or setting the environment variableZEEBE_NODE_EAGER_CONNECTION
totrue
. See #151.ZBSimpleLogger
by default, for friendly human-readable logs. This will only be a breaking change if you currently rely on the structured log output. To get the previous structured log behaviour, pass instdout: ZBJsonLogger
to theZBClient
constructor options, or set the environment variableZEEBE_NODE_LOG_TYPE
toJSON
. Refer to the "Logging" section in the README.New Features
New shiny stuff.
ZBBatchWorker
. This allows you to batch jobs that are unrelated in a BPMN model, but are related with respect to some (for example: rate-limited) external system. See the README for details. Thanks to Jimmy Beaudoin (@jbeaudoin11) for the suggestion, and helping with the design. Ref: #134.ZBClient.createWorker
has two new, additional, method signature. The first is a single object parameter signature. This is the preferred signature if you are passing in configuration options. The second signature is a version of the original that elides theid
for the worker. With this, you can create a worker with just a task type and a job handler. A UUID is assigned as the worker id. This is the equivalent of passing innull
as the first parameter to the original signature. The previous method signature still works, allowing you to specify an id if you want. See this article for details.ZBLogMessage
interface to help you implement a custom logger #127. For an example of a custom logger, see the Zeebe GitHub Action implementation.ZBSimpleLogger
that produces flat string output. If you are not interested in structured logs for analysis, this log is easier for humans to read.ZBClient
now contains anactivateJobs
method. This effectively exposes the entire Zeebe GRPC API, and allows you to write applications in the completely unmanaged style of the Java and Go libraries, if you have some radically different idea about application patterns.ZEEBE_INITIAL_CONNECTION_TOLERANCE
. See this article, issue #133, and the README section "Initial Connection Tolerance" for more details.ZEEBE_CONNECTION_TOLERANCE
, as well as the previous constructor argumentconnectionTolerance
.design
directory.Fixes
long
dependency, unless the two packages were installed in a specific order. We've explicitly addedlong
to the dependencies of zeebe-node to address this, and reported it to kafka-node. Thanks to @need4eat for discovering this and helping to track down the cause. See #124.