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
* Fixed Stream decode processing error:
after C0 byte (nil) stream switched to "End of stream state",
added test.
Minor changes made in modules formatting to satisfy modules
formatting rules checked in tests.
* Added stream decoder wrap option, default value is false for compatibility reasons.
When wrap is true decoded items are passed in form of {value: data} instead of data.
Using wrap=true for decoder stream allows decoding of C0 byte (nil).
* Added wrap option for decoder and encoder streams.
When wrap = true decoder stream outputs {value:data} instead of data,
encoder stream encodes data extracted from {value:data}.
* Added tests for encoder stream with wrap options,
encoder/decoder streams chain with wrap options.
Wrap option for encoder/decoder streams documented in readme.md
* encoder property _unwrap renamed to _wrap.
Minor changes in documentation for wrap option of encoder/decoder.
0 commit comments