Skip to content

v0.7.0

Compare
Choose a tag to compare
@joshuadavidthomas joshuadavidthomas released this 16 Jul 18:32
· 84 commits to main since this release
fc16257

This is a pretty big release, with a major refactor of the internals of the library and a number of breaking changes, which you can find below. Please read the CHANGELOG for more info.

🚨 Breaking Changes 🚨

There are a handful of breaking changes in this release.

  • Django 3.2 support has been dropped. (#91)
  • Internals of library have been refactored to slightly simplify it, including Nav, NavGroup, NavItem and the django_simple_nav templatetag. (#89, #95)
  • The extra_context attribute of NavItem and NavGroup now only renders the contents of the dictionary to the template context. Previously it did that as well as provided extra_context to the context. If this sounds confusing, that's because it kinda is. 😅 This basically just means instead of two places to get the extra context (extra_context and the keys provided within the extra_context attribute), there is now just one (the keys provided within the extra_context attribute). (#89)
  • NavGroup is now marked as active if the request path matches its URL (if set) or one of its items' URLs. (#105)
  • Nav.get_items now returns a list of NavGroup or NavItem, instead of a list of RenderedNavItem. (#89)
  • RenderedNavItem has been removed and it's functionality refactored into both NavItem and NavGroup. This should not affect the public API of this library, but I thought it should be noted. (#89)
  • django_simple_nav.permissions module has been removed and it's functionality refactored into NavItem. (#89)

What's Changed

Full Changelog: v0.6.0...v0.7.0