Releases: torchbox/wagtail-grapple
v0.31.0
v0.30.0
What's Changed
- Feat: Adding the option of importing interfaces from strings by @Hercilio1 in #423
- Bugfix: Add WAGTAILADMIN_BASE_URL in the get_media_item_url function by @Hercilio1 in #422
- Replaced obsolete BASE_URL setting with WAGTAILADMIN_BASE_URL
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci[bot] in #424
New Contributors
- @Hercilio1 made their first contribution in #423
Full Changelog: v0.29.0...v0.30.0
v0.29.0 - Wagtail 7.0
What's Changed
- Add support for wagtail 7+ by @rachelhsmith in #425
New Contributors
- @rachelhsmith made their first contribution in #425
Full Changelog: v0.28.0...v0.29.0
ImageBlock and Wagtail 6.4
What's Changed
- Add support for Wagtail 6.3 and 6.4 and Python 3.13 by @mgax in #416
- Add support for
ImageBlockby @mgax in #419, with kudos to @b-tupiti for starting this in #411 - Remove support for Wagtail < 6.3 and Python 3.8 by @mgax in #416
- Updates to CI by @zerolab and @mgax in #415, #417, #418, #420, #421
Full Changelog: v0.27.0...v0.28.0
v0.27.0 - Interfaces and filters
What's Changed
- Fix issue with querying value on EmbedBlock by @JakubMastalerz in #399
- Fix circular import for
PageInterfacewhen using custom page interface by @mgax in #404 - Add an
in_menufilter by @dopry in #402 - Add ability to specify the search operator by @dopry in #406
- Replace
SnippetObjectTypewithSnippetInterfaceby @mgax in #405
See https://wagtail-grapple.readthedocs.io/en/latest/general-usage/interfaces.html#snippetinterface for more details
Full Changelog: v0.26.0...v0.27.0
v0.26 - nullable core chooser blocks
What's Changed
- Ensure ruff version consistency by @zerolab in #393
- Make StreamfieldChooser blocks values nullable by @JakubMastalerz in #396
Full Changelog: v0.25.1...v0.26.0
v0.25.1 - Clean up
Removes pre-Wagtail 5.2 conditional code.
Improves the logic for fetching renditions for SVGs when none of the passed filters are valid: now we return the original SVG, rather than throw an error
v0.25 - Wagtail 5.2+, Django 4.2+
This is mostly a tidy up release - adds Wagtail 6 and Django 5.0 support, and drops support for Wagtail < 5.2, Django < 4.2
What's Changed
- Support Wagtail 5.2+, Wagtail 6+, Python 3.12 and Django 5 by @Morsey187 in #387
- Tooling updates by @zerolab in #388
Full Changelog: v0.24.0...v0.25.0
v0.24 - better redirects for multi-site setups
This release makes working with redirects in multi-site setups easier by adding more details. It:
- Exposes the
sitefield. - Supports redirects without a
new_urlorpagethus making HTTP 410 handling possible. - Returns one result per associated site.
Warning
This is a breaking change release.
- The
new_urlin results now takes into account theRedirectsite. Previously, this would always useBASE_URL(from the settings file) - Redirects that apply to all sites (i.e. not associated with a specific
site) now appear multiple times when querying - one for each Site created in Wagtail.
Upgrade considerations
In a multi-site setup, you should add the site field to any redirect queries to help disambiguate between redirects that apply to all sites.
For example, given we have two Sites created in Wagtail:
and a single Redirect from old-path to new-path that is not associated with any specific site (and thus applies to all sites).
Previously, querying for a redirect:
{
redirects {
newUrl
oldUrl
oldPath
page {
id
}
isPermanent
}
}would produce:
{
"data": {
"redirects": [
{
"isPermanent": true,
"newUrl": "http://www.example.com/new-path",
"oldPath": "/old-path",
"oldUrl": "http://www.example.com/old-path",
"page": null
}
]
}
}which excludes the redirect that applies to https://www.another-example.com.
As of this release, the same query would produce:
{
"data": {
"redirects": [
{
"isPermanent": true,
"newUrl": "http://www.example.com/new-path",
"oldPath": "/old-path",
"oldUrl": "http://www.example.com/old-path",
"page": null,
},
{
"isPermanent": true,
"newUrl": "http://www.another-example.com/new-path",
"oldPath": "/old-path",
"oldUrl": "http://www.another-example.com/old-path",
"page": null,
}
]
}
}To disambiguate the results, you should add site to your query, for example:
{
redirects {
newUrl
oldUrl
oldPath
page {
id
}
isPermanent
site {
hostname
}
}
}which would return:
{
"data": {
"redirects": [
{
"isPermanent": true,
"newUrl": "http://www.example.com/new-path",
"oldPath": "/old-path",
"oldUrl": "http://www.example.com/old-path",
"page": null,
"site": {
"hostname": "www.example.com"
}
},
{
"isPermanent": true,
"newUrl": "http://www.another-example.com/new-path",
"oldPath": "/old-path",
"oldUrl": "http://www.another-example.com/old-path",
"page": null,
"site": {
"hostname": "www.another-example.com"
}
}
]
}
}What's Changed
- Fixed test failing for wagtail 5.2 by @JakubMastalerz in #378
- Avoid using hardcoded localhost in Redirects by @JakubMastalerz in #380
New Contributors
- @JakubMastalerz made their first contribution in #378
Full Changelog: v0.23.0...v0.24.0
v0.23 - preserveSvg everywhere, by default
This releases ensures srcSet supports the preserveSvg flag, and that the flag is True by default
What's Changed
- CI speedups by @zerolab in #368
- Implement
preserveSvgflag forsrcSet()by @mgax in #370 - Make
preserveSvgdefault totrueby @mgax in #371 - Tweak tox-gh-action by @zerolab in #372
Full Changelog: v0.22.0...v0.23.0