- allow to pass meta as JSON string #71
- Adds stream objectMode support and print stream to stdout #72
- show params of events #74
- add
--$local
option tocall
#66
- add REPL history #64
- rewritten types #62. Typescript users need it for Moleculer >=v0.14.20.
- add
--loadFull
tocall
command #61 - alias array supported #59
Rewritten codebase without vulnerable vorpal
#57
Thanks to @AndreMaz, he has rewritten the REPL module because we had a lot of issue with the unmaintained vorpal
dependency.
This new version is compatible with the previous versions and support everything what supported in previous versions but it can open new opportunities for us in the future.
Kudos to André 🎉
You may encounter changes in operations, this is why we increased the major version number.
- add
cache keys
&cache clear
commands.
- improve
info
packet to show metricsreporter
and tracingexporter
. - fix 'actions' command separation.
To set meta keys, use #
prefix for arguments.
moleculer λ call greeter.echo --a 5 --#b 3
>> Response:
{ params: { a: 5 }, meta: { b: 3, '$repl': true } }
- update deps & audit fix
- remove console log
- add autocomplete to dcall.
- return vorpal instance in
broker.repl()
. - fix
metrics
execution if metrics is disabled.
- change chalk to kleur.
- fix middleware printing in
info
command. - new
metrics
command for Moleculer v0.14. - filtering in
services
command considers the service version. - update dependencies
- fixed exit/quit command issue.
- add
$rest: true
intoctx.meta
when usingcall
ordcall
commands. - add meta option to
bench
command.bench <action> [jsonParams] [meta]
- fixed vulnerability issues in the vorpal library.
- supporting Moleculer v0.14
- added
destroy
method that allows to destroy a locally running service by providingserviceName
- add
meta
parameter forcall
&dcall
commands. - update deps
- add repl options to change default delimiter (
mol $
).broker.repl({ delimiter: "moleculer λ", customCommands: [...] });
- update deps
- add streaming support for
call
anddcall
commands. - update deps
- fix some bugs
- show service version if it's
0
- fix autocomplete bugs
- add
cls
command to clear console
- fix number of services in
nodes
result - update dependencies
- handle JSON parsing error.
- update dependencies
- support Moleculer v0.13.x
- filtering feature in
nodes
,services
,actions
&events
command. (E.g.:actions -f users.*
) - unix-like key value pair normalization is switched off.
- support Moleculer v0.12.x
- support custom REPL commands
- new command:
bench [options] <action> [jsonParams]
: Benchmark services - new command:
env
: List of environment variables - new command:
clear
: Clear cacher - measure execution time in
call
&dcall
commands - add autocomplete to
emit
andbench
as well - extendable with custom commands via ServiceBroker options (
replCommands
) - new options in
call
&dcall
commands:--load
- load params from a JSON file. The filename generated from action name. E.g. forposts.find
˙action the filename is<current_dir>/posts.find.params.json
--load [filename]
- load params from the specified JSON file--save
- save response to file. The filename generated from action name. E.g. forposts.find
˙action the filename is<current_dir>/posts.find.response.json
. The extension is.json
when the response isobject
. Otherwise it is.txt
.--save [filename]
- save reponse to the specified file
- new options in
nodes
command:--raw
- print entire service registry to then console as JSON--save [filename]
- save then entire service registry to the specified file as JSON