| 1 | # Changelog |
| 2 | All notable changes to this project will be documented in this file. |
| 3 | |
| 4 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
| 5 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
| 6 | |
| 7 | ## [0.11.0](https://github.com/fabiocaccamo/django-colorfield/releases/tag/0.11.0) - 2023-12-05 |
| 8 | - Add `Python 3.12` support. |
| 9 | - Add `Django 5.0` support. |
| 10 | - Speed-up test workflow. |
| 11 | - Bump requirements. |
| 12 | - Bump `pre-commit` hooks. |
| 13 | |
| 14 | ## [0.10.1](https://github.com/fabiocaccamo/django-colorfield/releases/tag/0.10.1) - 2023-09-05 |
| 15 | - Fix crash when using `image_field` option with `RGB`/`RGBA` formats. #153 (by [@browniebroke](https://github.com/browniebroke) in #154) |
| 16 | - Fix field `max_length` (increased from `18` to `25`). |
| 17 | |
| 18 | ## [0.10.0](https://github.com/fabiocaccamo/django-colorfield/releases/tag/0.10.0) - 2023-09-04 |
| 19 | - Add support for `RGB` and `RGBA` formats. (by [@browniebroke](https://github.com/browniebroke) in #151) |
| 20 | - Fix typos in code snippets from `README`. (by [@browniebroke](https://github.com/browniebroke) in #152) |
| 21 | - Fix warnings in browser console when using `ColorWidget` without specifying format. (by [@fallen](https://github.com/fallen) in #145) |
| 22 | - Bump requirements. |
| 23 | |
| 24 | ## [0.9.0](https://github.com/fabiocaccamo/django-colorfield/releases/tag/0.9.0) - 2023-06-13 |
| 25 | - Add `Django 4.2` support. |
| 26 | - Drop `Django 2.2` support. |
| 27 | - Add `pyupgrade` and `django-upgrade` to `pre-commit` hooks. |
| 28 | - Upgrade syntax for `Python >= 3.8`. |
| 29 | - Set max line length to `88`. |
| 30 | - Switch from `setup.py` to `pyproject.toml`. |
| 31 | - Replace `flake8` with `Ruff`. |
| 32 | - Add locales (`en` and `it`). |
| 33 | - Add `metadata` module. |
| 34 | - Set max line length to `88`. |
| 35 | - Run `pre-commit` also with `tox`. |
| 36 | - Bump requirements. |
| 37 | - Pin test requirements. |
| 38 | - Rename default branch from `master` to `main`. |
| 39 | |
| 40 | ## [0.8.0](https://github.com/fabiocaccamo/django-colorfield/releases/tag/0.8.0) - 2022-12-02 |
| 41 | - Drop `Python < 3.8` and `Django < 2.2` support. |
| 42 | |
| 43 | ## [0.7.3](https://github.com/fabiocaccamo/django-colorfield/releases/tag/0.7.3) - 2022-12-02 |
| 44 | - Handle possible corrupted image when opening image. #98 |
| 45 | |
| 46 | ## [0.7.2](https://github.com/fabiocaccamo/django-colorfield/releases/tag/0.7.2) - 2022-07-19 |
| 47 | - Fixed options not working when not using `palette` (choices/samples). #80 (by [@jan-szejko-steelseries](https://github.com/jan-szejko-steelseries) in #81) |
| 48 | |
| 49 | ## [0.7.1](https://github.com/fabiocaccamo/django-colorfield/releases/tag/0.7.1) - 2022-06-08 |
| 50 | - Fixed `ColorField` widget classes. #43 #78 (thanks to [@N1K1TAS95](https://github.com/N1K1TAS95)) |
| 51 | |
| 52 | ## [0.7.0](https://github.com/fabiocaccamo/django-colorfield/releases/tag/0.7.0) - 2022-05-13 |
| 53 | - Added `ColorField` serializer. #77 (thanks to [@hugofer93](https://github.com/hugofer93)) |
| 54 | |
| 55 | ## [0.6.3](https://github.com/fabiocaccamo/django-colorfield/releases/tag/0.6.3) - 2022-01-03 |
| 56 | - Fixed django < 2.0 compatibility. |
| 57 | |
| 58 | ## [0.6.2](https://github.com/fabiocaccamo/django-colorfield/releases/tag/0.6.2) - 2022-01-03 |
| 59 | - Fixed possible memory leak. |
| 60 | |
| 61 | ## [0.6.1](https://github.com/fabiocaccamo/django-colorfield/releases/tag/0.6.1) - 2022-01-03 |
| 62 | - Fixed `ValueError: seek of closed file`. #75 |
| 63 | |
| 64 | ## [0.6.0](https://github.com/fabiocaccamo/django-colorfield/releases/tag/0.6.0) - 2021-12-22 |
| 65 | - Added `image_field` option. |
| 66 | - Added `python 3.10` / `django 4.0` support. |
| 67 | - Added more tests and increased coverage. |
| 68 | - Fixed tests warnings. |
| 69 | - Replaced Travis CI with GitHub actions workflow. |
| 70 | |
| 71 | ## [0.5.0](https://github.com/fabiocaccamo/django-colorfield/releases/tag/0.5.0) - 2021-12-06 |
| 72 | - Added `samples` option support. |
| 73 | |
| 74 | ## [0.4.5](https://github.com/fabiocaccamo/django-colorfield/releases/tag/0.4.5) - 2021-10-12 |
| 75 | - Fixed widget backward-compatibility with older django versions. |
| 76 | |
| 77 | ## [0.4.4](https://github.com/fabiocaccamo/django-colorfield/releases/tag/0.4.4) - 2021-10-08 |
| 78 | - Fixed widget backward-compatibility with older django versions. |
| 79 | |
| 80 | ## [0.4.3](https://github.com/fabiocaccamo/django-colorfield/releases/tag/0.4.3) - 2021-09-16 |
| 81 | - Fixed subclasses of `forms.Widget` must provide a `render()` method. #70 |
| 82 | |
| 83 | ## [0.4.2](https://github.com/fabiocaccamo/django-colorfield/releases/tag/0.4.2) - 2021-07-12 |
| 84 | - Fixed disable colorfield in `ModelForm` (thanks to [@rcatajar](https://github.com/rcatajar)). #67 #69 |
| 85 | |
| 86 | ## [0.4.1](https://github.com/fabiocaccamo/django-colorfield/releases/tag/0.4.1) - 2021-01-19 |
| 87 | - Fixed 500 error caused by palette `choices`. #65 |
| 88 | |
| 89 | ## [0.4.0](https://github.com/fabiocaccamo/django-colorfield/releases/tag/0.4.0) - 2021-01-14 |
| 90 | - Added `hex` (default) and `hexa` color format support. #58 #59 |
| 91 | - Added palette support using field `choices`. #19 |
| 92 | - Updated `jscolor` library version to `2.4.5`. |
| 93 | |
| 94 | ## [0.3.2](https://github.com/fabiocaccamo/django-colorfield/releases/tag/0.3.2) - 2020-07-07 |
| 95 | - Used `load` event instead of `window.onload` callback. |
| 96 | |
| 97 | ## [0.3.1](https://github.com/fabiocaccamo/django-colorfield/releases/tag/0.3.1) - 2020-06-17 |
| 98 | - Updated jscolor to 2.1.1 version. #57 |
| 99 | - Fixed self invoking anonymous function expression. |
| 100 | |
| 101 | ## [0.3.0](https://github.com/fabiocaccamo/django-colorfield/releases/tag/0.3.0) - 2020-04-07 |
| 102 | - Fixed `default`, `blank` and `null` attrs support. #53 #54 |
| 103 | - Fixed `jscolor` not working on inlines added dynamically (only when `extra=0`) |
| 104 | |
| 105 | ## [0.2.2](https://github.com/fabiocaccamo/django-colorfield/releases/tag/0.2.2) - 2020-04-02 |
| 106 | - Fixed colopicker not working on inlines added dynamically (only when `jquery` is loaded by the browser after `colorfield`). #52 |
| 107 | |
| 108 | ## [0.2.1](https://github.com/fabiocaccamo/django-colorfield/releases/tag/0.2.1) - 2020-02-21 |
| 109 | - Fixed colopicker not working on inlines added dynamically. |
| 110 | - Fixed failed lookup for key [class]. #7 |
| 111 | |
| 112 | ## [0.2.0](https://github.com/fabiocaccamo/django-colorfield/releases/tag/0.2.0) - 2020-02-17 |
| 113 | - Fixed whole inline model required. #7 |
| 114 | - Fixed `README.md` missing in package. #46 |
| 115 | - Refactored `ColorField` and `ColorWidget`. #39, #43 |
| 116 | - Updated `jscolor` version to `2.0.5`. |
| 117 | - Bumped min `django` version to `1.7`. |
| 118 | - Added test suite *(not tests)* with `tox` and `travis`. |
| 119 | |
| 120 | ## 0.1.16 |
| 121 | - Remove warnings about `ugettext_lazy` usage. |
| 122 | |
| 123 | ## 0.1.13 |
| 124 | - Use not minified jscolor when `DEBUG=true` |
| 125 | - Fix rendering when `value is None` |
| 126 | - Use `{required: false}` js color option when the form field is not required. This forces to stop using the `{hash: true}` option for jscolor. To make this change retrocompatible, anchor is appended at the `Widget` level. |