Skip to content

Commit

Permalink
Bump version to 0.56.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamghill committed Oct 2, 2023
1 parent c32f5c3 commit a12cd02
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 25 deletions.
2 changes: 1 addition & 1 deletion DEVELOPING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@

1. Update changelog.md
1. Update package.json
1. Run all build processes: `poe build`
1. `poetry version major|minor|patch`
1. Run all build processes: `poe build`
1. Commit/tag/push version bump
1. `poe publish`
1. Make sure test package can be installed as expected (https://test.pypi.org/project/django-unicorn/)
Expand Down
4 changes: 2 additions & 2 deletions django_unicorn/static/unicorn/js/unicorn.min.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions docs/source/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 0.56.0

- Add support for using both Alpine.js and `Unicorn` together in a component ([#597](https://github.com/adamghill/django-unicorn/pull/597)) by [imankulov](https://github.com/imankulov).
- Do not send a 304 if the child has a parent. ([#595](https://github.com/adamghill/django-unicorn/pull/595)).
- Prevent sending the child DOM if there is a parent to reduce network payload size.
- More verbose error message when a component can not be loaded ((#453)[https://github.com/adamghill/django-unicorn/pull/453] by [nerdoc](https://github.com/nerdoc)).

## 0.55.0

- Support `List`/`list` type annotations for component actions and fields ([#582](https://github.com/adamghill/django-unicorn/pull/582)).
Expand Down
19 changes: 2 additions & 17 deletions docs/source/custom-morphers.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,11 @@ The default morpher used in Unicorn is [`morphdom`](https://github.com/patrick-s

`morphdom` is the default morpher so no extra settings or installation is required to use it.

### Example settings

```python
# settings.py

UNICORN = {
...
"MORPHER": {
"NAME": "morphdom",
"RELOAD_SCRIPT_ELEMENTS": True,
}
...
}
```

## `Alpine`

Components which use both `Unicorn` and `Alpine.js` should use the `Alpine.js` morpher to prevent losing state when it gets re-rendered.

### Example settings
## Django Settings

```python
# settings.py
Expand All @@ -42,7 +27,7 @@ UNICORN = {
```

```{note}
`RELOAD_SCRIPT_ELEMENTS` is not currently supported for the `Alpine.js` morpher.
`MORPHER.RELOAD_SCRIPT_ELEMENTS` is not currently supported for the `Alpine.js` morpher.
```

### JavaScript Installation
Expand Down
3 changes: 3 additions & 0 deletions example/project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,11 @@
},
"CACHE_ALIAS": "default",
"MORPHER": {
# "NAME": "alpine",
"NAME": "morphdom",
"RELOAD_SCRIPT_ELEMENTS": True,
},
"MINIFIED": False,
}


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.55.0",
"version": "0.56.0",
"name": "django-unicorn",
"scripts": {
"build": "npx rollup -c",
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "django-unicorn"
version = "0.55.0"
version = "0.56.0"
description = "A magical full-stack framework for Django."
authors = ["Adam Hill <[email protected]>"]
license = "MIT"
Expand Down Expand Up @@ -151,11 +151,11 @@ tc = { cmd = "pytest --cov=django_unicorn", help = "Run tests with coverage" }
cr = { cmd = "coverage report", help = "Show coverage report" }
my = { cmd = "mypy .", help = "Run mypy" }
b = { cmd = "black . --check --quiet --extend-exclude migrations", help = "Run black" }
i = { cmd = "isort . --check --quiet", help = "Run isort" }
tm = ["b", "i", "tc", "my"]
rf = { cmd = "ruff .", help = "Run ruff" }
tm = ["b", "rf", "tc", "my"]
sa = { cmd = "sphinx-autobuild -W docs/source docs/build", help = "Sphinx autobuild" }
sb = { cmd = "sphinx-build -W docs/source docs/build", help = "Build documentation" }
build = ["b", "i", "tc", "tj", "jb", "sb"]
build = ["b", "rf", "tc", "tj", "jb", "sb"]
publish = { shell = "poetry publish --build -r test && poetry publish" }

[build-system]
Expand Down

0 comments on commit a12cd02

Please sign in to comment.