Skip to content

Commit 167c3c7

Browse files
committed
Bump version to 0.2.0
1 parent b95f84d commit 167c3c7

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

CHANGELOG.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.2.0] - 2022-01-30
11+
12+
This release adds a number of useful features such as a default client URL placeholder,
13+
ability to redirect to the front-end URLs when viewing a page in the Wagtail admin, and
14+
an option to redirect the preview to the client URL rather than use the default iframe embed mechanism.
15+
16+
It also moves to a single, namespaced settings dictionary - `WAGTAIL_HEADLESS_PREVIEW`:
17+
18+
```python
19+
WAGTAIL_HEADLESS_PREVIEW = {
20+
"CLIENT_URLS": {}, # previously HEADLESS_PREVIEW_CLIENTS_URLS
21+
"LIVE_PREVIEW": False, # previously HEADLESS_PREVIEW_LIVE
22+
"SERVE_BASE_URL": None, # new optional setting for HeadlessServeMixin / HeadlessMixin
23+
"REDIRECT_ON_PREVIEW": False, # new optional setting to redirect the preview to the client preview URL
24+
}
25+
```
26+
1027
### Added
1128

12-
- Add support for a `{SITE_ROOT_URL}` placeholder in "default" preview client url ([#20](https://github.com/torchbox/wagtail-headless-preview/pull/20)) - Thanks @jaap3
29+
- Add support for a `{SITE_ROOT_URL}` placeholder in "default" preview client URL ([#20](https://github.com/torchbox/wagtail-headless-preview/pull/20)) - Thanks @jaap3
1330
- Add [pre-commit](https://pre-commit.com/) support ([#21](https://github.com/torchbox/wagtail-headless-preview/pull/21)) - @zerolab
1431
- Add `HeadlessMixin` and `HeadlessServeMixin` ([#22](https://github.com/torchbox/wagtail-headless-preview/pull/22)) - @zerolab
1532
- Add setting to redirect to the client preview URL ([#23](https://github.com/torchbox/wagtail-headless-preview/pull/23)) - @zerolab based on real world code from @jaap3
@@ -48,6 +65,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4865

4966
Initial release
5067

51-
[unreleased]: https://github.com/wagtail/wagtail-localize/compare/v1.0.1...HEAD
68+
[unreleased]: https://github.com/wagtail/wagtail-localize/compare/v0.2.0...HEAD
69+
[0.2.0]: https://github.com/wagtail/wagtail-localize/compare/v0.2.0...v0.1.4
5270
[0.1.4]: https://github.com/wagtail/wagtail-localize/compare/v0.1.4...v0.1.0
5371
[0.1.0]: https://github.com/wagtail/wagtail-localize/compare/v0.1.0..v0.0.2
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
VERSION = (0, 1, 4)
1+
VERSION = (0, 2, 0)
22
__version__ = ".".join(map(str, VERSION))

0 commit comments

Comments
 (0)