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 3.0.0 to 4.0.0 #1445

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

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 17, 2023

Bumps django-recaptcha from 3.0.0 to 4.0.0.

Release notes

Sourced from django-recaptcha's releases.

4.0.0 - package namespace rename

Package namespace renamed!

The package namespace captcha has been renamed to django_recaptcha to avoid conflicts with other captcha packages.

Please see the full CHANGELOG for all changes and upgrade considerations

What's Changed

New Contributors

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

Changelog

Sourced from django-recaptcha's changelog.

4.0.0 (2023-11-14)

[!IMPORTANT] BREAKING: package namespace renamed from captcha to django_recaptcha. See upgrade considerations section below for instructions (#317)

  • Removed: support for Django 4.0 and 2.2
  • Removed: support for Python 3.7
  • Added: support for Django 4.1 and 4.2
  • Added: support for Python 3.11
  • Added: support for the action parameter in the ReCaptchaV3 widget (#304, #309 and #310)
  • Added: Arabic translations (#313)
  • Added: Indonesian translations (#301)
  • Added: Ukrainian translations (#315)
  • Fixed: don't display a form field label when using the ReCaptchaV3 widget as it is invisible (#294)
  • Fixed: execute ReCaptcha V3 validation on form submit instead of on page load to avoid captcha errors if the form takes more than 2 minutes to complete (#296)
  • Fixed: avoid outputting duplicate class attribute in widget html when a custom class attribute is passed to the widget (#275)
  • Docs: update testing instructions (#300)
  • Docs: add example unittest for RECAPTCHA_TESTING (#289)

Upgrade considerations from v3 to v4

Package namespace renamed

The package namespace has been renamed from captcha to django_recaptcha to avoid namespace conflicts with other captcha packages. This means that you will need to update your imports and INSTALLED_APPS setting.

Action required: update your imports like this:

# Old
-from captcha.fields import ReCaptchaField
-from captcha.widgets import ReCaptchaV2Checkbox, ReCaptchaV2Invisible, ReCaptchaV3
# New
+from django_recaptcha.fields import ReCaptchaField
+from django_recaptcha.widgets import ReCaptchaV2Checkbox, ReCaptchaV2Invisible, ReCaptchaV3

Action required: update your Django settings like this:

INSTALLED_APPS = [
    # ...
    # Old
-    "captcha",
    # New
+    "django_recaptcha",
    # ...
]

ReCaptchaV3 widget no longer supplies a default action to the ReCaptcha API

... (truncated)

Commits
  • 7d48eec Add missing workflow_call CI trigger
  • 2cec24c Update publish workflow to use Trusted Publishing
  • 3a54c75 Fill in release date for v4.0.0
  • e0cccd1 Fix some really stupid typos
  • 57de001 Add Storm Heg to maintainers
  • a3f47f5 Add v4 upgrade considerations to changelog
  • 081c832 Add changelog entries for v4.0.0
  • 8389f36 Update setup.py author
  • 8048460 BREAKING: remove action=form default from ReCaptcha V3 widget
  • f5ff004 Update setup.py long description
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR 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)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [django-recaptcha](https://github.com/torchbox/django-recaptcha) from 3.0.0 to 4.0.0.
- [Release notes](https://github.com/torchbox/django-recaptcha/releases)
- [Changelog](https://github.com/torchbox/django-recaptcha/blob/main/CHANGELOG.md)
- [Commits](django-recaptcha/django-recaptcha@3.0.0...4.0.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Nov 17, 2023
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