Skip to content

[PR #12152/c1981efd backport][3.14] docs: replace deprecated ujson with orjson in client quickstart#12162

Merged
Dreamsorcerer merged 1 commit into3.14from
patchback/backports/3.14/c1981efd5f751b95f3569e956b6ee91f314aa7cb/pr-12152
Feb 27, 2026
Merged

[PR #12152/c1981efd backport][3.14] docs: replace deprecated ujson with orjson in client quickstart#12162
Dreamsorcerer merged 1 commit into3.14from
patchback/backports/3.14/c1981efd5f751b95f3569e956b6ee91f314aa7cb/pr-12152

Conversation

@patchback
Copy link
Contributor

@patchback patchback bot commented Feb 27, 2026

This is a backport of PR #12152 as merged into master (c1981ef).

Fixes #10795.

The ujson library has been placed in maintenance-only mode. Its own maintainers now recommend migrating to orjson (source):

UltraJSON's architecture is fundamentally ill-suited to making changes without risk of introducing new security vulnerabilities. Users are encouraged to migrate to orjson which is both much faster and less likely to introduce a surprise buffer overflow vulnerability in the future.

Changes

docs/client_quickstart.rst: Replaced the ujson code example with orjson. Since orjson.dumps returns bytes rather than str, the example now uses the json_serialize_bytes parameter (added for exactly this use case), which avoids an unnecessary encode/decode round-trip. Updated the surrounding text to mention both json_serialize and json_serialize_bytes parameters.

CHANGES/10795.doc.rst: Added a towncrier changelog fragment as required by the contributing guidelines.


Posted by Adam, an AI agent acting on behalf of @indoor47.

@codecov
Copy link

codecov bot commented Feb 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.25%. Comparing base (f438791) to head (0492061).
⚠️ Report is 4 commits behind head on 3.14.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             3.14   #12162      +/-   ##
==========================================
- Coverage   98.26%   98.25%   -0.01%     
==========================================
  Files         129      129              
  Lines       45678    45678              
  Branches     2473     2473              
==========================================
- Hits        44884    44881       -3     
- Misses        612      615       +3     
  Partials      182      182              
Flag Coverage Δ
CI-GHA 98.13% <ø> (-0.01%) ⬇️
OS-Linux 97.89% <ø> (-0.01%) ⬇️
OS-Windows 95.63% <ø> (ø)
OS-macOS 97.16% <ø> (ø)
Py-3.10.11 96.70% <ø> (ø)
Py-3.10.19 97.18% <ø> (-0.01%) ⬇️
Py-3.11.14 97.41% <ø> (ø)
Py-3.11.9 96.94% <ø> (ø)
Py-3.12.10 97.02% <ø> (ø)
Py-3.12.12 97.50% <ø> (ø)
Py-3.13.12 97.72% <ø> (-0.01%) ⬇️
Py-3.14.3 97.68% <ø> (ø)
Py-3.14.3t 96.79% <ø> (ø)
Py-pypy3.11.13-7.3.20 96.82% <ø> (-0.01%) ⬇️
VM-macos 97.16% <ø> (ø)
VM-ubuntu 97.89% <ø> (-0.01%) ⬇️
VM-windows 95.63% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@codspeed-hq
Copy link

codspeed-hq bot commented Feb 27, 2026

Merging this PR will not alter performance

✅ 59 untouched benchmarks


Comparing patchback/backports/3.14/c1981efd5f751b95f3569e956b6ee91f314aa7cb/pr-12152 (0492061) with 3.14 (f438791)1

Open in CodSpeed

Footnotes

  1. No successful run was found on 3.14 (3c7f1d6) during the generation of this report, so f438791 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@Dreamsorcerer Dreamsorcerer merged commit a9a52f2 into 3.14 Feb 27, 2026
38 checks passed
@Dreamsorcerer Dreamsorcerer deleted the patchback/backports/3.14/c1981efd5f751b95f3569e956b6ee91f314aa7cb/pr-12152 branch February 27, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants