Skip to content

docs: Replace deprecated ujson with orjson in client quickstart#12041

Open
veeceey wants to merge 4 commits intoaio-libs:masterfrom
veeceey:fix/issue-10795-update-ujson-to-orjson
Open

docs: Replace deprecated ujson with orjson in client quickstart#12041
veeceey wants to merge 4 commits intoaio-libs:masterfrom
veeceey:fix/issue-10795-update-ujson-to-orjson

Conversation

@veeceey
Copy link
Contributor

@veeceey veeceey commented Feb 8, 2026

Summary

  • Replaced deprecated ujson reference with orjson in client quickstart documentation
  • Updated note to reflect that orjson is faster and more compatible than the now-deprecated ujson

Context

The ujson library has been put into maintenance-only mode due to security concerns and architectural issues. The library's PyPI page now recommends migrating to orjson, which is both significantly faster and less prone to security vulnerabilities.

Changes

  • Updated code example to use orjson.dumps instead of ujson.dumps
  • Modified documentation note to recommend orjson and mention ujson's deprecation

Test plan

  • Documentation change only, no functional code changes
  • Verified documentation builds correctly

Fixes #10795

The ujson library is now in maintenance-only mode and deprecated.
Updated the documentation to recommend orjson instead, which is
both faster and more secure.

Fixes aio-libs#10795
@codspeed-hq
Copy link

codspeed-hq bot commented Feb 8, 2026

Merging this PR will not alter performance

✅ 59 untouched benchmarks


Comparing veeceey:fix/issue-10795-update-ujson-to-orjson (66c050c) with master (1c472b5)

Open in CodSpeed

@codecov
Copy link

codecov bot commented Feb 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.77%. Comparing base (d92774f) to head (66c050c).
⚠️ Report is 15 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12041      +/-   ##
==========================================
+ Coverage   98.76%   98.77%   +0.01%     
==========================================
  Files         127      128       +1     
  Lines       44667    44890     +223     
  Branches     2372     2383      +11     
==========================================
+ Hits        44114    44340     +226     
+ Misses        393      390       -3     
  Partials      160      160              
Flag Coverage Δ
CI-GHA 98.63% <ø> (+0.01%) ⬆️
OS-Linux 98.37% <ø> (+0.01%) ⬆️
OS-Windows 96.71% <ø> (+<0.01%) ⬆️
OS-macOS 97.60% <ø> (+0.01%) ⬆️
Py-3.10.11 97.16% <ø> (+0.02%) ⬆️
Py-3.10.19 97.64% <ø> (+0.01%) ⬆️
Py-3.11.14 97.84% <ø> (+0.01%) ⬆️
Py-3.11.9 97.37% <ø> (+0.02%) ⬆️
Py-3.12.10 97.46% <ø> (+0.02%) ⬆️
Py-3.12.12 97.93% <ø> (+0.01%) ⬆️
Py-3.13.11 ?
Py-3.13.12 98.18% <ø> (?)
Py-3.14.2 ?
Py-3.14.3 98.15% <ø> (?)
Py-3.14.3t 97.23% <ø> (-0.01%) ⬇️
Py-pypy3.11.13-7.3.20 97.38% <ø> (-0.02%) ⬇️
VM-macos 97.60% <ø> (+0.01%) ⬆️
VM-ubuntu 98.37% <ø> (+0.01%) ⬆️
VM-windows 96.71% <ø> (+<0.01%) ⬆️

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.

@psf-chronographer psf-chronographer bot added the bot:chronographer:provided There is a change note present in this PR label Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided There is a change note present in this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ujson library mentioned in the documentation is deprecated

1 participant

Comments