You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@
21
21
22
22
- Fix `NOAUTH` error when using authentication & database (#1681)
23
23
- Allow to `.quit()` in PubSub mode (#1766)
24
-
- Add an option to configurate`name` on a client (#1758)
24
+
- Add an option to configure`name` on a client (#1758)
25
25
- Lowercase commands (`client.hset`) in `legacyMode`
26
26
- Fix PubSub resubscribe (#1764)
27
27
- Fix `RedisSocketOptions` type (#1741)
@@ -466,7 +466,7 @@ Features
466
466
Bugfixes
467
467
468
468
- Fixed a javascript parser regression introduced in 2.0 that could result in timeouts on high load. ([@BridgeAR](https://github.com/BridgeAR))
469
-
- 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 :)
469
+
- 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 reproducible test case, this would be even better :)
470
470
- Fixed should_buffer boolean for .exec, .select and .auth commands not being returned and fix a couple special conditions ([@BridgeAR](https://github.com/BridgeAR))
471
471
472
472
If 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>
@@ -518,7 +518,7 @@ Bugfixes:
518
518
519
519
- Fix argument mutation while using the array notation with the multi constructor (@BridgeAR)
520
520
- Fix multi.hmset key not being type converted if used with an object and key not being a string (@BridgeAR)
521
-
- Fix parser errors not being catched properly (@BridgeAR)
521
+
- Fix parser errors not being caught properly (@BridgeAR)
522
522
- Fix a crash that could occur if a redis server does not return the info command as usual #541 (@BridgeAR)
523
523
- Explicitly passing undefined as a callback statement will work again. E.g. client.publish('channel', 'message', undefined); (@BridgeAR)
524
524
@@ -560,13 +560,13 @@ This is the biggest release that node_redis had since it was released in 2010. A
560
560
- Increased coverage by 10% and add a lot of tests to make sure everything works as it should. We now reached 97% :-) (@BridgeAR)
561
561
- Remove dead code, clean up and refactor very old chunks (@BridgeAR)
562
562
- Don't flush the offline queue if reconnecting (@BridgeAR)
563
-
- Emit all errors insteaf of throwing sometimes and sometimes emitting them (@BridgeAR)
563
+
- Emit all errors instead of throwing sometimes and sometimes emitting them (@BridgeAR)
564
564
-_auth_pass_ passwords are now checked to be a valid password (@jcppman & @BridgeAR)
565
565
566
566
## Bug fixes:
567
567
568
568
- Don't kill the app anymore by randomly throwing errors sync instead of emitting them (@BridgeAR)
569
-
- Don't catch user errors anymore occuring in callbacks (no try callback anymore & more fixes for the parser) (@BridgeAR)
569
+
- Don't catch user errors anymore occurring in callbacks (no try callback anymore & more fixes for the parser) (@BridgeAR)
570
570
- Early garbage collection of queued items (@dohse)
571
571
- Fix js parser returning errors as strings (@BridgeAR)
572
572
- Do not wrap errors into other errors (@BridgeAR)
@@ -588,19 +588,19 @@ This is the biggest release that node_redis had since it was released in 2010. A
588
588
## Breaking changes:
589
589
590
590
1. 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`.
591
-
2. Error messages have changed quite a bit. If you depend on a specific wording please check your application carfully.
591
+
2. Error messages have changed quite a bit. If you depend on a specific wording please check your application carefully.
592
592
3. Errors are from now on always either returned if a callback is present or emitted. They won't be thrown (neither sync, nor async).
593
593
4. The Multi error handling has changed a lot!
594
594
595
595
- All errors are from now on errors instead of strings (this only applied to the js parser).
596
596
- 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.
597
597
- 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`).
598
-
- 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!
598
+
- All the errors occurring 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 occur!
599
599
- If `multi.exec` does not have a callback and an EXECABORT error occurrs, it'll emit that error instead.
600
600
601
601
5. 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.
602
602
6. 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.
603
-
7. 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.
603
+
7. Before this release node_redis caught user errors and threw them async back. This is not the case anymore! No user behavior of what so ever will be tracked or caught.
604
604
8. The keyspace of `redis.server_info` (db0...) is from now on an object instead of an string.
605
605
606
606
NodeRedis also thanks @qdb, @tobek, @cvibhagool, @frewsxcv, @davidbanham, @serv, @vitaliylag, @chrishamant, @GamingCoder and all other contributors that I may have missed for their contributions!
0 commit comments