Commit Graph

6929 Commits

Author SHA1 Message Date
github-actions[bot] da1937443d 📝 Update release notes
[skip ci]
2026-02-23 15:04:55 +00:00
Sofie Van Landeghem 5161f7b42b
⬆ Update all dependencies to use `griffelib` instead of `griffe` (#14973)
* update to griffelib

* also update pydantic-ai

* move griffelib to get better GH diff

* restore accidental edit
2026-02-23 16:04:24 +01:00
github-actions[bot] fef2ce70d9 📝 Update release notes
[skip ci]
2026-02-23 11:45:11 +00:00
Motov Yurii a3c8c37272
🔨 Fix `FastAPI People` workflow (#14951) 2026-02-23 12:44:47 +01:00
github-actions[bot] 2826124378 📝 Update release notes
[skip ci]
2026-02-22 18:22:03 +00:00
Sebastián Ramírez 4da264f0f3
👷 Do not run codspeed with coverage as it's not tracked (#14966) 2026-02-22 19:21:38 +01:00
github-actions[bot] c5559a66dd 📝 Update release notes
[skip ci]
2026-02-22 18:14:11 +00:00
Sebastián Ramírez 1cea8f659c
👷 Do not include benchmark tests in coverage to speed up coverage processing (#14965) 2026-02-22 19:13:49 +01:00
Sebastián Ramírez b423b73c35 🔖 Release version 0.131.0 2026-02-22 17:36:21 +01:00
github-actions[bot] 70e8558352 📝 Update release notes
[skip ci]
2026-02-22 16:35:25 +00:00
Sebastián Ramírez 48e9835732
🗑️ Deprecate `ORJSONResponse` and `UJSONResponse` (#14964) 2026-02-22 17:34:59 +01:00
Sebastián Ramírez 2e62fb1513 📝 Update release notes 2026-02-22 17:18:26 +01:00
Sebastián Ramírez eb544e704c 🔖 Release version 0.130.0 2026-02-22 17:14:53 +01:00
github-actions[bot] bc06e4296d 📝 Update release notes
[skip ci]
2026-02-22 16:07:56 +00:00
Sebastián Ramírez 590a5e5355
Serialize JSON response with Pydantic (in Rust), when there's a Pydantic return type or response model (#14962) 2026-02-22 17:07:19 +01:00
Sebastián Ramírez 1e78a36b73 🔖 Release version 0.129.2 2026-02-21 18:24:59 +01:00
github-actions[bot] f921de6495 📝 Update release notes
[skip ci]
2026-02-21 17:23:22 +00:00
Sebastián Ramírez 4ab8138554
⬆️ Upgrade pytest (#14959) 2026-02-21 18:22:54 +01:00
github-actions[bot] 468d5173ed 📝 Update release notes
[skip ci]
2026-02-21 16:45:38 +00:00
Sebastián Ramírez c9455d5400
👷 Fix CI, do not attempt to publish `fastapi-slim` (#14958) 2026-02-21 16:45:15 +00:00
github-actions[bot] 69ae1d0f28 📝 Update release notes
[skip ci]
2026-02-21 16:27:01 +00:00
Sebastián Ramírez 083b6ebe9e
Drop support for `fastapi-slim`, no more versions will be released, use only `"fastapi[standard]"` or `fastapi` (#14957) 2026-02-21 16:26:38 +00:00
github-actions[bot] 1b9a351ee8 📝 Update release notes
[skip ci]
2026-02-21 16:16:27 +00:00
Sebastián Ramírez f55ab7e020
🔧 Update pyproject.toml, remove unneeded lines (#14956) 2026-02-21 16:16:03 +00:00
Sebastián Ramírez c91fed958e 🔖 Release version 0.129.1 2026-02-21 14:08:06 +01:00
Sebastián Ramírez 04ff07fecd 📝 Update release notes 2026-02-21 14:07:09 +01:00
github-actions[bot] 1bf99b9a11 📝 Update release notes
[skip ci]
2026-02-21 13:01:58 +00:00
Sebastián Ramírez e8b98d2187
🐛 Fix JSON Schema for files, use `contentMediaType` instead of `format: binary` (#14953) 2026-02-21 14:01:31 +01:00
github-actions[bot] d2c17b603d 📝 Update release notes
[skip ci]
2026-02-20 15:40:34 +00:00
Motov Yurii cf058239d1
👷 Always run tests on push to `master` branch and when run by scheduler (#14940) 2026-02-20 16:40:05 +01:00
github-actions[bot] c44158384c 📝 Update release notes
[skip ci]
2026-02-18 21:31:13 +00:00
argoarsiks 3bdf470622
✏️ Fix several typos in ru translations (#14934)
* docs: fix typos

* Apply suggestion from @YuriiMotov

---------

Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com>
2026-02-18 22:30:43 +01:00
github-actions[bot] d178b95695 📝 Update release notes
[skip ci]
2026-02-18 21:19:34 +00:00
Sebastián Ramírez 339f702810
🔨 Add Kapa.ai widget (AI chatbot) (#14938)
Co-authored-by: Alejandra <alejsdev@gmail.com>
2026-02-18 16:26:13 +01:00
pre-commit-ci-lite[bot] 6240dc105a
🎨 Auto format 2026-02-17 16:02:39 +00:00
Charisn d762eb6405 Fix _endpoint_context_cache using id() which risks stale entries and memory leaks
The _endpoint_context_cache in routing.py used id(func) as dict keys to
cache endpoint context (source file, line number, function name) for
error messages. This has two problems:

1. ID reuse after garbage collection. Python id() returns the memory
   address of an object. Once an object is garbage collected, its ID can
   be reassigned to a newly created object. If an endpoint function were
   deallocated and a new function reused the same ID, the cache would
   return stale context (wrong file, line, function name) for error
   messages.

2. No eviction. The module-level dict grows unboundedly for every unique
   endpoint function. In scenarios where FastAPI instances are
   dynamically created and destroyed in a single process (e.g., test
   suites running hundreds of apps), endpoint functions and their
   closures are kept alive indefinitely by the cache, leaking memory.

Fix: replace the plain dict with a weakref.WeakKeyDictionary keyed on
the function object itself. This solves both problems: keys are looked
up by object identity (no ID collision), and entries are automatically
evicted when the endpoint function is garbage collected, allowing the
function and its closure to be reclaimed.

Endpoint functions always support weak references (regular def / async
def), so WeakKeyDictionary is safe for this use case.
2026-02-17 18:01:13 +02:00
github-actions[bot] da4135ce1e 📝 Update release notes
[skip ci]
2026-02-17 09:59:37 +00:00
Sebastián Ramírez faee822574
🎨 Upgrade typing syntax for Python 3.10 (#14932)
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: tiangolo <1326112+tiangolo@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-02-17 09:59:14 +00:00
github-actions[bot] 6e5680c7ea 📝 Update release notes
[skip ci]
2026-02-17 08:08:30 +00:00
Sebastián Ramírez bbb96d4a0a
🔥 Remove Python 3.9 specific files, no longer needed after updating translations (#14931) 2026-02-17 08:08:04 +00:00
github-actions[bot] ed12105cce 📝 Update release notes
[skip ci]
2026-02-14 08:57:26 +00:00
Motov Yurii 01e2e1088c
🌐 Update translations for ko (update-all and add-missing) (#14923)
* Update all and add missing

* 🎨 Auto format

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-02-14 09:57:01 +01:00
github-actions[bot] 82d90c51b4 📝 Update release notes
[skip ci]
2026-02-14 08:43:37 +00:00
Motov Yurii ec35d6d380
🌐 Update translations for uk (add-missing) (#14922)
* Add missing

* 🎨 Auto format

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-02-14 09:43:14 +01:00
github-actions[bot] 12f7e65670 📝 Update release notes
[skip ci]
2026-02-14 08:15:47 +00:00
Motov Yurii 9a082312f3
🌐 Update translations for zh-hant (update-all and add-missing) (#14921)
* Update all

* Add missing

* 🎨 Auto format

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-02-14 09:15:26 +01:00
github-actions[bot] dd97806864 📝 Update release notes
[skip ci]
2026-02-14 08:13:07 +00:00
Motov Yurii 7dc1be8b88
🌐 Update translations for fr (update-all and add-missing) (#14920)
* Update all

* Add missing

* 🎨 Auto format

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-02-14 09:12:41 +01:00
github-actions[bot] 417990fcb7 📝 Update release notes
[skip ci]
2026-02-14 07:57:54 +00:00
Motov Yurii dca874c58c
🌐 Update translations for de (update-all) (#14910)
* Update all

* 🎨 Auto format

* Apply suggestions from code review

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-02-14 08:57:30 +01:00