Skip to content

Commit 336bc85

Browse files
committed
Update changelog
1 parent 89a42b2 commit 336bc85

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

CHANGELOG.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
11
## Unreleased
22

3-
## Changed
3+
## [0.21.0] - 2023-09-04
4+
5+
### Added
6+
7+
- Support for SVGs when using Wagtail 5.0+ ([#359](https://github.com/torchbox/wagtail-grapple/pull/359)) @zerolab
8+
You can differentiate images using the `isSVG` property. The image rendition field accepts a `preserveSvg` argument
9+
which will help prevent raster image operations (e.g. format-webp, bgcolor, etc.) being applied to SVGs. [Reference](https://docs.wagtail.org/en/stable/topics/images.html#svg-images)
10+
11+
### Changed
412

513
- Use consistent ID type for pages and page queries ([#350](https://github.com/torchbox/wagtail-grapple/pull/350)) @estyxx
6-
Note: if your query looked like `query($id: Int) { page(id: $id) { ... } }`, it must now be `query($id: ID) { page(id: $id) { ... } }`
14+
⚠️ Warning note: if your query looked like `query($id: Int) { page(id: $id) { ... } }`, it must now be `query($id: ID) { page(id: $id) { ... } }`
715
- Pass the `GraphQLResolveInfo` object to the StreamField callables ([#356](https://github.com/torchbox/wagtail-grapple/pull/)) @zerolab
816
This is passed as the `info` kwarg.
17+
- The image rendition query will now surface any errors when:
18+
- using filters not present in the `ALLOWED_IMAGE_FILTERS` Grapple setting,
19+
- there are no filters to apply (for example you are requesting an SVG rendition but supply raster image operations)
20+
- the source image is not present
21+
922

1023
## [0.20.0] - 2023-07-10
1124

docs/general-usage/graphql-types.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ the root query type like so:
136136
bgcolor: String
137137
jpegquality: Int
138138
webpquality: Int
139-
preserve_svg: Boolean
139+
preserveSvg: Boolean
140140
): ImageRenditionObjectType
141141
srcSet(
142142
sizes: [Int]

0 commit comments

Comments
 (0)