Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: bump django-recaptcha from 2.0.6 to 4.0.0 (#27)
Bumps [django-recaptcha](https://github.com/torchbox/django-recaptcha) from 2.0.6 to 4.0.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/torchbox/django-recaptcha/releases">django-recaptcha's releases</a>.</em></p> <blockquote> <h2>4.0.0 - package namespace rename</h2> <h2>Package namespace renamed!</h2> <p>The package namespace <code>captcha</code> has been renamed to <code>django_recaptcha</code> to avoid conflicts with other captcha packages.</p> <p><a href="https://github.com/django-recaptcha/django-recaptcha/blob/62afff4c109cf9b918b4a91e7db5981ff4757842/CHANGELOG.md#400-2023-11-14">Please see the full CHANGELOG for all changes and upgrade considerations</a></p> <h2>What's Changed</h2> <ul> <li>.pre-commit-config.yaml: Remove duplicate checks by <a href="https://github.com/cclauss"><code>@cclauss</code></a> in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/279">django-recaptcha/django-recaptcha#279</a></li> <li>Fix typos discovered by codespell by <a href="https://github.com/cclauss"><code>@cclauss</code></a> in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/278">django-recaptcha/django-recaptcha#278</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/273">django-recaptcha/django-recaptcha#273</a></li> <li>moved recaptcha execute into event listener function on form submit by <a href="https://github.com/thbarrons"><code>@thbarrons</code></a> in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/296">django-recaptcha/django-recaptcha#296</a></li> <li>Add testing with Django 4.1 by <a href="https://github.com/matthiask"><code>@matthiask</code></a> in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/293">django-recaptcha/django-recaptcha#293</a></li> <li>Added example unittest for RECAPTCHA_TESTING by <a href="https://github.com/guettli"><code>@guettli</code></a> in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/289">django-recaptcha/django-recaptcha#289</a></li> <li>Update testing instructions by <a href="https://github.com/jnns"><code>@jnns</code></a> in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/300">django-recaptcha/django-recaptcha#300</a></li> <li>Add Indonesian (id) translations by <a href="https://github.com/kiraware"><code>@kiraware</code></a> in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/301">django-recaptcha/django-recaptcha#301</a></li> <li>Add Django 4.2 and Python 3.11 testing by <a href="https://github.com/Stormheg"><code>@Stormheg</code></a> in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/305">django-recaptcha/django-recaptcha#305</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/286">django-recaptcha/django-recaptcha#286</a></li> <li>Use CodeQL v2 action by <a href="https://github.com/Stormheg"><code>@Stormheg</code></a> in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/306">django-recaptcha/django-recaptcha#306</a></li> <li>Update trove classifiers by <a href="https://github.com/Stormheg"><code>@Stormheg</code></a> in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/307">django-recaptcha/django-recaptcha#307</a></li> <li>Feature Request: Add actions in recaptcha v3 widget by <a href="https://github.com/alexrobertson-muckrack"><code>@alexrobertson-muckrack</code></a> in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/304">django-recaptcha/django-recaptcha#304</a></li> <li>Documentation for V3 action parameter by <a href="https://github.com/alexrobertson-muckrack"><code>@alexrobertson-muckrack</code></a> in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/309">django-recaptcha/django-recaptcha#309</a></li> <li>Move class to widget by <a href="https://github.com/rgs258"><code>@rgs258</code></a> in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/275">django-recaptcha/django-recaptcha#275</a></li> <li>Fix <a href="https://redirect.github.com/torchbox/django-recaptcha/issues/280">#280</a>: Mark ReCaptchaV3 as a hidden field by <a href="https://github.com/matthiask"><code>@matthiask</code></a> in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/294">django-recaptcha/django-recaptcha#294</a></li> <li>V3 action Verification by <a href="https://github.com/alexrobertson-muckrack"><code>@alexrobertson-muckrack</code></a> in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/310">django-recaptcha/django-recaptcha#310</a></li> <li>Added Arabic translations by <a href="https://github.com/YDA93"><code>@YDA93</code></a> in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/313">django-recaptcha/django-recaptcha#313</a></li> <li>Add ukrainian translation by <a href="https://github.com/koutoftimer"><code>@koutoftimer</code></a> in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/315">django-recaptcha/django-recaptcha#315</a></li> <li>Fix invalid RST link by <a href="https://github.com/Stormheg"><code>@Stormheg</code></a> in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/311">django-recaptcha/django-recaptcha#311</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/308">django-recaptcha/django-recaptcha#308</a></li> <li>Mark wheel as not compatible with python2 by <a href="https://github.com/Stormheg"><code>@Stormheg</code></a> in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/272">django-recaptcha/django-recaptcha#272</a></li> <li>Rename package to <code>django_recaptcha</code> by <a href="https://github.com/Stormheg"><code>@Stormheg</code></a> in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/317">django-recaptcha/django-recaptcha#317</a></li> <li>Prepare v4 release by <a href="https://github.com/Stormheg"><code>@Stormheg</code></a> in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/312">django-recaptcha/django-recaptcha#312</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/cclauss"><code>@cclauss</code></a> made their first contribution in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/279">django-recaptcha/django-recaptcha#279</a></li> <li><a href="https://github.com/thbarrons"><code>@thbarrons</code></a> made their first contribution in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/296">django-recaptcha/django-recaptcha#296</a></li> <li><a href="https://github.com/matthiask"><code>@matthiask</code></a> made their first contribution in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/293">django-recaptcha/django-recaptcha#293</a></li> <li><a href="https://github.com/guettli"><code>@guettli</code></a> made their first contribution in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/289">django-recaptcha/django-recaptcha#289</a></li> <li><a href="https://github.com/jnns"><code>@jnns</code></a> made their first contribution in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/300">django-recaptcha/django-recaptcha#300</a></li> <li><a href="https://github.com/kiraware"><code>@kiraware</code></a> made their first contribution in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/301">django-recaptcha/django-recaptcha#301</a></li> <li><a href="https://github.com/alexrobertson-muckrack"><code>@alexrobertson-muckrack</code></a> made their first contribution in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/304">django-recaptcha/django-recaptcha#304</a></li> <li><a href="https://github.com/rgs258"><code>@rgs258</code></a> made their first contribution in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/275">django-recaptcha/django-recaptcha#275</a></li> <li><a href="https://github.com/YDA93"><code>@YDA93</code></a> made their first contribution in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/313">django-recaptcha/django-recaptcha#313</a></li> <li><a href="https://github.com/koutoftimer"><code>@koutoftimer</code></a> made their first contribution in <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/315">django-recaptcha/django-recaptcha#315</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/django-recaptcha/django-recaptcha/compare/3.0.0...4.0.0">https://github.com/django-recaptcha/django-recaptcha/compare/3.0.0...4.0.0</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/django-recaptcha/django-recaptcha/blob/main/CHANGELOG.md">django-recaptcha's changelog</a>.</em></p> <blockquote> <h2>4.0.0 (2023-11-14)</h2> <blockquote> <p>[!IMPORTANT] > <strong>BREAKING</strong>: package namespace renamed from <code>captcha</code> to <code>django_recaptcha</code>. See upgrade considerations section below for instructions (<a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/317">#317</a>)</p> </blockquote> <ul> <li>Removed: support for Django 4.0 and 2.2</li> <li>Removed: support for Python 3.7</li> <li>Added: support for Django 4.1 and 4.2</li> <li>Added: support for Python 3.11</li> <li>Added: support for the <code>action</code> parameter in the ReCaptchaV3 widget (<a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/304">#304</a>, <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/309">#309</a> and <a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/310">#310</a>)</li> <li>Added: Arabic translations (<a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/313">#313</a>)</li> <li>Added: Indonesian translations (<a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/301">#301</a>)</li> <li>Added: Ukrainian translations (<a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/315">#315</a>)</li> <li>Fixed: don't display a form field label when using the ReCaptchaV3 widget as it is invisible (<a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/294">#294</a>)</li> <li>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 (<a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/296">#296</a>)</li> <li>Fixed: avoid outputting duplicate <code>class</code> attribute in widget html when a custom <code>class</code> attribute is passed to the widget (<a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/275">#275</a>)</li> <li>Docs: update testing instructions (<a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/300">#300</a>)</li> <li>Docs: add example unittest for <code>RECAPTCHA_TESTING</code> (<a href="https://redirect.github.com/django-recaptcha/django-recaptcha/pull/289">#289</a>)</li> </ul> <h3>Upgrade considerations from v3 to v4</h3> <h4>Package namespace renamed</h4> <p>The package namespace has been renamed from <code>captcha</code> to <code>django_recaptcha</code> to avoid namespace conflicts with other captcha packages. This means that you will need to update your imports and <code>INSTALLED_APPS</code> setting.</p> <p><strong>Action required:</strong> update your imports like this:</p> <pre lang="diff"><code># 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 </code></pre> <p><strong>Action required:</strong> update your Django settings like this:</p> <pre lang="diff"><code>INSTALLED_APPS = [ # ... # Old - "captcha", # New + "django_recaptcha", # ... ] </code></pre> <h4>ReCaptchaV3 widget no longer supplies a default action to the ReCaptcha API</h4> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/django-recaptcha/django-recaptcha/commit/7d48eec4a4cf7f18a92e4452ed66997f30cebc93"><code>7d48eec</code></a> Add missing workflow_call CI trigger</li> <li><a href="https://github.com/django-recaptcha/django-recaptcha/commit/2cec24c52e7931c0a3305c709e231d229c0ef780"><code>2cec24c</code></a> Update publish workflow to use Trusted Publishing</li> <li><a href="https://github.com/django-recaptcha/django-recaptcha/commit/3a54c7548a0c046dc080d0c0384146b89904849a"><code>3a54c75</code></a> Fill in release date for v4.0.0</li> <li><a href="https://github.com/django-recaptcha/django-recaptcha/commit/e0cccd1ef758c82d93a35e04dfc93f0da492cf7d"><code>e0cccd1</code></a> Fix some really stupid typos</li> <li><a href="https://github.com/django-recaptcha/django-recaptcha/commit/57de001c3aca533ac088e57e811eac479f334685"><code>57de001</code></a> Add Storm Heg to maintainers</li> <li><a href="https://github.com/django-recaptcha/django-recaptcha/commit/a3f47f597d08d3bcdb66a8227522afbc59ed5f9a"><code>a3f47f5</code></a> Add v4 upgrade considerations to changelog</li> <li><a href="https://github.com/django-recaptcha/django-recaptcha/commit/081c832bd4ef2994648e2ca50661e5f53ec526eb"><code>081c832</code></a> Add changelog entries for v4.0.0</li> <li><a href="https://github.com/django-recaptcha/django-recaptcha/commit/8389f36a446685d5819d14b683c9aca81412e846"><code>8389f36</code></a> Update setup.py author</li> <li><a href="https://github.com/django-recaptcha/django-recaptcha/commit/804846019717903125280a48992c533ee187df45"><code>8048460</code></a> BREAKING: remove action=form default from ReCaptcha V3 widget</li> <li><a href="https://github.com/django-recaptcha/django-recaptcha/commit/f5ff0048f327bb143bc887c749e8b5a23b1b84a5"><code>f5ff004</code></a> Update setup.py long description</li> <li>Additional commits viewable in <a href="https://github.com/torchbox/django-recaptcha/compare/2.0.6...4.0.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=django-recaptcha&package-manager=pip&previous-version=2.0.6&new-version=4.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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) </details> ## Summary by Sourcery Bump django-recaptcha from version 2.0.6 to 4.0.0, introducing a package namespace change to 'django_recaptcha', adding support for newer Django and Python versions, and enhancing the ReCaptchaV3 widget with new features and bug fixes. Bug Fixes: - Fix issues with ReCaptcha V3 widget by marking it as a hidden field and executing validation on form submit instead of page load. Enhancements: - Rename package namespace from 'captcha' to 'django_recaptcha' to avoid conflicts with other captcha packages. - Add support for Django 4.1 and 4.2, and Python 3.11 while removing support for Django 4.0, 2.2, and Python 3.7. - Add support for the 'action' parameter in the ReCaptchaV3 widget. Documentation: - Update testing instructions and add example unittest for RECAPTCHA_TESTING.
- Loading branch information