Releases: vitalik/django-ninja
1.0 alpha3
Warning: This is a pre-release of Django Ninja V1
You probably should not use this version in production
What's new v1a3
- Fixed pydantic context serialisation #825
What's new v1a2
- Pagination class accepts a request object
What's new v1a1
- async authentication fully supported on all layers
- CSRF is now automatic on Cookie based authentication ( now you should be able to combine multiple cookie/header/etc authenticators and play around with csrf logic)
- Pydantic2 - which has a core re-written in Rust and includes a lot of improvements and features like:
- Safer types.
- Better extensibility.
- Better performance - so far on few projects that I tested getting average 10% speed improvements (some particular views which do lot of validations should get pretty good bumps)
Unfortunately Django ninja integrates very deep into pydantic core with Schema class, so it is not possible to keep both pydantic v1 and v2 supported - and that is why ninja now bumps to version 1 which might have few deprecations or breaking changes on pydantic level
From Django ninja side I'm trying to make this upgrade as smooth as possible, if you use standard APIs without lot of magic - most likely upgrade should be without any code change
1.0 alpha2
Warning: This is a pre-release of Django Ninja V1
You probably should not use this version in production
What's new v1a2
- Pagination class accepts a request object
What's new v1a1
- async authentication fully supported on all layers
- CSRF is now automatic on Cookie based authentication ( now you should be able to combine multiple cookie/header/etc authenticators and play around with csrf logic)
- Pydantic2 - which has a core re-written in Rust and includes a lot of improvements and features like:
- Safer types.
- Better extensibility.
- Better performance - so far on few projects that I tested getting average 10% speed improvements (some particular views which do lot of validations should get pretty good bumps)
Unfortunately Django ninja integrates very deep into pydantic core with Schema class, so it is not possible to keep both pydantic v1 and v2 supported - and that is why ninja now bumps to version 1 which might have few deprecations or breaking changes on pydantic level
From Django ninja side I'm trying to make this upgrade as smooth as possible, if you use standard APIs without lot of magic - most likely upgrade should be without any code change
1.0 alpha1
Warning: This is a pre-release of Django Ninja V1
You probably should not use this version in production
What's new
- async authentication fully supported on all layers
- CSRF is now automatic on Cookie based authentication ( now you should be able to combine multiple cookie/header/etc authenticators and play around with csrf logic)
- Pydantic2 - which has a core re-written in Rust and includes a lot of improvements and features like:
- Safer types.
- Better extensibility.
- Better performance - so far on few projects that I tested getting average 10% speed improvements (some particular views which do lot of validations should get pretty good bumps)
Unfortunately Django ninja integrates very deep into pydantic core with Schema class, so it is not possible to keep both pydantic v1 and v2 supported - and that is why ninja now bumps to version 1 which might have few deprecations or breaking changes on pydantic level
From Django ninja side I'm trying to make this upgrade as smooth as possible, if you use standard APIs without lot of magic - most likely upgrade should be without any code change
0.22.2
0.22.1
0.22.0
What's Changed
- ModelSchema now support config.model_fields_optional to mark some or specific fields to be not required in schema
- Implement rudimentary support for async auth by @kjagiello in #735
- Allow to extend additional info key, value to OpenAPI Info section by @chenatlas in #715
- fix typo by @quique in #706
- api_operation is better described as a decorator by @quique in #707
- Added a section detailing how to reverse a url for the api docs page. by @SunsetOrange in #714
- Fix missing openapi endpoints by @rednaks in #731
- Add Django 4.2 support in
pyproject.toml
by @baseplate-admin in #736 - Added missing space by @TheHippo in #737
- fix: allow default example to be included in pagination output in generated API docs. by @jkeyes in #728
- Fix kwargs typing by @SmileyChris in #745
- Only title-case fields in schema if all lowercase verbose name by @SmileyChris in #748
- fix: paginate typo by @MrEcho92 in #752
- feat: add JSON encoding support for IPv4Address and IPv6Address by @jkeyes in #729
- Enable exception_handler to handle Pyright's strict mode by @paulzakin in #762
- Make optional field of UploadedFile optional by @karlosss in #766
New Contributors
- @quique made their first contribution in #706
- @SunsetOrange made their first contribution in #714
- @rednaks made their first contribution in #731
- @TheHippo made their first contribution in #737
- @jkeyes made their first contribution in #728
- @MrEcho92 made their first contribution in #752
- @paulzakin made their first contribution in #762
- @karlosss made their first contribution in #766
- @andZibralabs made their first contribution in #695
- @kjagiello made their first contribution in #735
- @chenatlas made their first contribution in #715
Full Changelog: v.0.21.0...v0.22.0
0.21.0
What's Changed
- Somewhat advanced filtering with FilterSchema by @l1b3r in #673
- Support both new and old style Union/Optional by @gvangool in #687
- Allow reversing URLs with multiple operations. by @strange in #638
- feat: openapi schema improvements by @aliereno in #504
- Fix #666: Support auth inheritance for routers by @aasiffaizal in #667
- improve error message in export_openapi_schema by @taobojlen in #653
- Add source maps for Redoc and Swagger UI by @chris-mcdo in #676
- Include information about Django 4.1 async ORM by @geeshta in #578
- Update crud.md by @Trystanr in #688
- Add a recipe for handling the file uploads by @barseghyanartur in #663
- [Docs] remove broken link by @GTorreil in #647
- Fix links to favicon in CDN templates by @stephane in #636
New Contributors
- @geeshta made their first contribution in #578
- @GTorreil made their first contribution in #647
- @barseghyanartur made their first contribution in #663
- @aasiffaizal made their first contribution in #667
- @taobojlen made their first contribution in #653
- @l1b3r made their first contribution in #673
- @strange made their first contribution in #638
- @chris-mcdo made their first contribution in #676
- @Trystanr made their first contribution in #688
- @gvangool made their first contribution in #687
- @aliereno made their first contribution in #504
Full Changelog: v0.20.0...v.0.21.0
0.20.0
What's Changed
- Speedup code reload by @hiaselhans in #624
- Added a support for openapi ServerObject by @Vaiders in #574
- Fix url_namespace -> urls_namespace msg by @SmileyChris in #519
- add --sorted flag to export_openapi_schema by @hiaselhans in #571
- Set correct media type in docs for custom renderer by @Svenito in #598
- Update swagger UI to 4.14.0 by @kabell in #553
Documentation
- Shuffle doc files around by @vpoulailleau in #543
- Fix README link to "async support" by @denizdogan in #545
- Add repository url in
pyproject.toml
by @baseplate-admin in #563 - Set up doc search by @tssujt in #572
Misc
- remove python 3.6 by @hiaselhans in #625
- Bump actions/checkout from 2 to 3 by @dependabot in #411
- Bump actions/setup-python from 2 to 4 by @dependabot in #493
- Fix failing
flit
build by @baseplate-admin in #564
New Contributors
- @vpoulailleau made their first contribution in #543
- @denizdogan made their first contribution in #545
- @baseplate-admin made their first contribution in #563
- @hiaselhans made their first contribution in #571
- @Svenito made their first contribution in #598
- @Vaiders made their first contribution in #574
- @kabell made their first contribution in #553
Full Changelog: v0.19.1...v0.20.0
0.19.1
What's Changed
- Declare the AuthenticationError exception class in all by @duducp in #489
- Small fix for many2many payloads to allow passing primary keys for model fields
Documentation
- Docs restructure by @SmileyChris in #334
- Add documentation on the
.from_orm
method by @cltrudeau in #503 - Added mutiple items example by @ihelmer07 in #509
New Contributors
- @cltrudeau made their first contribution in #503
- @ihelmer07 made their first contribution in #509
Full Changelog: v.0.19.0...v0.19.1
0.19.0
What's Changed
- docs decorator by @vitalik in #488
- Allow arbitrary Pagination Output ( alternative #464 @rafonseca ) by @vitalik in #483
- Update Redoc related documents by @tssujt in #462
- Improves authentication validation to throw an exception by @duducp in #454
- Add TestClient note to multiple APIs warning by @srcreigh in #416
- Implement implicit reverse url name generation by @SmileyChris in #361
- Also pass the router to
get_operation_url_name
by @SmileyChris in #486
- Also pass the router to
- [feat] add superuser session authentication only by @areski in #351
New Contributors
- @tssujt made their first contribution in #462
- @duducp made their first contribution in #454
- @srcreigh made their first contribution in #416
- @areski made their first contribution in #351
Full Changelog: v.0.18.0...v.0.19.0