Skip to content

Commit

Permalink
Merge pull request #111 from nats-io/versionbump
Browse files Browse the repository at this point in the history
Version bump for support 'preserveBuffers' option.
  • Loading branch information
Alberto Ricart authored Jan 11, 2017
2 parents df7753c + d6788a5 commit 592efdf
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,15 @@ nc2.publish('foo');

nc = nats.connect({'servers':servers, 'encoding': 'ascii'});



// PreserveBuffers

// To prevent payload conversion from a Buffer to a string, set the
// preserveBuffers option to true. Message payload return will be a Buffer.

nc = nats.connect({'preserveBuffers': true);

```
See examples and benchmarks for more information..
Expand Down
3 changes: 2 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ export interface ClientOpts {
name?: string,
yieldTime?: number,
waitOnFirstConnect?: boolean,
json?: boolean
json?: boolean,
preserveBuffers?: boolean
}

export interface SubscribeOptions {
Expand Down
2 changes: 1 addition & 1 deletion lib/nats.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var net = require('net'),
* Constants
*/

var VERSION = '0.7.0',
var VERSION = '0.7.2',

DEFAULT_PORT = 4222,
DEFAULT_PRE = 'nats://localhost:',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nats",
"version": "0.7.0",
"version": "0.7.2",
"description": "Node.js client for NATS, a lightweight, high-performance cloud native messaging system",
"keywords": [
"nats",
Expand Down

0 comments on commit 592efdf

Please sign in to comment.