build(deps): bump django-ninja from 1.5.3 to 1.6.0 #995 (lando@main)

Warnings
  • Checking...
Blockers
  • Checking...
Branches dependabot/pip/django-ninja-1.6.0 -> main
Repo lando@main (git) (git://github.com/mozilla-conduit/lando.git)
Author dependabot[bot]
State open
Commit Title build(deps): bump django-ninja from 1.5.3 to 1.6.0
Commit Body Bumps [django-ninja](https://github.com/vitalik/django-ninja) from 1.5.3 to 1.6.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitalik/django-ninja/releases">django-ninja's releases</a>.</em></p> <blockquote> <h2>1.6.0</h2> <h2>What's New</h2> <h3>Idempotent Router(s)</h3> <p>Routers are now reusable and can be mounted to multiple APIs or multiple times within the same API. Decorators, auth, tags, and throttle settings are fully isolated between mounts.</p> <pre lang="python"><code>router = Router(tags=[&quot;shared&quot;]) <p><a href="https://github.com/router"><code>@​router</code></a>.get(&quot;/items&quot;) def list_items(request): return [{&quot;id&quot;: 1}]</p> <h1>Mount same router to multiple APIs</h1> <p>api_v1 = NinjaAPI(urls_namespace=&quot;v1&quot;) api_v1.add_router(&quot;/&quot;, router)</p> <p>api_v2 = NinjaAPI(urls_namespace=&quot;v2&quot;) api_v2.add_router(&quot;/&quot;, router) # !!! Before this was giving an error </code></pre></p> <h3>Cursor Pagination</h3> <p>New <code>CursorPagination</code> class for stable pagination over frequently changing datasets. Uses base64-encoded cursor tokens instead of offsets, ensuring consistent results even when items are added or removed.</p> <pre lang="python"><code>from ninja.pagination import paginate, CursorPagination <p><a href="https://github.com/api"><code>@​api</code></a>.get(&quot;/events&quot;, response=list[EventSchema]) <a href="https://github.com/paginate"><code>@​paginate</code></a>(CursorPagination, ordering=(&quot;-created&quot;,), page_size=20) def list_events(request): return Event.objects.all() </code></pre></p> <h3>Status Return</h3> <p>New <code>Status</code> class for explicitly returning HTTP status codes. Replaces the old tuple syntax <code>(status_code, body)</code> which is now <strong>deprecated</strong>.</p> <pre lang="python"><code>from ninja import Status <p><a href="https://github.com/api"><code>@​api</code></a>.post(&quot;/login&quot;, response={200: Token, 401: Message}) def login(request, payload: Auth): if not valid: return Status(401, {&quot;message&quot;: &quot;Unauthorized&quot;}) return Status(200, {&quot;token&quot;: token}) </code></pre></p> <h3>Skip Re-validation</h3> <p>When returning a Pydantic model instance that already matches the response schema, Django Ninja now skips redundant validation and directly serializes — a nice performance boost.</p> <pre lang="python"><code>&lt;/tr&gt;&lt;/table&gt; </code></pre> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vitalik/django-ninja/commit/56e868754e4ede8a47beb1833c8f67d4134339ea"><code>56e8687</code></a> 1.6.0</li> <li><a href="https://github.com/vitalik/django-ninja/commit/e6f732b6d3939b04501d23d4c722a8de26e9d5be"><code>e6f732b</code></a> 1.6.0b1</li> <li><a href="https://github.com/vitalik/django-ninja/commit/9d9bd052d0d17a135ba2e1fca49f1911b80058dc"><code>9d9bd05</code></a> Merge pull request <a href="https://redirect.github.com/vitalik/django-ninja/issues/1690">#1690</a> from vitalik/uniont-type</li> <li><a href="https://github.com/vitalik/django-ninja/commit/a6b0d587e42f52e3ce1698765d7fb6d43aaa0cae"><code>a6b0d58</code></a> Optional Union fix</li> <li><a href="https://github.com/vitalik/django-ninja/commit/7d549d56b8d79a10302e4c245e763f5d9754432c"><code>7d549d5</code></a> coverage on 3.12</li> <li><a href="https://github.com/vitalik/django-ninja/commit/5c1c40b8524593ed60c763a3f7256b5a05e463b5"><code>5c1c40b</code></a> Merge pull request <a href="https://redirect.github.com/vitalik/django-ninja/issues/1689">#1689</a> from martinsvoboda/patch-1</li> <li><a href="https://github.com/vitalik/django-ninja/commit/2b015131c13210c84b7ac3ab64d6fb2812dddfa5"><code>2b01513</code></a> Propose clarifications for view and operational decorators</li> <li><a href="https://github.com/vitalik/django-ninja/commit/b0f3e9a17727e24d513dcd67cab886417b965899"><code>b0f3e9a</code></a> Streaming improvement (<a href="https://redirect.github.com/vitalik/django-ninja/issues/1685">#1685</a>)</li> <li><a href="https://github.com/vitalik/django-ninja/commit/524108aa89452ce99cfb617c52be9f9aad944ad0"><code>524108a</code></a> Status return, Skip revalidation (<a href="https://redirect.github.com/vitalik/django-ninja/issues/1684">#1684</a>)</li> <li><a href="https://github.com/vitalik/django-ninja/commit/e6c46dbd94a55b46d5dc0c54113a668ef6947c52"><code>e6c46db</code></a> python 3.14 compatibility (namespace annotations) (<a href="https://redirect.github.com/vitalik/django-ninja/issues/1688">#1688</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vitalik/django-ninja/compare/v1.5.3...v1.6.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=django-ninja&package-manager=pip&previous-version=1.5.3&new-version=1.6.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>

Landings

Not yet Landed
There has been no attempt to land revisions in this stack.