Releases: westerveltco/django-simple-nav
Releases · westerveltco/django-simple-nav
v0.11.0
What's Changed
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #121
- 📝 Spacing changes for docs project by @williln in #122
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #123
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #124
- take into account url scheme and domain when checking for active by @joshuadavidthomas in #126
- 🔖 bump version 0.10.0 -> 0.11.0 by @joshuadavidthomas in #127
New Contributors
Full Changelog: v0.10.0...v0.11.0
v0.10.0
What's Changed
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #116
- bump template to 2024.23 by @joshuadavidthomas in #117
- 🔖 bump version 0.9.0 -> 0.10.0 by @joshuadavidthomas in #118
- 🔖 bump version 0.9.0 -> 0.10.0 (2nd try) by @joshuadavidthomas in #119
Full Changelog: v0.9.0...v0.10.0
v0.9.0
What's Changed
- fix active
NavItem
check for urls with query params by @joshuadavidthomas in #114 - 🔖 bump version 0.8.0 -> 0.9.0 by @joshuadavidthomas in #115
Full Changelog: v0.8.0...v0.9.0
v0.8.0
What's Changed
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #111
- allow
NavItem.url
to be a callable that returns a string by @joshuadavidthomas in #112 - 🔖 bump version 0.7.0 -> 0.8.0 by @joshuadavidthomas in #113
Full Changelog: v0.7.0...v0.8.0
v0.7.0
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 thedjango_simple_nav
templatetag. (#89, #95) - The
extra_context
attribute ofNavItem
andNavGroup
now only renders the contents of the dictionary to the template context. Previously it did that as well as providedextra_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 theextra_context
attribute), there is now just one (the keys provided within theextra_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 ofNavGroup
orNavItem
, instead of a list ofRenderedNavItem
. (#89)RenderedNavItem
has been removed and it's functionality refactored into bothNavItem
andNavGroup
. 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 intoNavItem
. (#89)
What's Changed
- move
request.user
check to earlier incheck_item_permissions
by @joshuadavidthomas in #76 - [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #77
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #78
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #80
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #81
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #82
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #83
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #84
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #85
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #86
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #87
- add basedpyright config and convert
Any
toobject
hints by @joshuadavidthomas in #88 - simplify
Nav
rendering by @joshuadavidthomas in #89 - bump template to v2024.20 and drop support for Django 3.2 by @joshuadavidthomas in #91
- add ability for permission to be a callable by @joshuadavidthomas in #92
- Update README to include required setting changes by @joshuadavidthomas in #94
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #93
- refactor templatetag and add type hints by @joshuadavidthomas in #95
- add
get_template
toNav
by @joshuadavidthomas in #96 - fix active url detection by @joshuadavidthomas in #98
- fix permission checks for multiple perms and
NavGroup
by @joshuadavidthomas in #99 - refactor and shore up test suite by @joshuadavidthomas in #100
- refactor
get_context_data
by @joshuadavidthomas in #103 - add
NavItem.get_items
by @joshuadavidthomas in #104 NavGroup
now marked as active if any item URLs are active by @joshuadavidthomas in #105- add
_templates.get_template_engine
tests by @joshuadavidthomas in #106 - add tests for
django_simple_nav
templatetag to round out coverage by @joshuadavidthomas in #107 - 🔖 bump version 0.6.0 -> 0.7.0 by @joshuadavidthomas in #108
Full Changelog: v0.6.0...v0.7.0
v0.6.0
What's Changed
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #61
- bump template to v2024.16 by @joshuadavidthomas in #64
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #65
- add
get_template_name
andget_items
methods toNav
by @joshuadavidthomas in #69 - fix active nav item matching by @joshuadavidthomas in #71
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #66
- add ability to pass in args to
pytest
innox
session by @joshuadavidthomas in #72 - [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #74
- 🔖 bump version 0.5.1 -> 0.6.0 by @joshuadavidthomas in #75
Full Changelog: v0.5.1...v0.6.0
v0.5.1
What's Changed
- add
py.typed
file by @joshuadavidthomas in #60 - add
uv
as backend fornox
by @joshuadavidthomas in #62 - 🔖 bump version 0.5.0 -> 0.5.1 by @joshuadavidthomas in #63
Full Changelog: v0.5.0...v0.5.1
v0.5.0
What's Changed
- add tests to get to 100% code coverage by @joshuadavidthomas in #41
- check if
django.contrib.auth
app is installed and adjust perm checks by @joshuadavidthomas in #49 - add test for nested templatetag by @joshuadavidthomas in #50
- switch templatetag variable resolution to new vars by @joshuadavidthomas in #51
- create example demo by @joshuadavidthomas in #42
- 🔖 bump version 0.4.0 -> 0.5.0 by @joshuadavidthomas in #59
Full Changelog: v0.4.0...v0.5.0
v0.4.0
What's Changed
- update docs with major overhaul by @joshuadavidthomas in #38
- add
get_context_data
andrender
methods toNav
by @joshuadavidthomas in #39 - 🔖 bump version 0.3.0 -> 0.4.0 by @joshuadavidthomas in #40
Full Changelog: v0.3.0...v0.4.0
v0.3.0
What's Changed
- bump template to v2024.13 by @joshuadavidthomas in #30
- Update navs.py by @joshuadavidthomas in #31
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #32
- add
extra_context
toNavGroup
andNavItem
by @joshuadavidthomas in #34 - update README with additional documentation by @joshuadavidthomas in #36
- 🔖 bump version 0.2.0 -> 0.3.0 by @joshuadavidthomas in #37
Full Changelog: v0.2.0...v0.3.0