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 #24

Merged
merged 3 commits into from
Feb 12, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 12, 2024

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

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 Feb 12, 2024
@dependabot dependabot bot force-pushed the dependabot/pip/django-recaptcha-4.0.0 branch 2 times, most recently from d72df73 to fa233e8 Compare February 12, 2024 19:51
dependabot bot and others added 3 commits February 12, 2024 15:54
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/django-recaptcha/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]>
@jonathangreen jonathangreen force-pushed the dependabot/pip/django-recaptcha-4.0.0 branch from fa233e8 to f42376f Compare February 12, 2024 19:55
Copy link

codecov bot commented Feb 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (72bedc3) 88.31% compared to head (f42376f) 88.31%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #24   +/-   ##
=======================================
  Coverage   88.31%   88.31%           
=======================================
  Files          37       37           
  Lines        2267     2267           
  Branches      302      302           
=======================================
  Hits         2002     2002           
  Misses        213      213           
  Partials       52       52           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@jonathangreen jonathangreen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dependabot squash and merge

@dependabot dependabot bot merged commit bcc3a9f into main Feb 12, 2024
8 checks passed
@dependabot dependabot bot deleted the dependabot/pip/django-recaptcha-4.0.0 branch February 12, 2024 19:57
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.

1 participant