Skip to content

v0.3.0

Choose a tag to compare

@lxcode lxcode released this 20 Apr 11:01
· 12 commits to main since this release
18fc6cd

What's new

Fixes GitHub issue #71: Cloudflare's "Just a moment..." JS challenge page surfacing as a confusing JSONDecodeError from api.lookup.

Behavior change

  • _get now raises CFBlockException (a LoginErrorException subclass) when the Cloudflare JS challenge page is received, instead of logging Failed to decode JSON: ... and returning None. Callers that relied on the old silent-None path should now catch CFBlockException explicitly.
  • pull_statuses re-raises CFBlockException before its broad except Exception, so CF blocks are no longer silently converted to empty result sets.

TLS/fingerprint hygiene

  • curl_cffi bumped from ^0.14 to ^0.15 to pick up the chrome146 impersonation profile.
  • IMPERSONATE_TARGET set to chrome146 and USER_AGENT updated to the matching reduced-UA string (macOS 10_15_7, Chrome 146.0.0.0). Applied at all three call sites in lockstep so the declared UA and TLS/JA3 fingerprint do not drift.

Tooling

  • Dev dependencies swapped: black and pylint removed; ruff and ty added. ruff format applied across the package; drive-by lint fixes (__all__ in __init__, != None → is not None, Optional[X] → X | None, raise ... from None/e).

Dependency floors bumped

click, loguru, python-dotenv, pytest moved to current minors. poetry.lock regenerated.