Skip to content

v0.22.0

Compare
Choose a tag to compare
@kddnewton kddnewton released this 07 Feb 18:45
· 854 commits to main since this release
1fcec44

Added

  • More support for Prism::RipperCompat is added.
  • Support for Ruby 2.7 has been added, and the minimum Ruby requirement has been lowered to 2.7.

Changed

  • The error for an invalid source encoding has a new :argument level to indicate it raises an argument error.
  • BeginNode nodes that are used when a class, singleton class, module, method definition, or block have an inline rescue/ensure/else now have their opening locations set to the beginning of the respective keyword.
  • Improved error messages for invalid characters.
  • Prism.parse_file and similar APIs will raise more appropriate errors when the file does not exist or cannot be mapped.
  • Correctly handle the recover parameter for Prism::Translation::Parser.