Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update django-qr-code to 4.1.0 #457

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pyup-bot
Copy link
Collaborator

@pyup-bot pyup-bot commented Jun 1, 2024

This PR updates django-qr-code from 2.1.0 to 4.1.0.

Changelog

4.1.0

* Upgrade dependencies and drop support for Python < 3.10 and Pydantic <2.7.
* Add the capability to generate embedded Base64 SVG images as data URIs through template tags (in addition to the API capability introduced in version 4.0.1).
* Add support for alternative text customization (both template tags and API).
* Add support for CSS classes injection (both template tags and API).
* Reorganize and improve documentation.

4.0.1

* Upgrade dependencies, and drop support for Pydantic <2.5, Django<4.2, Python 3.8
* Remove dependency to pytz.
* Add support for Python 3.12.
* Add support for Django 5.0.
* Introduce support for floating point size QR code modules.
* Introduce embedded Base64 SVG image as data URI.
* Behavior change: white background is no longer interpreted as transparent for SVG output (41). If you want to avoid path fill of SVG to reduce the size of the SVG image, you have to explicitly set `light_color` to `None` in `QRCodeOptions`.

3.1.2

* Fix bug in `WifiConfig` data class (43).
* Fix typo in documentation (45)
* Add support for Django 4.1 and Django 4.2.
* Add support for Python 3.11.
* Improved documentation.

3.1.1

* Fix regression in demo site due to improper runtime type validation on `QRCodeOptions`.
* Minor improvements to documentation.
* Modernize code syntax for Python >= 3.7.

3.1.0

* Add support for more properties for vCard: cellphone (TEL;TYPE=CELL), homephone (TEL;TYPE=HOME), workphone (TEL;TYPE=WORK)
* Add support for simple iCalendar event (VEVENT). (38)
* Add support for Django 4.0.
* BREAKING CHANGES:
* Introduce type validation at runtime with pydantic. Existing code might need some type-related fixes.
* Drop support for Django 2.2.

3.0.0

* Add support for European Payments Council Quick Response Code (EPC QR Code) version 002.
* Add support for vCard v3 QR code.
* Revamp support for MeCARD QR code to provide a cleaner API (old API remains available for compatibility).
* Introduce `qr_from_data` and `qr_url_from_data` to allow optimized encoding of alphanumeric, numeric, and byte data (adopt appropriate encoding mode depending on data content).
* Introduce support for `boost_error` flag.
* Introduce support for `encoding` parameter.
* Several breaking changes in API and generated QR codes:
* `text` parameters renamed to `data`;
* class methods `make_qr_text` renamed to `make_qr_data`;
* uses UTF-8 encoding by default for application and text QR codes (you must set the new `encoding` option or use the new `qr_from_data` and `qr_url_from_data` template tags to emulate old behavior);
* encoded geolocations always contain a decimal separator.
* Improve API documentation.
* Add support for Python 3.10
* Drop support for Python 3.6.
* Drop support for Django 3.1.

2.3.0

* Add support for `ECI mode` to control bytes encoding.
* Fix handling of `micro` QR code option when using URLs to serve image via `{% qr_url_from_text %}`.
* Fix handling of `cache_enabled` option when using URLs to serve image via `{% qr_url_from_text %}`.
* Fix handling of `url_signature_enabled` option when using URLs to serve image via `{% qr_url_from_text %}`.

2.2.0

* Change encoding from URL-safe Base64 to standard Base64 for `text` query argument (used for serving QR code images).
* Fix 31 by passing the border parameter for segno.QRCode.save.
* Ensure compatibility with Django 3.2.
* Drop support for Django 3.0.
Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant