Skip to content

v3.0.0

Latest
Compare
Choose a tag to compare
@noraj noraj released this 02 Jan 23:10
· 39 commits to master since this release

Highlights

Decode a hexadecimal IPv6 string into a double-dotted hexadecimal format

carbon

Convert a binary string to decimal (binary to hexadecimal then hexadecimal to decimal)

carbon2

URL-encode the URL component string (RFC 3986)

carbon3

CHANGELOG

  • Breaking changes
    • Drop Ruby 2.7 support because there is no URI:WS and URI:WSS used for defang_uri and anyway official support has ended too
    • hex2bin now returns even number of chars (pad with 0) by default and add an option to disable it.
    • urlencode_component & urldecode_component were renamed to urlencode_data & urldecode_data, urlencode_component & urldecode_component are now new functions
  • Changes:
    • Renamed from_hexip to from_hexipv4 and created an aliases from_hexip for from_hexipv4. Same for to_hexipv4 and bang methods.
    • add options support for all decimal methods and aliases
  • New methods:
    • from_hexipv6 and from_hexipv6!
    • bin2dec and dec2bin
    • urlencode_component (see breaking change, the old urlencode_component was renamed urlencode_data)
    • urldecode_component (see breaking change, the old urldecode_component was renamed urldecode_data)
  • Chore:
    • Add support for Ruby 3.3 (up to Ruby < 4.0)
  • Fix:
    • bin2hex: fix odd byte cropping issue
    • fix documentation for base64

Media