Skip to content

Latest commit

 

History

History
212 lines (162 loc) · 6.31 KB

CHANGELOG.md

File metadata and controls

212 lines (162 loc) · 6.31 KB

0.8.1 (2022-12-17)

What's Changed

  • Support export default syntax in typescript for loaded files by @bbmarkus in #55
  • Remove a redundant request package #54 by @Leestex in #57
  • feat: update struct for add others types on create method by @devalexandre in #60
  • add raw-helper handlebars helper to init by @Karnith in #64
  • update moleculer-repl ^0.7.0 -> ^0.7.2 by @disce-omnes in #66

0.8.0 (2022-01-08)

Breaking changes

Updated moleculer-repl to 0.7.0. Changelog

Changes

  • update deps & audit fix
  • added typescript service file generator. #36
  • added test cases. #42
  • config filename configurable via MOLECULER_CONFIG environment variable.
  • fixed transporter issue in connect command. #53

0.7.1 (2020-04-09)

Changes

  • update deps & audit fix

0.7.0 (2020-02-12)

Moleculer updated to latest 0.14

With this version, you can connect to only v0.14 Moleculer nodes.

New call command

There is a call command to connect a Moleculer project & call an action with parameters. The result (stringified JSON) will be printed to the console what you can process with another tool.

The calling parameters should be started with @ prefix. The meta parameters should be started with # prefix.

Example Create Service

moleculer create service

Example with params

moleculer call math.add --transporter NATS --@a 5 --@b 3

Example with params & meta

moleculer call math.add --transporter NATS --@a 5 --@b 3 --#meta-key MyMetaValue

Example with post processing the result with jq

moleculer call "\$node.health" | jq '.mem.free'

The transporter can be defined via TRANSPORTER environment variable, as well.

Example with transporter env var

TRANSPORTER=nats://localhost:42222 moleculer call math.add --@a 5 --@b 3

New emit command

There is a emit command to connect a Moleculer project & emit an event with payload. The calling parameters should be started with @ prefix. The meta parameters should be started with # prefix.

Example with params

moleculer emit user.created --transporter NATS --@id 3 --@name John

Example with params & meta

moleculer emit math.add --transporter NATS --@id 3 --@name John --#meta-key MyMetaValue

Example with broadcast & groups

moleculer emit math.add --transporter NATS --broadcast --@id 3 --@name John --group accounts

Example with multi groups

moleculer emit math.add --transporter NATS --broadcast --@id 3 --@name John --group accounts --group mail

The transporter can be defined via TRANSPORTER environment variable, as well.

Example with transporter env var

TRANSPORTER=nats://localhost:42222 moleculer call math.add --@a 5 --@b 3

Changes

  • update dependencies
  • remove --cb, --metrics options
  • init command: add --answers <answer-json-filename> to load answer from file instead of stdin.
  • init command: add --install & --no-install option to enable/disable npm install after the files generated.
  • level parameter for the start, connect, call, emit command to set the logging level.

0.6.6 (2019-03-28)

Changes

  • update dependencies
  • add promptForProjectOverwrite to template meta properties to skip confirmation when the target directory exists.

0.6.5 (2019-03-06)

Changes

  • update dependencies
  • support multiple template directories by @ccampanale #22

0.6.4 (2019-02-20)

Changes

  • update dependencies

0.6.3 (2018-11-21)

Changes

  • update dependencies (moleculer v0.13.4, moleculer-repl v0.5.3)

0.6.2 (2018-10-30)

Changes

  • add templating in filenames by @ngraef

0.6.1 (2018-07-25)

Changes

  • add alias-template <template-name> <template-url> command by @faeron

0.6.0 (2018-07-08)

Changes

  • update dependencies
  • update Moleculer to v0.13.x

0.5.7 (2018-06-22)

Changes

  • add --config CLI option to load config file with broker options
    $ moleculer connect --config ./moleculer.config.js
    

0.5.6 (2018-04-30)

Changes

  • fix minimatch dependency

0.5.5 (2018-04-27)

Changes

  • fix existing target directory issue
  • add commands CLI option to load custom REPL commands
    $ moleculer connect --commands ./cmd/*.js
    

0.5.4 (2018-03-05)

Changes

  • fix handleBar helpers

0.5.3 (2018-03-04)

Changes

  • update dependencies
  • add if_or & if_and helpers
  • support skipInterpolation in meta.json
  • support helpers in meta.json

0.5.0 (2018-03-03)

Changes

  • support Moleculer v0.12.x
  • update dependencies