Skip to content

v2.0.0rc2

Pre-release
Pre-release

Choose a tag to compare

@derek73 derek73 released this 26 Jul 20:41
25b095b

Second release candidate for nameparser 2.0.0. Install it with pip install --pre nameparser (a plain pip install will not select a pre-release). Please report anything the migration missed on #284.

rc2 is rc1 plus the post-rc1 API-polish bundle (#290). If you tested rc1, the release log's "Changed since 2.0.0rc1" section lists exactly what you'd notice:

  • Role became a StrEnum — members compare and stringify as their field names
  • ParsedName.tokens_for() raises ValueError for unknown roles instead of silently returning no tokens, and accepts role-name strings
  • ParsedName.as_dict()'s include_empty is keyword-only
  • HumanName subscripting accepts Role members
  • The eight multi-word vocabulary entries that could never match were repaired (chargé d'affaires split into chainable words, both spellings; seven credential acronyms removed), and storing a new multi-word entry now warns — a restored pre-2.0 Constants pickle carrying all eight is cleaned up silently
  • PolicyPatch's repr shows only the fields a patch sets
  • New API since rc1: STABLE_TAGS, Policy.patched(), Parser.matches(), Parser.capitalized(), and Parser.revise()

🤖 Generated with Claude Code