Skip to content

Version 3.0.0

Compare
Choose a tag to compare
@danialkeimasi danialkeimasi released this 20 May 09:33
· 18 commits to main since this release

Release Notes

New Features and Enhancements

Add Support: e0b1f5b

  • Python 3.12
  • Django 5.0

Breaking Changes

Drop Support: e0b1f5b

  • Django 3.2, 4.0, and 4.1: These older versions are no longer supported, encouraging users to upgrade to more recent versions for better security and functionality.

Remove Deprecated Render Functions: cccd8ed

  • render_nextjs_page_to_string_async
  • render_nextjs_page_async
  • render_nextjs_page_to_string_sync
  • render_nextjs_page_sync

Use render_nextjs_page_to_string and render_nextjs_page in an async views and utilize async_to_sync to use same functions in sync views.

New API

Add New views.nextjs_page API: 9f15da1

  • Example Usage:
    from django_nextjs.views import nextjs_page
    urlpatterns = [
        path("/items/pinned", nextjs_page(template_name="django_nextjs/document_dev.html"), name="jobs_pinned"),
    ]
  • This new API simplifies the creation of views, enhancing the development workflow with a more straightforward for rendering pages.

Bug Fixes

  • Do not include cookies with empty key by @jvdboog in #31

Full Changelog: v2.4.0...v3.0.0