Skip to content

v0.4.0

Compare
Choose a tag to compare
@pires pires released this 18 Jan 10:45
· 63 commits to main since this release
22bc614

Announcement

First, the master branch has been renamed to main. Assuming your local copy has this repo as remote origin, execute the following commands:

git branch -m master main
git fetch origin

Optionally, if you're tracking this instead of a fork:

git branch -u origin/main main

Breaking changes

  • Replaced v1 throwing ErrCantReadProtocolVersionAndCommand with:
    • ErrLineMustEndWithCrlf when the issue is the line doesn't end with \r\n, which is required as per spec, and
    • ErrCantReadAddressFamilyAndProtocol when inet family and transport protocol are not TCP4, TCP6 or UNKNOWN, as per spec.
      Also, if not UNKNOWN, addresses information is required.

Improvements

  • Support parsing v1 PROXY UNKNOWN (#61)
    This has been quietly introduced in the spec while we were not watching.
  • Support v2 inet family and transport protocol UNSPEC but only when command is LOCAL (#61)
    For more information, read #60. Thank you to @bohanyang for the detailed description.