Skip to content

Releases: fex-team/node-ral

0.15.0: Merge pull request #58 from fex-team/greenkeeper-mocha-3.1.1

10 Oct 08:38
Compare
Choose a tag to compare
  • 支持portOffset配置,会与服务的port相加获得真实使用的端口

0.12.0

19 Aug 04:21
Compare
Choose a tag to compare
  • 支持Redis服务接入

0.11.1

25 Jul 10:39
Compare
Choose a tag to compare
  • const ralPromise = require('node-ral').RALPromise 添加 init 等 function
  • 修复设置了mockDir但不配置RAL_MOCK时会抛出异常的问题

0.10.0

06 Jul 08:55
Compare
Choose a tag to compare
  • 支持真正的 stream 模式,不再缓存请求中转信息

0.9.4

06 Jul 07:36
Compare
Choose a tag to compare
  • 修复解压gzip响应时的异常处理问题
  • 回退soap版本减少依赖

0.9.2

21 Jun 03:50
Compare
Choose a tag to compare
  • 修复HTTP请求重试时,query参数会被重复设置多次的问题,于0.7.2引入

0.9.1

14 Jun 09:12
Compare
Choose a tag to compare
  • 修复 unpack 为 stream 时,extras 信息无法获取的问题

release 0.9.0

25 May 10:12
Compare
Choose a tag to compare
  • 支持protobuf数据
module.exports = {
    'PB_BACKEND': {
        unpack: 'protobuf',
        pack: 'protobuf',
        encoding: 'utf-8',
        balance: 'random',
        protocol: 'http',
        protoPaths: [__dirname + '/requestt.proto', __dirname + '/response.proto'],
        encodeMessageName: 'Request',
        decodeMessageName: 'Response',
        server: [{
            host: '127.0.0.1',
            port: 2339
        }]
    }
};

0.8.2

27 Apr 08:55
Compare
Choose a tag to compare
  • 修复degrade功能在出现同步异常的情况下无法正确降级的情况
  • 支持Node.js 6.x

0.8.0

26 Apr 17:20
Compare
Choose a tag to compare
  • 支持一致性哈希的负载均衡
module.exports = {
    'service': {
        'balance': 'hashring',
        ...
    }
}

ral('service', {
    balanceKey: 'some key' // 一致性负载均衡必须的属性,由业务根据缓存策略提供
});