New
Secure service settings
To protect your tokens & API keys, define a $secureSettings: []
property in service settings and set the protected property keys.
The protected settings won't be published to other nodes and it won't appear in Service Registry. They are only available under this.settings
inside the service functions.
Example
// mail.service.js
module.exports = {
name: "mailer",
settings: {
$secureSettings: ["transport.auth.user", "transport.auth.pass"],
from: "sender@moleculer.services",
transport: {
service: 'gmail',
auth: {
user: 'gmail.user@gmail.com',
pass: 'yourpass'
}
}
}
// ...
};
Changes
- fix
cacher.clean
issue #435 - add
disableVersionCheck
option for broker transit options. It can disable protocol version checking logic in Transit. Default:false
- improve Typescript definition file. #442 #454
- waitForServices accept versioned service names (e.g.:
v2.posts
). - update dependencies (plus using semver ranges in dependencies)