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
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,21 @@
1
1
## v.2.0.0 - 0x May, 2016
2
2
3
3
The javascript parser got completly rewritten by [Michael Diarmid](https://github.com/Salakar) and [Ruben Bridgewater](https://github.com/BridgeAR) and is now a lot faster than the hiredis parser.
4
-
Therefore the hiredis parser was removed and is only used for testing purposes and benchmarking comparison.
4
+
Therefore the hiredis parser was deprecated and should only be used for testing purposes and benchmarking comparison.
5
5
6
6
All Errors returned by the parser are from now on of class ReplyError
7
7
8
8
Features
9
9
10
+
- Improved performance by up to 15x as fast as before
11
+
- Improved options validation
10
12
- Added ReplyError Class
11
13
- Added parser benchmark
14
+
- Switched default parser from hiredis to JS, no matter if hiredis is installed or not
12
15
13
16
Removed
14
17
15
-
- Dropped support of hiredis
16
-
- The `name` option is "removed"
17
-
- It is still available for backwards compatibility but it is strongly recommended not to use it
Copy file name to clipboardExpand all lines: lib/parser.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -254,7 +254,7 @@ function JavascriptRedisParser (options) {
254
254
if(options.name==='hiredis'){
255
255
/* istanbul ignore next: hiredis is only supported for legacy usage */
256
256
try{
257
-
varHiredis=require('../test/hiredis')
257
+
varHiredis=require('./hiredis')
258
258
console.error(newTypeError('Using hiredis is discouraged. Please use the faster JS parser by removing the name option.').stack.replace('Error','Warning'))
0 commit comments