Skip to content

1.5.0

Latest
Compare
Choose a tag to compare
@Nokitoo Nokitoo released this 23 May 10:30
· 46 commits to master since this release
1b5c8d2

Removed

  • Session's module user commands: loginAsActor, loginAnonymous, reassign. (#179)
  • Dev modes allowing to access to all user commands without acl. (#179)
  • msgServer.getMsgStreamUrl since it has been replaced by msgServer.getPublicConfig. (#212)
  • Some vaults: elasticsearch, dynamodb, manta, redis, memcached, sqlite3. (#220)

Supports only node >= v8.x (#200 #237)

Mage Error class (#164 #210)

Standard MageError class for user-land.

This should help:

  1. Standardize error management.
  2. Allow for throwing errors (and interrupt the execution flow)
    without necessarily logging an error.
  3. Allow to attach additional details to the error to be logged, thus
    removing the need for an additional log call prior to throwing.
  4. Attach a response code to be sent to the client; this also has the
    advantage of being part of the log data, thus making it easier
    to search for error occurences by code instead of by message
    content.

Archivist

  • Removed archivist.add since it could make transaction fail in flight without any means to recover. (#196)
  • archivist:create now implies archivist:migrate. (#234)
  • Changes archivist.scan return value format to retrieve the index. The new format is [ [index, value], [index, value], ... ]. (#216)

Couchbase vault (#222 #223)

  • Better errors.
  • Init the client at application boot rather than at first operation.
  • Fix 5.x compatibility.
  • Updated documentation in consideration.

API changes

  • Add changePassword method to the auth module. (#198)
  • Make user command cache optional. See how here. (#195)
  • In .yaml config files, empty fields are now overwritten by default.yaml. To disable an option, the field has to be set to false. (#225 #229)
  • Move vaults connections opening in setup() to open() method. (#228)

Documentation improvement

  • Add supported Node versions. (#208 #237)
  • Add built-in modules part + list MAGE built-in modules. (#218 #248 #253)
  • List MAGE external helpers modules. (#242)
  • Add warning to specify vaults need to be added in list, read and write order. (#217)
  • Explain how msgStream works, which is used by events. (#255)

Small changes

  • Updates subdependencies. (#200 #201 #213 #219)
  • Always exit the server on error when we are not in a running state (eg. startup, shutdown, etc). (#202)
  • Removed Readme files about the internal architecture of MAGE. (#199)
  • Fix MemoryVault and FileVault expiration time that did not update correctly when calling multiple times archivist.set. (#231 #236)
  • Add ttl for topics. More details here. (#232)
  • Fix SingleService service discovery which did not take into account type and name of the service. Thus, 2 services with a different name and type were able to communicate. (#245)
  • Expose client config with config.get user command. It's meant to be used by the SDK. (#243)