Skip to content

Commit

Permalink
Release: 4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
beatonma committed Feb 9, 2024
1 parent 1b77747 commit 8510adf
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 27 deletions.
46 changes: 20 additions & 26 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,26 @@
# Changelog


## 4.1

> `migrate` required for new fields.
- Added `Webmention.has_been_read: bool` field.
- New context processor `mentions.context_processors.unread_webmentions`
adds `unread_webmentions` field to template context.
- Added admin actions for marking as read/unread.

- New `objects` manager for Webmention with some common filters.

- New settings for allowing or disabling webmentions to/from a set of domains:
- `WEBMENTIONS_DOMAINS_INCOMING_ALLOW: Iterable[str] = None`
- Mutually exclusive with `WEBMENTIONS_DOMAINS_INCOMING_DENY`.
- `WEBMENTIONS_DOMAINS_INCOMING_DENY: Iterable[str] = None`
- Mutually exclusive with `WEBMENTIONS_DOMAINS_INCOMING_ALLOW`.
- `WEBMENTIONS_DOMAINS_OUTGOING_ALLOW: Iterable[str] = None`
- Mutually exclusive with `WEBMENTIONS_DOMAINS_OUTGOING_DENY`.
- `WEBMENTIONS_DOMAINS_OUTGOING_DENY: Iterable[str] = None`
- Mutually exclusive with `WEBMENTIONS_DOMAINS_OUTGOING_ALLOW`.
- `WEBMENTIONS_DOMAINS_OUTGOING_OVERRIDE_TAG: str = None`
- A tag which can be applied to an HTML `<a>` element to invert the effect of `WEBMENTIONS_DOMAINS_OUTGOING_ALLOW` or `WEBMENTIONS_DOMAINS_OUTGOING_DENY` for that link specifically.
- May be provided as:
- a class `<a class="my-override-string">`.
- a data attribute `<a data-my-override-string>`.
- a custom attribute `<a my-override-string>`.
## 4.1 (2024-02-09)

> [!WARNING]
> `python manage.py migrate` required for new fields.
> [!NOTES]
> [Wiki](https://github.com/beatonma/django-wm/wiki/Release-4.1)
- Added `Webmention.has_been_read: bool` field.
- New context processor `mentions.context_processors.unread_webmentions` adds `unread_webmentions` field to template context, containing the queryset of unread Webmention objects.
- Added admin actions for marking as read/unread.

- New `objects` manager for Webmention with some common filters and actions.

- New [settings](https://github.com/beatonma/django-wm/wiki/Settings) for allowing or disabling webmentions to/from a set of domains:
- <a href="https://github.com/beatonma/django-wm/wiki/Settings#WEBMENTIONS_DOMAINS_INCOMING_ALLOW">`WEBMENTIONS_DOMAINS_INCOMING_ALLOW: Iterable[str] = None`</a>
- <a href="https://github.com/beatonma/django-wm/wiki/Settings#WEBMENTIONS_DOMAINS_INCOMING_DENY">`WEBMENTIONS_DOMAINS_INCOMING_DENY: Iterable[str] = None`</a>
- <a href="https://github.com/beatonma/django-wm/wiki/Settings#WEBMENTIONS_DOMAINS_OUTGOING_ALLOW">`WEBMENTIONS_DOMAINS_OUTGOING_ALLOW: Iterable[str] = None`</a>
- <a href="https://github.com/beatonma/django-wm/wiki/Settings#WEBMENTIONS_DOMAINS_OUTGOING_DENY">`WEBMENTIONS_DOMAINS_OUTGOING_DENY: Iterable[str] = None`</a>
- <a href="https://github.com/beatonma/django-wm/wiki/Settings#WEBMENTIONS_DOMAINS_OUTGOING_OVERRIDE">`WEBMENTIONS_DOMAINS_OUTGOING_OVERRIDE: str = None`</a>


## 4.0.4 (2024-02-02)
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@

### Upgrading

Please check the [upgrade guide](https://github.com/beatonma/django-wm/wiki/Upgrading) for any breaking changes before upgrading. See the [changelog](./CHANGELOG.md) for full details.
Please check the [changelog](./CHANGELOG.md) before upgrading.

Major versions introduce breaking changes which may require code changes in your application. Please check the [upgrade guide](https://github.com/beatonma/django-wm/wiki/Upgrading) for full instructions on how to handle these.

Minor versions may require a database migration for new features - this will be noted in the [changelog](./CHANGELOG.md) and the [wiki release page](https://github.com/beatonma/django-wm/wiki/Releases) when necessary.


### Getting started
Expand Down

0 comments on commit 8510adf

Please sign in to comment.