Skip to content

Releases: moleculerjs/moleculer-repl

v0.4.0

08 Jul 13:38
Compare
Choose a tag to compare

Changes

  • 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 and bench 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. for posts.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. for posts.find˙action the filename is <current_dir>/posts.find.response.json. The extension is .json when the response is object. 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

v0.3.1

22 Sep 19:51
Compare
Choose a tag to compare

New commands

  • broadcast <eventName> Broadcast an event
  • broadcastLocal <eventName> Broadcast an event to local services

Changes

  • nodes command hides which are not available more than 1 min. List all offline nodes too with nodes --all command.

v0.3.0

22 Sep 19:48
Compare
Choose a tag to compare

Compatibility with Moleculer v0.11.x