1.0.1 - 2023-08-19
- Disable pointer events on menu chevron to allow clicks (#202, #205)
- Improve menu accessibility by using buttons for menu items (#202, #207).
- Fix pattern name URL regex to account for Windows paths with backslash (#222, #223)
- Use the correct iframe width with resize buttons (#226, #225).
- Update the project’s test matrix for upcoming Django 4.2 support (#212,#220).
1.0.0 - 2022-06-10
- We now use type hints for the package’s public API (
register_context_modifier
andoverride_tag
) (#172, #189).
- We no longer support Django 2.2, as it has reached its end of life.
0.7.0 - 2022-01-25
- Add a way to customise rendering of a pattern with
is_pattern_library
context variable (#156, #167). - Support for Django 4.0 (#164).
- Tentative support for Django 4.1 (#185).
- Support for Python 3.10 (#163).
- Tentative support for Python 3.11 (#185).
- VS Code devcontainer for development (#178).
- Documented the need to set
X_FRAME_OPTIONS = "SAMEORIGIN"
to see Django debug responses in the iframe UI (#186). - New
/api/v1/render-pattern
API endpoint to render patterns via POST requests, with the pattern’s context and tag overrides as a JSON body (#104, #168).
- Change Poetry version to be
>=1.1.12,<2
in Docker development setup (preventsJSONDecodeError
issue under Python 3.10) (#178). - Move demo/test app pattern-library from
/pattern-library/
to/
(#178). - Allow
.yml
extension for YAML files (#161, #169). - Python files are now formatted by
black
(#187). - Fix potential Django 4.0 compatibility issue for components using non-string values in tag overrides (#166, #188).
- We no longer support Python 3.6, as it has reached its end of life (#163).
- Remove support for IE11 in pattern library UI (#151, #162).
0.6.0 - 2021-12-21
- Make
default_app_config
conditional to avoid deprecation warnings for Django versions >= 3.2 (#153, #160). - Define
AppConfig.default_auto_field
as required since Django 3.2 (#154). - Support PyYAML v6 (#158)
0.5.0 - 2021-06-04
Added support for 'context modifiers' - A way to modify template contexts with Python (#141, #147, #106).
This addresses the following limitations of the pattern library:
- #10 No way to specify objects that have attributes and support iteration
- #113 Django form fields not well supported
- #135 Competing tag/context config for image provides inconsistent result
View the documentation, as well as demos leveraging the new capability: forms (see forms and fields recipe), and pagination (see pagination recipe).
0.4.0 - 2021-05-20
- We now officially support Django 3.2, and tentatively Django 4.0 (#144)
- Load templates from template engines’
DIRS
as well as apps’templates
subdirectories (#145)
0.3.0 - 2020-11-02
We have a new documentation website! Check out torchbox.github.io/django-pattern-library.
- This package now supports Django 3.1, and has tentative support for Django 3.2
- We also now support Python 3.9
- Implement optional default for override_tag (#125)
- A new
render_patterns
command makes it possible to export the pattern library templates for automated tests or static hosting (#16, #17) - Permit variable template names in extends and include tags (#112)
- We no longer support Django 1.11, 2.0, 2.1
- The project no longer includes polyfills for all ES6 features, and only supports modern browsers.
- Pages and fragments are now handled correctly again (#119)
- PyPI package metadata now uses absolute URLs to GitHub (#120).
0.2.9 - 2020-07-29
- Atomic design no longer enforced and pattern templates can be from several locations, rather than a single location. These changes are currently undocumented, see the tests for examples.
- Templates that are not explicitly part of the pattern library can no longer be rendered by the pattern library
0.2.8 - 2020-03-13
- Moved to github and open sourced
- Support for Django 3.0
- Support for Python 3.8
- webpack-dev-server
- references to old name of 'Mikalab'
- Documentation links and improved documentation
- Accessibility issues with pattern library chrome
- JavaScript in IE11 (added polyfills)
- Pattern search (no longer case sensitive)
- Issue with xframe-options header in django 3
0.2.5 - 2019-11-01
- Switch to Poetry for dependency management
- Documentation tab for each pattern that will display a markdown file if it is stored along with the html and yaml files
- Extra yaml examples in the README
- Merge request template
- Improve documentation for developers
0.2.4 - 2019-06-11
- Compatibility with Django 2.2