Skip to content

4.0.4

Choose a tag to compare

@github-actions github-actions released this 06 Nov 00:18
· 66 commits to main since this release

This release fixes the links on the PyPI page. The 4.0.3 page linked to the
project's old website domain, which now belongs to someone else and serves a
gambling site. Issue #229 was closed when the link changed in this repository,
but PyPI kept showing the old link until a new release. With this release it is
really fixed (#229, #230). The links now point to
https://bensynapse.github.io/jsonrpcclient/ and
https://github.com/bensynapse/jsonrpcclient.

  • request_hex, request_random and request_uuid are now safe to call from
    several threads at once. Before, they could raise ValueError: generator already executing, and free-threaded Python could crash. The iterators from
    jsonrpcclient.id_generators are thread-safe too.
  • Type hints: params accepts a list. The *_json functions return str, and
    parse has overloads, so a type checker knows a dict gives one response and
    a list gives an iterator. parse_json used to be typed as Any. Code that
    uses its result without an isinstance check now needs one to pass mypy.
  • Added __version__.
  • Needs Python 3.8 or later (was 3.6). Tested on 3.8 to 3.14 and on
    free-threaded 3.14. Older Pythons will keep installing 4.0.3.
  • The documentation moved to https://bensynapse.github.io/jsonrpcclient/.
  • Releases now include both an sdist and a wheel. They are published from
    GitHub Actions with build attestations.