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

Bump django-recaptcha from 4.0.0 to 4.1.0 in /requirements #2007

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

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 31, 2025

Bumps django-recaptcha from 4.0.0 to 4.1.0.

Release notes

Sourced from django-recaptcha's releases.

4.1.0 - incremental improvements

Please see the full CHANGELOG for all changes and upgrade considerations


What's Changed

New Contributors

Full Changelog: django-recaptcha/django-recaptcha@4.0.0...4.1.0

Changelog

Sourced from django-recaptcha's changelog.

4.1.0 (2025-03-28)

  • The GitHub project has been transferred to django-recaptcha/django-recaptcha, to facilitate maintenance by the community. See the maintainers discussion in GitHub.
  • Added: official support for Django 5.0, 5.1, and 5.2 (#363)
  • Added: official support for Python 3.12 and 3.13 (#363)
  • Added: Persian translations (#326)
  • Removed: no longer officially supports Django 3.2 and 4.1 (#363)
  • Removed: no longer officially supports Python 3.7 and 3.8 (#363)
  • Removed: the undocumented django_recaptcha.client.RECAPTCHA_SUPPORTED_LANGUAGES constant was removed as it serves no purpose (#342)
  • Changed: move from setup.py to pyproject.toml to align with modern Python packaging standards (#360)
  • Fixed: translations were not bundled with releases (f67b7d1)
  • Fixed: Dutch translations out of date (5c98a27)
  • Fixed: removed unnecessary type="text/javascript" from all script tags (#324)
  • Fixed: an issue where ReCaptchaV2Invisible and ReCaptchaV2Checkbox widgets would fail to load when a custom class attribute was passed to the widget (#365)
  • Fixed: ReCaptchaV2Invisible and ReCaptchaV2Checkbox widgets no longer render unnecessary labels, improving accessibility (#328)
  • Fixed: ReCaptchaV2Invisible and ReCaptchaV2Checkbox widgets no longer render a required attribute on the container div because this is not a valid attribute on this element (#328)
  • Docs: Correct parameter name in README (#361)
  • Deprecated: passing required_score as part of RecaptchaV3 widget attrs is deprecated to avoid rendering required_score as a HTML attribute (#330)
  • Maintenance: made tox Django version specifiers more specific (#339)

Upgrade considerations

Passing required_score as part of RecaptchaV3 widget attrs is deprecated

Passing required_score as part of RecaptchaV3 widget attrs is deprecated and will raise a deprecation warning. You should pass required_score as a keyword argument to the RecaptchaV3 widget instead. Support for passing required_score as part of RecaptchaV3 widget attrs will be removed in the next major release.

Example of how you should update your code:

# Old
- ReCaptchaV3(attrs={"required_score": 0.5})
# New
+ ReCaptchaV3(required_score=0.5)

This change was made to avoid rendering required_score as a HTML attribute. This is important because required_score is not a valid HTML attribute and is often flagged as such by HTML validators.

Recaptcha V2 widgets no longer renders a label

Previously, the RecaptchaV2Invisible and RecaptchaV2Checkbox widgets displayed a label when rendered. For the RecaptchaV2Checkbox widget, this label is redundant and an accessibility issue because the reCAPTCHA widget already provides its own label. For the RecaptchaV2Invisible widget, the label serves no purpose as the widget is invisible.

If you previously removed the label yourself by passing an empty string to the label argument of the RecaptchaField, you can now remove this argument.

# Old
- ReCaptchaField(label="", widget=ReCaptchaV2Checkbox())
# New
+ ReCaptchaField(widget=ReCaptchaV2Checkbox())
Commits
  • 3872987 Changelog note for #360
  • ba1eb63 Update changelog notes
  • 5c98a27 Fix Dutch translation
  • f67b7d1 Fix inclusion of translations in build sdist and wheel
  • 2964c6a Recompile translations
  • bc3d979 Fill in release date for v4.1.0
  • 0e731a0 fixup! Update outdated GitHub Actions
  • b3ace62 Update outdated GitHub Actions
  • b34919f Drop Python 3.8, correct changelog note
  • 910a65c Changelog: explicitly call out V2 widgets not rendering labels
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Mar 31, 2025
@dependabot dependabot bot force-pushed the dependabot/pip/requirements/django-recaptcha-4.1.0 branch from 8c90dad to 13c7b33 Compare April 2, 2025 19:52
Bumps [django-recaptcha](https://github.com/django-recaptcha/django-recaptcha) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/django-recaptcha/django-recaptcha/releases)
- [Changelog](https://github.com/django-recaptcha/django-recaptcha/blob/main/CHANGELOG.md)
- [Commits](django-recaptcha/django-recaptcha@4.0.0...4.1.0)

---
updated-dependencies:
- dependency-name: django-recaptcha
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/pip/requirements/django-recaptcha-4.1.0 branch from 13c7b33 to 7d8adcb Compare April 3, 2025 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants