Skip to content

Crossandra 2.0.0

Compare
Choose a tag to compare
@trag1c trag1c released this 29 Apr 17:51
· 25 commits to main since this release
78bfe1f

Added

  • Aliases for enums
  • API tests
  • Common pattern tests (big thanks to @qexat)
  • Docstrings
  • Python 3.8 support
  • Typehints and docstrings are now supported when using mypyc wheels (big thanks to @Lunarmagpie)

Changed

  • Allowed underscores in numeric literal patterns
  • CrossandraTokenizationError and CrossandraValueError are now raised instead of CrossandraError (it can be used to catch both exceptions)
  • Improved documentation
  • Rule objects are now comparable, hashable and immutable
  • Slightly improved performance when tokenizing with empty enums (up to 10% faster)
  • The IGNORED/NOT_APPLIED constants (and their types) can now be imported directly
  • The pre-tokenization CRLF to LF conversion can now be disabled through the Crossandra(convert_crlf=...) parameter
  • Updated Rule signature:
    • Rule(converter=True) -> Rule(converter=None)
    • Rule(converter=False) -> Rule(ignore=True)
    • flags is now a keyword-only argument

Fixed

  • Fixed bad traversal bug (big thanks to @circuitsacul)
  • Fixed common patterns:
    • CHAR
    • DECIMAL
    • FLOAT (and its derivatives)