Skip to content

Releases: alanshaw/it-length-prefixed

v3.1.0

27 Jul 08:31
Compare
Choose a tag to compare

Features

v3.0.1

18 Mar 12:59
Compare
Choose a tag to compare

Bug Fixes

v3.0.0

13 Nov 15:01
Compare
Choose a tag to compare

Features

BREAKING CHANGES

  • Additional validation now checks for messages with a length that is too long to prevent a possible DoS attack. The error code ERR_MSG_TOO_LONG has changed to ERR_MSG_DATA_TOO_LONG and the error code ERR_MSG_LENGTH_TOO_LONG has been added.

License: MIT
Signed-off-by: Alan Shaw alan.shaw@protocol.ai

v2.0.0

26 Sep 13:45
Compare
Choose a tag to compare
chore: release version v2.0.0

v1.1.0

13 Aug 12:46
Compare
Choose a tag to compare

Features

  • encode single and optional decode onLength/onData callbacks (#1) (ce68bc8)

v1.0.0

07 May 22:14
Compare
Choose a tag to compare

Bug Fixes

  • badgers (d2cec17)
  • decode and add test (987f8f6)
  • decode fixes and e2e tests (d4020df)
  • do not slice on bufer and data length equal (3def7c8)
  • fixes and tests (a26c5e8)
  • more fix badgers (7bbfc93)
  • properly handle backpressure (cf47d04)
  • sync streams and empty streams (33e3a64)
  • use default max length properly (182f3ed)

Features

  • add fixed prefix length as an option (c93f850)
  • add maxLength to allow controlling max buffer length during decode (7810ade)
  • encode + tests (d5f6d03)
  • improve tests and guards for failure cases (2c43d59)
  • maybe this decode function will work (3c0efc7)
  • decode: add decodeFromReader method (729dc2e)