Skip to content

Commit

Permalink
Bump version to 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zerolab committed Jan 30, 2022
1 parent b95f84d commit 167c3c7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
22 changes: 20 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.2.0] - 2022-01-30

This release adds a number of useful features such as a default client URL placeholder,
ability to redirect to the front-end URLs when viewing a page in the Wagtail admin, and
an option to redirect the preview to the client URL rather than use the default iframe embed mechanism.

It also moves to a single, namespaced settings dictionary - `WAGTAIL_HEADLESS_PREVIEW`:

```python
WAGTAIL_HEADLESS_PREVIEW = {
"CLIENT_URLS": {}, # previously HEADLESS_PREVIEW_CLIENTS_URLS
"LIVE_PREVIEW": False, # previously HEADLESS_PREVIEW_LIVE
"SERVE_BASE_URL": None, # new optional setting for HeadlessServeMixin / HeadlessMixin
"REDIRECT_ON_PREVIEW": False, # new optional setting to redirect the preview to the client preview URL
}
```

### Added

- 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
- 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
- Add [pre-commit](https://pre-commit.com/) support ([#21](https://github.com/torchbox/wagtail-headless-preview/pull/21)) - @zerolab
- Add `HeadlessMixin` and `HeadlessServeMixin` ([#22](https://github.com/torchbox/wagtail-headless-preview/pull/22)) - @zerolab
- 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
Expand Down Expand Up @@ -48,6 +65,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

Initial release

[unreleased]: https://github.com/wagtail/wagtail-localize/compare/v1.0.1...HEAD
[unreleased]: https://github.com/wagtail/wagtail-localize/compare/v0.2.0...HEAD
[0.2.0]: https://github.com/wagtail/wagtail-localize/compare/v0.2.0...v0.1.4
[0.1.4]: https://github.com/wagtail/wagtail-localize/compare/v0.1.4...v0.1.0
[0.1.0]: https://github.com/wagtail/wagtail-localize/compare/v0.1.0..v0.0.2
2 changes: 1 addition & 1 deletion src/wagtail_headless_preview/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VERSION = (0, 1, 4)
VERSION = (0, 2, 0)
__version__ = ".".join(map(str, VERSION))

0 comments on commit 167c3c7

Please sign in to comment.