UNPKG

38.5 kBMarkdownView Raw
1Changelog
2=========
3
4## v.2.6.3 - 31 Oct, 2016
5
6Bugfixes
7
8- Do not change the tls setting to camel_case
9- Fix domain handling in combination with the offline queue (2.5.3 regression)
10
11## v.2.6.2 - 16 Jun, 2016
12
13Bugfixes
14
15- Fixed individual callbacks of a transaction not being called (2.6.0 regression)
16
17## v.2.6.1 - 02 Jun, 2016
18
19Bugfixes
20
21- Fixed invalid function name being exported
22
23## v.2.6.0 - 01 Jun, 2016
24
25In addition to the pre-releases the following changes exist in v.2.6.0:
26
27Features
28
29- Updated [redis-parser](https://github.com/NodeRedis/node-redis-parser) dependency ([changelog](https://github.com/NodeRedis/node-redis-parser/releases/tag/v.2.0.0))
30 - The JS parser is from now on the new default as it is a lot faster than the hiredis parser
31 - This is no BC as there is no changed behavior for the user at all but just a performance improvement. Explicitly requireing the Hiredis parser is still possible.
32- Added name property to all Redis functions (Node.js >= 4.0)
33- Improved stack traces in development and debug mode
34
35Bugfixes
36
37- Reverted support for `__proto__` (v.2.6.0-2) to prevent and breaking change
38
39Deprecations
40
41- The `parser` option is deprecated and should be removed. The built-in Javascript parser is a lot faster than the hiredis parser and has more features
42
43## v.2.6.0-2 - 29 Apr, 2016
44
45Features
46
47- Added support for the new [CLIENT REPLY ON|OFF|SKIP](http://redis.io/commands/client-reply) command (Redis v.3.2)
48- Added support for camelCase
49 - The Node.js landscape default is to use camelCase. node_redis is a bit out of the box here
50 but from now on it is possible to use both, just as you prefer!
51 - If there's any documented variable missing as camelCased, please open a issue for it
52- Improve error handling significantly
53 - Only emit an error if the error has not already been handled in a callback
54 - Improved unspecific error messages e.g. "Connection gone from end / close event"
55 - Added `args` to command errors to improve identification of the error
56 - Added origin to errors if there's e.g. a connection error
57 - Added ReplyError class. All Redis errors are from now on going to be of that class
58 - Added AbortError class. A subclass of AbortError. All unresolved and by node_redis rejected commands are from now on of that class
59 - Added AggregateError class. If a unresolved and by node_redis rejected command has no callback and
60 this applies to more than a single command, the errors for the commands without callback are aggregated
61 to a single error that is emitted in debug_mode in that case.
62- Added `message_buffer` / `pmessage_buffer` events. That event is always going to emit a buffer
63 - Listening to the `message` event at the same time is always going to return the same message as string
64- Added callback option to the duplicate function
65- Added support for `__proto__` and other reserved keywords as hgetall field
66- Updated [redis-commands](https://github.com/NodeRedis/redis-commands) dependency ([changelog](https://github.com/NodeRedis/redis-commands/releases/tag/v.1.2.0))
67
68Bugfixes
69
70- Fixed v.2.5.0 auth command regression (under special circumstances a reconnect would not authenticate properly)
71- Fixed v.2.6.0-0 pub sub mode and quit command regressions:
72 - Entering pub sub mode not working if a earlier called and still running command returned an error
73 - Unsubscribe callback not called if unsubscribing from all channels and resubscribing right away
74 - Quit command resulting in an error in some cases
75- Fixed special handled functions in batch and multi context not working the same as without (e.g. select and info)
76 - Be aware that not all commands work in combination with transactions but they all work with batch
77- Fixed address always set to 127.0.0.1:6379 in case host / port is set in the `tls` options instead of the general options
78
79## v.2.6.0-1 - 01 Apr, 2016
80
81A second pre-release with further fixes. This is likely going to be released as 2.6.0 stable without further changes.
82
83Features
84
85- Added type validations for client.send_command arguments
86
87Bugfixes
88
89- Fixed client.send_command not working properly with every command and every option
90- Fixed pub sub mode unsubscribing from all channels in combination with the new `string_numbers` option crashing
91- Fixed pub sub mode unsubscribing from all channels not respected while reconnecting
92- Fixed pub sub mode events in combination with the `string_numbers` option emitting the number of channels not as number
93
94## v.2.6.0-0 - 27 Mar, 2016
95
96This is mainly a very important bug fix release with some smaller features.
97
98Features
99
100- Monitor and pub sub mode now work together with the offline queue
101 - All commands that were send after a connection loss are now going to be send after reconnecting
102- Activating monitor mode does now work together with arbitrary commands including pub sub mode
103- Pub sub mode is completly rewritten and all known issues fixed
104- Added `string_numbers` option to get back strings instead of numbers
105- Quit command is from now on always going to end the connection properly
106
107Bugfixes
108
109- Fixed calling monitor command while other commands are still running
110- Fixed monitor and pub sub mode not working together
111- Fixed monitor mode not working in combination with the offline queue
112- Fixed pub sub mode not working in combination with the offline queue
113- Fixed pub sub mode resubscribing not working with non utf8 buffer channels
114- Fixed pub sub mode crashing if calling unsubscribe / subscribe in various combinations
115- Fixed pub sub mode emitting unsubscribe even if no channels were unsubscribed
116- Fixed pub sub mode emitting a message without a message published
117- Fixed quit command not ending the connection and resulting in further reconnection if called while reconnecting
118
119The quit command did not end connections earlier if the connection was down at that time and this could have
120lead to strange situations, therefor this was fixed to end the connection right away in those cases.
121
122## v.2.5.3 - 21 Mar, 2016
123
124Bugfixes
125
126- Revert throwing on invalid data types and print a warning instead
127
128## v.2.5.2 - 16 Mar, 2016
129
130Bugfixes
131
132- Fixed breaking changes against Redis 2.4 introduced in 2.5.0 / 2.5.1
133
134## v.2.5.1 - 15 Mar, 2016
135
136Bugfixes
137
138- Fixed info command not working anymore with optional section argument
139
140## v.2.5.0 - 15 Mar, 2016
141
142Same changelog as the pre-release
143
144## v.2.5.0-1 - 07 Mar, 2016
145
146This is a big release with some substaintual underlining changes. Therefor this is released as a pre-release and I encourage anyone who's able to, to test this out.
147
148It took way to long to release this one and the next release cycles will be shorter again.
149
150This release is also going to deprecate a couple things to prepare for a future v.3 (it'll still take a while to v.3).
151
152Features
153
154- The parsers moved into the [redis-parser](https://github.com/NodeRedis/node-redis-parser) module and will be maintained in there from now on
155 - Improve js parser speed significantly for big SUNION/SINTER/LRANGE/ZRANGE
156- Improve redis-url parsing to also accept the database-number and options as query parameters as suggested in [IANA](http://www.iana.org/assignments/uri-schemes/prov/redis)
157- Added a `retry_unfulfilled_commands` option
158 - Setting this to 'true' results in retrying all commands that were not fulfilled on a connection loss after the reconnect. Use with caution
159- Added a `db` option to select the database while connecting (this is [not recommended](https://groups.google.com/forum/#!topic/redis-db/vS5wX8X4Cjg))
160- Added a `password` option as alias for auth_pass
161- The client.server_info is from now on updated while using the info command
162- Gracefuly handle redis protocol errors from now on
163- Added a `warning` emitter that receives node_redis warnings like auth not required and deprecation messages
164- Added a `retry_strategy` option that replaces all reconnect options
165- The reconnecting event from now on also receives:
166 - The error message why the reconnect happend (params.error)
167 - The amount of times the client was connected (params.times_connected)
168 - The total reconnecting time since the last time connected (params.total_retry_time)
169- Always respect the command execution order no matter if the reply could be returned sync or not (former exceptions: [#937](https://github.com/NodeRedis/node_redis/issues/937#issuecomment-167525939))
170- redis.createClient is now checking input values stricter and detects more faulty input
171- Started refactoring internals into individual modules
172- Pipelining speed improvements
173
174Bugfixes
175
176- Fixed explicit undefined as a command callback in a multi context
177- Fixed hmset failing to detect the first key as buffer or date if the key is of that type
178- Fixed do not run toString on an array argument and throw a "invalid data" error instead
179 - This is not considered as breaking change, as this is likely a error in your code and if you want to have such a behavior you should handle this beforehand
180 - The same applies to Map / Set and individual Object types
181- Fixed redis url not accepting the protocol being omitted or protocols other than the redis protocol for convienence
182- Fixed parsing the db keyspace even if the first database does not begin with a zero
183- Fixed handling of errors occuring while receiving pub sub messages
184- Fixed huge string pipelines crashing NodeJS (Pipeline size above 256mb)
185- Fixed rename_commands and prefix option not working together
186- Fixed ready being emitted to early in case a slave is still syncing / master down
187
188Deprecations
189
190- Using any command with a argument being set to null or undefined is deprecated
191 - From v.3.0.0 on using a command with such an argument will return an error instead
192 - If you want to keep the old behavior please use a precheck in your code that converts the arguments to a string.
193 - Using SET or SETEX with a undefined or null value will from now on also result in converting the value to "null" / "undefined" to have a consistent behavior. This is not considered as breaking change, as it returned an error earlier.
194- Using .end(flush) without the flush parameter is deprecated and the flush parameter should explicitly be used
195 - From v.3.0.0 on using .end without flush will result in an error
196 - Using .end without flush means that any command that did not yet return is going to silently fail. Therefor this is considered harmfull and you should explicitly silence such errors if you are sure you want this
197- Depending on the return value of a command to detect the backpressure is deprecated
198 - From version 3.0.0 on node_redis might not return true / false as a return value anymore. Please rely on client.should_buffer instead
199- The `socket_nodelay` option is deprecated and will be removed in v.3.0.0
200 - If you want to buffer commands you should use [.batch or .multi](./README.md) instead. This is necessary to reduce the amount of different options and this is very likely reducing your throughput if set to false.
201 - If you are sure you want to activate the NAGLE algorithm you can still activate it by using client.stream.setNoDelay(false)
202- The `max_attempts` option is deprecated and will be removed in v.3.0.0. Please use the `retry_strategy` instead
203- The `retry_max_delay` option is deprecated and will be removed in v.3.0.0. Please use the `retry_strategy` instead
204- The drain event is deprecated and will be removed in v.3.0.0. Please listen to the stream drain event instead
205- The idle event is deprecated and will likely be removed in v.3.0.0. If you rely on this feature please open a new ticket in node_redis with your use case
206- Redis < v. 2.6 is not officially supported anymore and might not work in all cases. Please update to a newer redis version as it is not possible to test for these old versions
207- Removed non documented command syntax (adding the callback to an arguments array instead of passing it as individual argument)
208
209## v.2.4.2 - 27 Nov, 2015
210
211Bugfixes
212
213- Fixed not emitting ready after reconnect with disable_resubscribing ([@maxgalbu](https://github.com/maxgalbu))
214
215## v.2.4.1 - 25 Nov, 2015
216
217Bugfixes
218
219- Fixed a js parser regression introduced in 2.4.0 ([@BridgeAR](https://github.com/BridgeAR))
220
221## v.2.4.0 - 25 Nov, 2015
222
223Features
224
225- Added `tls` option to initiate a connection to a redis server behind a TLS proxy. Thanks ([@paddybyers](https://github.com/paddybyers))
226- Added `prefix` option to auto key prefix any command with the provided prefix ([@luin](https://github.com/luin) & [@BridgeAR](https://github.com/BridgeAR))
227- Added `url` option to pass the connection url with the options object ([@BridgeAR](https://github.com/BridgeAR))
228- Added `client.duplicate([options])` to duplicate the current client and return a new one with the same options ([@BridgeAR](https://github.com/BridgeAR))
229- Improve performance by up to 20% on almost all use cases ([@BridgeAR](https://github.com/BridgeAR))
230
231Bugfixes
232
233- Fixed js parser handling big values slow ([@BridgeAR](https://github.com/BridgeAR))
234 - The speed is now on par with the hiredis parser.
235
236## v.2.3.1 - 18 Nov, 2015
237
238Bugfixes
239
240- Fixed saving buffers with charsets other than utf-8 while using multi ([@BridgeAR](https://github.com/BridgeAR))
241- Fixed js parser handling big values very slow ([@BridgeAR](https://github.com/BridgeAR))
242 - The speed is up to ~500% faster than before but still up to ~50% slower than the hiredis parser.
243
244## v.2.3.0 - 30 Oct, 2015
245
246Features
247
248- Improve speed further for: ([@BridgeAR](https://github.com/BridgeAR))
249 - saving big strings (up to +300%)
250 - using .multi / .batch (up to +50% / on Node.js 0.10.x +300%)
251 - saving small buffers
252- Increased coverage to 99% ([@BridgeAR](https://github.com/BridgeAR))
253- Refactored manual backpressure control ([@BridgeAR](https://github.com/BridgeAR))
254 - Removed the high water mark and low water mark. Such a mechanism should be implemented by a user instead
255 - The `drain` event is from now on only emitted if the stream really had to buffer
256- Reduced the default connect_timeout to be one hour instead of 24h ([@BridgeAR](https://github.com/BridgeAR))
257- Added .path to redis.createClient(options); ([@BridgeAR](https://github.com/BridgeAR))
258- Ignore info command, if not available on server ([@ivanB1975](https://github.com/ivanB1975))
259
260Bugfixes
261
262- Fixed a js parser error that could result in a timeout ([@BridgeAR](https://github.com/BridgeAR))
263- Fixed .multi / .batch used with Node.js 0.10.x not working properly after a reconnect ([@BridgeAR](https://github.com/BridgeAR))
264- Fixed fired but not yet returned commands not being rejected after a connection loss ([@BridgeAR](https://github.com/BridgeAR))
265- Fixed connect_timeout not respected if no connection has ever been established ([@gagle](https://github.com/gagle) & [@benjie](https://github.com/benjie))
266- Fixed return_buffers in pub sub mode ([@komachi](https://github.com/komachi))
267
268## v.2.2.5 - 18 Oct, 2015
269
270Bugfixes
271
272- Fixed undefined options passed to a new instance not accepted (possible with individual .createClient functions) ([@BridgeAR](https://github.com/BridgeAR))
273
274## v.2.2.4 - 17 Oct, 2015
275
276Bugfixes
277
278- Fixed unspecific error message for unresolvable commands ([@BridgeAR](https://github.com/BridgeAR))
279- Fixed not allowed command error in pubsub mode not being returned in a provided callback ([@BridgeAR](https://github.com/BridgeAR))
280- Fixed to many commands forbidden in pub sub mode ([@BridgeAR](https://github.com/BridgeAR))
281- Fixed mutation of the arguments array passed to .multi / .batch constructor ([@BridgeAR](https://github.com/BridgeAR))
282- Fixed mutation of the options object passed to createClient ([@BridgeAR](https://github.com/BridgeAR))
283- Fixed error callback in .multi not called if connection in broken mode ([@BridgeAR](https://github.com/BridgeAR))
284
285## v.2.2.3 - 14 Oct, 2015
286
287Bugfixes
288
289- Fixed multi not being executed on Node 0.10.x if node_redis not yet ready ([@BridgeAR](https://github.com/BridgeAR))
290
291## v.2.2.2 - 14 Oct, 2015
292
293Bugfixes
294
295- Fixed regular commands not being executed after a .multi until .exec was called ([@BridgeAR](https://github.com/BridgeAR))
296
297## v.2.2.1 - 12 Oct, 2015
298
299No code change
300
301## v.2.2.0 - 12 Oct, 2015 - The peregrino falcon
302
303The peregrino falcon is the fasted bird on earth and this is what this release is all about: Increased performance for heavy usage by up to **400%** [sic!] and increased overall performance for any command as well. Please check the benchmarks in the [README.md](README.md) for further details.
304
305Features
306
307- Added rename_commands options to handle renamed commands from the redis config ([@digmxl](https://github.com/digmxl) & [@BridgeAR](https://github.com/BridgeAR))
308- Added disable_resubscribing option to prevent a client from resubscribing after reconnecting ([@BridgeAR](https://github.com/BridgeAR))
309- Increased performance ([@BridgeAR](https://github.com/BridgeAR))
310 - exchanging built in queue with [@petkaantonov](https://github.com/petkaantonov)'s [double-ended queue](https://github.com/petkaantonov/deque)
311 - prevent polymorphism
312 - optimize statements
313- Added *.batch* command, similar to .multi but without transaction ([@BridgeAR](https://github.com/BridgeAR))
314- Improved pipelining to minimize the [RTT](http://redis.io/topics/pipelining) further ([@BridgeAR](https://github.com/BridgeAR))
315
316Bugfixes
317
318- Fixed a javascript parser regression introduced in 2.0 that could result in timeouts on high load. ([@BridgeAR](https://github.com/BridgeAR))
319 - I was not able to write a regression test for this, since the error seems to only occur under heavy load with special conditions. So please have a look for timeouts with the js parser, if you use it and report all issues and switch to the hiredis parser in the meanwhile. If you're able to come up with a reproducable test case, this would be even better :)
320- Fixed should_buffer boolean for .exec, .select and .auth commands not being returned and fix a couple special conditions ([@BridgeAR](https://github.com/BridgeAR))
321
322If you do not rely on transactions but want to reduce the RTT you can use .batch from now on. It'll behave just the same as .multi but it does not have any transaction and therefor won't roll back any failed commands.<br>
323Both .multi and .batch are from now on going to cache the commands and release them while calling .exec.
324
325Please consider using .batch instead of looping through a lot of commands one by one. This will significantly improve your performance.
326
327Here are some stats compared to ioredis 1.9.1 (Lenovo T450s i7-5600U):
328
329 simple set
330 82,496 op/s » ioredis
331 112,617 op/s » node_redis
332
333 simple get
334 82,015 op/s » ioredis
335 105,701 op/s » node_redis
336
337 simple get with pipeline
338 10,233 op/s » ioredis
339 26,541 op/s » node_redis (using .batch)
340
341 lrange 100
342 7,321 op/s » ioredis
343 26,155 op/s » node_redis
344
345 publish
346 90,524 op/s » ioredis
347 112,823 op/s » node_redis
348
349 subscribe
350 43,783 op/s » ioredis
351 61,889 op/s » node_redis
352
353To conclude: we can proudly say that node_redis is very likely outperforming any other node redis client.
354
355Known issues
356
357- The pub sub system has some flaws and those will be addressed in the next minor release
358
359## v2.1.0 - Oct 02, 2015
360
361Features:
362
363- Addded optional flush parameter to `.end`. If set to true, commands fired after using .end are going to be rejected instead of being ignored. (@crispy1989)
364- Addded: host and port can now be provided in a single options object. E.g. redis.createClient({ host: 'localhost', port: 1337, max_attempts: 5 }); (@BridgeAR)
365- Speedup common cases (@BridgeAR)
366
367Bugfixes:
368
369- Fix argument mutation while using the array notation with the multi constructor (@BridgeAR)
370- Fix multi.hmset key not being type converted if used with an object and key not being a string (@BridgeAR)
371- Fix parser errors not being catched properly (@BridgeAR)
372- Fix a crash that could occur if a redis server does not return the info command as usual #541 (@BridgeAR)
373- Explicitly passing undefined as a callback statement will work again. E.g. client.publish('channel', 'message', undefined); (@BridgeAR)
374
375## v2.0.1 - Sep 24, 2015
376
377Bugfixes:
378
379- Fix argument mutation while using the array notation in combination with keys / callbacks ([#866](.)). (@BridgeAR)
380
381## v2.0.0 - Sep 21, 2015
382
383This is the biggest release that node_redis had since it was released in 2010. A long list of outstanding bugs has been fixed, so we are very happy to present you redis 2.0 and we highly recommend updating as soon as possible.
384
385# What's new in 2.0
386
387- Implemented a "connection is broken" mode if no connection could be established
388- node_redis no longer throws under any circumstances, preventing it from terminating applications.
389- Multi error handling is now working properly
390- Consistent command behavior including multi
391- Windows support
392- Improved performance
393- A lot of code cleanup
394- Many bug fixes
395- Better user support!
396
397## Features:
398
399- Added a "redis connection is broken" mode after reaching max connection attempts / exceeding connection timeout. (@BridgeAR)
400- Added NODE_DEBUG=redis env to activate the debug_mode (@BridgeAR)
401- Added a default connection timeout of 24h instead of never timing out as a default (@BridgeAR)
402- Added: Network errors and other stream errors will from now on include the error code as `err.code` property (@BridgeAR)
403- Added: Errors thrown by redis will now include the redis error code as `err.code` property. (@skeggse & @BridgeAR)
404- Added: Errors thrown by node_redis will now include a `err.command` property for the command used (@BridgeAR)
405- Added new commands and drop support for deprecated *substr* (@BridgeAR)
406- Added new possibilities how to provide the command arguments (@BridgeAR)
407- The entries in the keyspace of the server_info is now an object instead of a string. (@SinisterLight & @BridgeAR)
408- Small speedup here and there (e.g. by not using .toLowerCase() anymore) (@BridgeAR)
409- Full windows support (@bcoe)
410- Increased coverage by 10% and add a lot of tests to make sure everything works as it should. We now reached 97% :-) (@BridgeAR)
411- Remove dead code, clean up and refactor very old chunks (@BridgeAR)
412- Don't flush the offline queue if reconnecting (@BridgeAR)
413- Emit all errors insteaf of throwing sometimes and sometimes emitting them (@BridgeAR)
414- *auth_pass* passwords are now checked to be a valid password (@jcppman & @BridgeAR)
415
416## Bug fixes:
417
418- Don't kill the app anymore by randomly throwing errors sync instead of emitting them (@BridgeAR)
419- Don't catch user errors anymore occuring in callbacks (no try callback anymore & more fixes for the parser) (@BridgeAR)
420- Early garbage collection of queued items (@dohse)
421- Fix js parser returning errors as strings (@BridgeAR)
422- Do not wrap errors into other errors (@BridgeAR)
423- Authentication failures are now returned in the callback instead of being emitted (@BridgeAR)
424- Fix a memory leak on reconnect (@rahar)
425- Using `send_command` directly may now also be called without the args as stated in the [README.md](./README.md) (@BridgeAR)
426- Fix the multi.exec error handling (@BridgeAR)
427- Fix commands being inconsistent and behaving wrong (@BridgeAR)
428- Channel names with spaces are now properly resubscribed after a reconnection (@pbihler)
429- Do not try to reconnect after the connection timeout has been exceeded (@BridgeAR)
430- Ensure the execution order is observed if using .eval (@BridgeAR)
431- Fix commands not being rejected after calling .quit (@BridgeAR)
432- Fix .auth calling the callback twice if already connected (@BridgeAR)
433- Fix detect_buffers not working in pub sub mode and while monitoring (@BridgeAR)
434- Fix channel names always being strings instead of buffers while return_buffers is true (@BridgeAR)
435- Don't print any debug statements if not asked for (@BridgeAR)
436- Fix a couple small other bugs
437
438## Breaking changes:
439
4401. redis.send_command commands have to be lower case from now on. This does only apply if you use `.send_command` directly instead of the convenient methods like `redis.command`.
4412. Error messages have changed quite a bit. If you depend on a specific wording please check your application carfully.
4423. Errors are from now on always either returned if a callback is present or emitted. They won't be thrown (neither sync, nor async).
4434. The Multi error handling has changed a lot!
444 - All errors are from now on errors instead of strings (this only applied to the js parser).
445 - If an error occurs while queueing the commands an EXECABORT error will be returned including the failed commands as `.errors` property instead of an array with errors.
446 - If an error occurs while executing the commands and that command has a callback it'll return the error as first parameter (`err, undefined` instead of `null, undefined`).
447 - All the errors occuring while executing the commands will stay in the result value as error instance (if you used the js parser before they would have been strings). Be aware that the transaction won't be aborted if those error occurr!
448 - If `multi.exec` does not have a callback and an EXECABORT error occurrs, it'll emit that error instead.
4495. If redis can't connect to your redis server it'll give up after a certain point of failures (either max connection attempts or connection timeout exceeded). If that is the case it'll emit an CONNECTION_BROKEN error. You'll have to initiate a new client to try again afterwards.
4506. The offline queue is not flushed anymore on a reconnect. It'll stay until node_redis gives up trying to reach the server or until you close the connection.
4517. Before this release node_redis catched user errors and threw them async back. This is not the case anymore! No user behavior of what so ever will be tracked or catched.
4528. The keyspace of `redis.server_info` (db0...) is from now on an object instead of an string.
453
454NodeRedis also thanks @qdb, @tobek, @cvibhagool, @frewsxcv, @davidbanham, @serv, @vitaliylag, @chrishamant, @GamingCoder and all other contributors that I may have missed for their contributions!
455
456From now on we'll push new releases more frequently out and fix further long outstanding things and implement new features.
457
458<hr>
459
460## v1.0.0 - Aug 30, 2015
461
462* Huge issue and pull-request cleanup. Thanks Blain! (@blainsmith)
463* [#658](https://github.com/NodeRedis/node_redis/pull/658) Client now parses URL-format connection strings (e.g., redis://foo:pass@127.0.0.1:8080) (@kuwabarahiroshi)
464* [#749](https://github.com/NodeRedis/node_redis/pull/749) Fix reconnection bug when client is in monitoring mode (@danielbprice)
465* [#786](https://github.com/NodeRedis/node_redis/pull/786) Refactor createClient. Fixes #651 (@BridgeAR)
466* [#793](https://github.com/NodeRedis/node_redis/pull/793) Refactor tests and improve test coverage (@erinspice, @bcoe)
467* [#733](https://github.com/NodeRedis/node_redis/pull/733) Fixes detect_buffers functionality in the context of exec. Fixes #732, #263 (@raydog)
468* [#785](https://github.com/NodeRedis/node_redis/pull/785) Tiny speedup by using 'use strict' (@BridgeAR)
469* Fix extraneous error output due to pubsub tests (Mikael Kohlmyr)
470
471## v0.12.1 - Aug 10, 2014
472* Fix IPv6/IPv4 family selection in node 0.11+ (Various)
473
474## v0.12.0 - Aug 9, 2014
475* Fix unix socket support (Jack Tang)
476* Improve createClient argument handling (Jack Tang)
477
478## v0.11.0 - Jul 10, 2014
479
480* IPv6 Support. (Yann Stephan)
481* Revert error emitting and go back to throwing errors. (Bryce Baril)
482* Set socket_keepalive to prevent long-lived client timeouts. (mohit)
483* Correctly reset retry timer. (ouotuo)
484* Domains protection from bad user exit. (Jake Verbaten)
485* Fix reconnection socket logic to prevent misqueued entries. (Iain Proctor)
486
487## v0.10.3 - May 22, 2014
488
489* Update command list to match Redis 2.8.9 (Charles Feng)
490
491## v0.10.2 - May 18, 2014
492
493* Better binary key handling for HGETALL. (Nick Apperson)
494* Fix test not resetting `error` handler. (CrypticSwarm)
495* Fix SELECT error semantics. (Bryan English)
496
497## v0.10.1 - February 17, 2014
498
499* Skip plucking redis version from the INFO stream if INFO results weren't provided. (Robert Sköld)
500
501## v0.10.0 - December 21, 2013
502
503* Instead of throwing errors asynchronously, emit errors on client. (Bryce Baril)
504
505## v0.9.2 - December 15, 2013
506
507* Regenerate commands for new 2.8.x Redis commands. (Marek Ventur)
508* Correctly time reconnect counts when using 'auth'. (William Hockey)
509
510## v0.9.1 - November 23, 2013
511
512* Allow hmset to accept numeric keys. (Alex Stokes)
513* Fix TypeError for multiple MULTI/EXEC errors. (Kwangsu Kim)
514
515## v0.9.0 - October 17, 2013
516
517* Domains support. (Forrest L Norvell)
518
519## v0.8.6 - October 2, 2013
520
521* If error is already an Error, don't wrap it in another Error. (Mathieu M-Gosselin)
522* Fix retry delay logic (Ian Babrou)
523* Return Errors instead of strings where Errors are expected (Ian Babrou)
524* Add experimental `.unref()` method to RedisClient (Bryce Baril / Olivier Lalonde)
525* Strengthen checking of reply to prevent conflating "message" or "pmessage" fields with pub_sub replies. (Bryce Baril)
526
527## v0.8.5 - September 26, 2013
528
529* Add `auth_pass` option to connect and immediately authenticate (Henrik Peinar)
530
531## v0.8.4 - June 24, 2013
532
533Many contributed features and fixes, including:
534* Ignore password set if not needed. (jbergknoff)
535* Improved compatibility with 0.10.X for tests and client.end() (Bryce Baril)
536* Protect connection retries from application exceptions. (Amos Barreto)
537* Better exception handling for Multi/Exec (Thanasis Polychronakis)
538* Renamed pubsub mode to subscriber mode (Luke Plaster)
539* Treat SREM like SADD when passed an array (Martin Ciparelli)
540* Fix empty unsub/punsub TypeError (Jeff Barczewski)
541* Only attempt to run a callback if it one was provided (jifeng)
542
543## v0.8.3 - April 09, 2013
544
545Many contributed features and fixes, including:
546* Fix some tests for Node.js version 0.9.x+ changes (Roman Ivanilov)
547* Fix error when commands submitted after idle event handler (roamm)
548* Bypass Redis for no-op SET/SETEX commands (jifeng)
549* Fix HMGET + detect_buffers (Joffrey F)
550* Fix CLIENT LOAD functionality (Jonas Dohse)
551* Add percentage outputs to diff_multi_bench_output.js (Bryce Baril)
552* Add retry_max_delay option (Tomasz Durka)
553* Fix parser off-by-one errors with nested multi-bulk replies (Bryce Baril)
554* Prevent parser from sinking application-side exceptions (Bryce Baril)
555* Fix parser incorrect buffer skip when parsing multi-bulk errors (Bryce Baril)
556* Reverted previous change with throwing on non-string values with HMSET (David Trejo)
557* Fix command queue sync issue when using pubsub (Tom Leach)
558* Fix compatibility with two-word Redis commands (Jonas Dohse)
559* Add EVAL with array syntax (dmoena)
560* Fix tests due to Redis reply order changes in 2.6.5+ (Bryce Baril)
561* Added a test for the SLOWLOG command (Nitesh Sinha)
562* Fix SMEMBERS order dependency in test broken by Redis changes (Garrett Johnson)
563* Update commands for new Redis commands (David Trejo)
564* Prevent exception from SELECT on subscriber reconnection (roamm)
565
566
567## v0.8.2 - November 11, 2012
568
569Another version bump because 0.8.1 didn't get applied properly for some mysterious reason.
570Sorry about that.
571
572Changed name of "faster" parser to "javascript".
573
574## v0.8.1 - September 11, 2012
575
576Important bug fix for null responses (Jerry Sievert)
577
578## v0.8.0 - September 10, 2012
579
580Many contributed features and fixes, including:
581
582* Pure JavaScript reply parser that is usually faster than hiredis (Jerry Sievert)
583* Remove hiredis as optionalDependency from package.json. It still works if you want it.
584* Restore client state on reconnect, including select, subscribe, and monitor. (Ignacio Burgueño)
585* Fix idle event (Trae Robrock)
586* Many documentation improvements and bug fixes (David Trejo)
587
588## v0.7.2 - April 29, 2012
589
590Many contributed fixes. Thank you, contributors.
591
592* [GH-190] - pub/sub mode fix (Brian Noguchi)
593* [GH-165] - parser selection fix (TEHEK)
594* numerous documentation and examples updates
595* auth errors emit Errors instead of Strings (David Trejo)
596
597## v0.7.1 - November 15, 2011
598
599Fix regression in reconnect logic.
600
601Very much need automated tests for reconnection and queue logic.
602
603## v0.7.0 - November 14, 2011
604
605Many contributed fixes. Thanks everybody.
606
607* [GH-127] - properly re-initialize parser on reconnect
608* [GH-136] - handle passing undefined as callback (Ian Babrou)
609* [GH-139] - properly handle exceptions thrown in pub/sub event handlers (Felix Geisendörfer)
610* [GH-141] - detect closing state on stream error (Felix Geisendörfer)
611* [GH-142] - re-select database on reconnection (Jean-Hugues Pinson)
612* [GH-146] - add sort example (Maksim Lin)
613
614Some more goodies:
615
616* Fix bugs with node 0.6
617* Performance improvements
618* New version of `multi_bench.js` that tests more realistic scenarios
619* [GH-140] - support optional callback for subscribe commands
620* Properly flush and error out command queue when connection fails
621* Initial work on reconnection thresholds
622
623## v0.6.7 - July 30, 2011
624
625(accidentally skipped v0.6.6)
626
627Fix and test for [GH-123]
628
629Passing an Array as as the last argument should expand as users
630expect. The old behavior was to coerce the arguments into Strings,
631which did surprising things with Arrays.
632
633## v0.6.5 - July 6, 2011
634
635Contributed changes:
636
637* Support SlowBuffers (Umair Siddique)
638* Add Multi to exports (Louis-Philippe Perron)
639* Fix for drain event calculation (Vladimir Dronnikov)
640
641Thanks!
642
643## v0.6.4 - June 30, 2011
644
645Fix bug with optional callbacks for hmset.
646
647## v0.6.2 - June 30, 2011
648
649Bugs fixed:
650
651* authentication retry while server is loading db (danmaz74) [GH-101]
652* command arguments processing issue with arrays
653
654New features:
655
656* Auto update of new commands from redis.io (Dave Hoover)
657* Performance improvements and backpressure controls.
658* Commands now return the true/false value from the underlying socket write(s).
659* Implement command_queue high water and low water for more better control of queueing.
660
661See `examples/backpressure_drain.js` for more information.
662
663## v0.6.1 - June 29, 2011
664
665Add support and tests for Redis scripting through EXEC command.
666
667Bug fix for monitor mode. (forddg)
668
669Auto update of new commands from redis.io (Dave Hoover)
670
671## v0.6.0 - April 21, 2011
672
673Lots of bugs fixed.
674
675* connection error did not properly trigger reconnection logic [GH-85]
676* client.hmget(key, [val1, val2]) was not expanding properly [GH-66]
677* client.quit() while in pub/sub mode would throw an error [GH-87]
678* client.multi(['hmset', 'key', {foo: 'bar'}]) fails [GH-92]
679* unsubscribe before subscribe would make things very confused [GH-88]
680* Add BRPOPLPUSH [GH-79]
681
682## v0.5.11 - April 7, 2011
683
684Added DISCARD
685
686I originally didn't think DISCARD would do anything here because of the clever MULTI interface, but somebody
687pointed out to me that DISCARD can be used to flush the WATCH set.
688
689## v0.5.10 - April 6, 2011
690
691Added HVALS
692
693## v0.5.9 - March 14, 2011
694
695Fix bug with empty Array arguments - Andy Ray
696
697## v0.5.8 - March 14, 2011
698
699Add `MONITOR` command and special monitor command reply parsing.
700
701## v0.5.7 - February 27, 2011
702
703Add magical auth command.
704
705Authentication is now remembered by the client and will be automatically sent to the server
706on every connection, including any reconnections.
707
708## v0.5.6 - February 22, 2011
709
710Fix bug in ready check with `return_buffers` set to `true`.
711
712Thanks to Dean Mao and Austin Chau.
713
714## v0.5.5 - February 16, 2011
715
716Add probe for server readiness.
717
718When a Redis server starts up, it might take a while to load the dataset into memory.
719During this time, the server will accept connections, but will return errors for all non-INFO
720commands. Now node_redis will send an INFO command whenever it connects to a server.
721If the info command indicates that the server is not ready, the client will keep trying until
722the server is ready. Once it is ready, the client will emit a "ready" event as well as the
723"connect" event. The client will queue up all commands sent before the server is ready, just
724like it did before. When the server is ready, all offline/non-ready commands will be replayed.
725This should be backward compatible with previous versions.
726
727To disable this ready check behavior, set `options.no_ready_check` when creating the client.
728
729As a side effect of this change, the key/val params from the info command are available as
730`client.server_options`. Further, the version string is decomposed into individual elements
731in `client.server_options.versions`.
732
733## v0.5.4 - February 11, 2011
734
735Fix excess memory consumption from Queue backing store.
736
737Thanks to Gustaf Sjöberg.
738
739## v0.5.3 - February 5, 2011
740
741Fix multi/exec error reply callback logic.
742
743Thanks to Stella Laurenzo.
744
745## v0.5.2 - January 18, 2011
746
747Fix bug where unhandled error replies confuse the parser.
748
749## v0.5.1 - January 18, 2011
750
751Fix bug where subscribe commands would not handle redis-server startup error properly.
752
753## v0.5.0 - December 29, 2010
754
755Some bug fixes:
756
757* An important bug fix in reconnection logic. Previously, reply callbacks would be invoked twice after
758 a reconnect.
759* Changed error callback argument to be an actual Error object.
760
761New feature:
762
763* Add friendly syntax for HMSET using an object.
764
765## v0.4.1 - December 8, 2010
766
767Remove warning about missing hiredis. You probably do want it though.
768
769## v0.4.0 - December 5, 2010
770
771Support for multiple response parsers and hiredis C library from Pieter Noordhuis.
772Return Strings instead of Buffers by default.
773Empty nested mb reply bug fix.
774
775## v0.3.9 - November 30, 2010
776
777Fix parser bug on failed EXECs.
778
779## v0.3.8 - November 10, 2010
780
781Fix for null MULTI response when WATCH condition fails.
782
783## v0.3.7 - November 9, 2010
784
785Add "drain" and "idle" events.
786
787## v0.3.6 - November 3, 2010
788
789Add all known Redis commands from Redis master, even ones that are coming in 2.2 and beyond.
790
791Send a friendlier "error" event message on stream errors like connection refused / reset.
792
793## v0.3.5 - October 21, 2010
794
795A few bug fixes.
796
797* Fixed bug with `nil` multi-bulk reply lengths that showed up with `BLPOP` timeouts.
798* Only emit `end` once when connection goes away.
799* Fixed bug in `test.js` where driver finished before all tests completed.
800
801## unversioned wasteland
802
803See the git history for what happened before.