Skip to content

v0.23.0

Compare
Choose a tag to compare
@kddnewton kddnewton released this 14 Feb 17:58
· 909 commits to main since this release
b68effc

Added

  • More support for Prism::RipperCompat is added.
  • A significantly faster offset cache for Prism::Translation::Parser is added for files with multibyte characters.
  • Prism::Translation::RubyParser is added.
  • Prism::ConstantPathTarget#full_name is added.
  • version: "3.4.0" is added as an option that is an alias for version: "latest".
  • Four new APIs are added to Prism::Location:
    • Prism::Location#start_code_units_offset
    • Prism::Location#end_code_units_offset
    • Prism::Location#start_code_units_column
    • Prism::Location#end_code_units_column
  • Invalid multibyte characters are now validated within strings, lists, and heredocs.

Changed

  • When defining def !@, the name_loc was previously only pointing to !, but now includes the @. The name is the same.
  • Prism::RipperCompat has been moved to Prism::Translation::Ripper.
  • Many of the error messages that prism produces have been changed to match the error messages that CRuby produces.