NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #1984 most downloaded on npm
Javascript Redis protocol (RESP) parser
Last release 9 years ago
no release in 18 months
Ships fairly regularly
a new release about every 6 weeks
Most releases are documented
notes for 14 of 16 stable releases
2 versions withdrawn
withdrawn after publishing
11 years old
18 releases · first in 2015
Removed support for hiredis completely
Breaking Changes
Internals
Use Buffer.allocUnsafe instead of new Buffer() with modern Node.js versions
Internals
One column per quarter.
Added a ParserError class to differentiate them to ReplyErrors. The class is also exported
Features
ParserError class to differentiate them to ReplyErrors. The class is also exportedBugfixes
Added reset function to reset the parser to it's initial values
Features
reset function to reset the parser to it's initial valuessetReturnBuffers function to reset the returnBuffers option (Only for the JSParser)setStringNumbers function to reset the stringNumbers option (Only for the JSParser)RedisError class. It is also exported.Bugfixes
Parsing time for big arrays (e.g. 4mb+) is now linear and works well for arbitrary array sizes
Features
This case is a magnitude faster than before:
OLD STR: * big array x 1.09 ops/sec ±2.15% (7 runs sampled)
OLD BUF: * big array x 1.23 ops/sec ±2.67% (8 runs sampled)
NEW STR: * big array x 273 ops/sec ±2.09% (85 runs sampled)
NEW BUF: * big array x 259 ops/sec ±1.32% (85 runs sampled)
(~10mb array with 1000 entries)
Improve stringNumbers parsing performance by up to 100%
Features
stringNumbers parsing performance by up to 100%Bugfixes
Remove erroneously added const to support Node.js 0.10
Bugfixes
Improve parser errors by adding more detailed information to them
Features
Fixed multi byte characters getting corrupted
Bugfixes
Fixed parser not working with huge buffers (e.g. 300 MB)
Bugfixes
Fixed parser with returnBuffers option returning corrupted data
Bugfixes
Fixed multiple parsers working concurrently resulting in faulty data in some cases
Bugfixes
Therefore the hiredis parser was deprecated and should only be used for testing purposes and benchmarking comparison.
The javascript parser got completly rewritten by Michael Diarmid and Ruben Bridgewater and is now a lot faster than the hiredis parser. Therefore the hiredis parser was deprecated and should only be used for testing purposes and benchmarking comparison.
All Errors returned by the parser are from now on of class ReplyError
Features
Removed
Added auto as parser name option to check what parser is available
Features
auto as parser name option to check what parser is availableAdded stringNumbers option to make sure all numbers are returned as string instead of a js number for precision
Features
stringNumbers option to make sure all numbers are returned as string instead of a js number for precisionThe parser is from now on going to reset itself on protocol errors
Features
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →