Releases: DarkGhostHunter/Captchavel
Final release, transition to new package
Package superseeded by Laragear/ReCaptcha
The new version is very similar to Captchavel, plus has some great additions and performance optimizations.
Minor enhancement
What's Changed
- Adds ability to use default auth guard by @DarkGhostHunter in #50
Also, updated the README.md with minor code examples.
Full Changelog: v7.0.1...v7.0.2
Minor fix
What's Changed
- Fixes null/empty reCAPTCHA tokens by @DarkGhostHunter in #48
Full Changelog: v7.0.0...v7.0.1
Version 7.0
Remembering users
This new releases comes with a breaking change for adding a "remember": a user can avoid being challenged with a reCAPTCHA again if already done it on a window of time (default 10 minutes).
The breaking change is on the V2 middleware: the input parameter moved from second to third place. In second place now is the remember parameter.
What's New
- Allows to remember challenges on session by the given minutes (disabled by default)
- Remember methods for the middleware helper.
- The
@challenged
and@unlesschallenged
Blade if directives.
What's Changed
- V2 Middleware second parameter has been moved to third place.
- V2 Middleware second parameter now sets the remember mechanic.
ReCaptcha
middleware helper is now the preferred way to declare the middleware.
Version 6 goes brrrr
Changed
- Score Challenges are resolved async, making them fast.
- Validation errors are always for the input name (
g-recaptcha-response
by default). - V3 Responses are faked when Captchavel is disabled, or enabled and faking.
Added
- V2 middleware support bypassing checks on authentication.
- V3 middleware scores 1.0 on authentication.
- Middleware helper builder
- Translation lines for validation errors.
- Support for PHP 8.1.
Removed
- Support for PHP 7.4 or below.
- Support for Laravel 7.x or below.
Laravel Octane compatible
This new version is a minor rewrite of Captchavel.
If you're upgrading, check this release changelog. Since a breaking change was Laravel Octane compatibility, work has been done to also upgrade some parts of this package.
What's changed?
- Middlewares name. There is
recaptcha
for v2, andrecaptcha.score
for score-driven challenges. - Resolution helpers
isResolved()
andisNotResolved()
have been moved to theReCaptchaResponse
object. - Config for credentials has been simplified for each reCAPTCHA service name.
What's added?
- Nothing.
What's removed?
BaseCaptchavelMiddleware
, which the middlewares were based upon.ReCaptchaResponseReceived
event. Nobody used, not even me.- Faking V2 responses on testing environment has been disabled. You need to explicitly disable
Captchavel
.
What's fixed?
- Laravel Octane compatibility, mainly due to
Captchavel
being a "loose" singleton.
Added Laravel Octane incompatibility
Because how this package works, Laravel Octane is incompatible with this package. To make it so, it will introduce breaking challenges.
Laravel 8.0 & PHP 8.0 support
This is just a compatibility release.
Due to lack of funding, only latest versions will be supported, until the situation improves.
Major fixes
This is a bugfix release.
- Added Macros. I just literally forgot to add them.
- Fixed threshold calculation. Now it will detect correctly when a score-driven request (v3) was made by a human or robot.
Version 3.0
This new version is a total rewrite of the Captchavel packages. It has removed any frontend script and now allows your app to receive reCAPTCHA v2 challenges or v3 response scores.
About the frontend, I will leave it to the developer. There is no single script that can handle every reCAPTCHA scenario, specially on SPA. You should implement it yourself, and it's said it's quite easy.
What's changed?
- Middlewares name. There are
recaptcha.v2
andrecaptcha.v3
middlewares. - You can fake responses using
is_robot
.
What's added?
- Fake responses for unit testing and local development using the facade.
- Default testing reCAPTCHA v2 keys for local development.
captchavel()
helper to output reCAPTCHA Site Key (needed for your frontend reCAPTCHA script).ReCaptchaResponseReceived
event, firing on success or failure.
What's removed?
- All frontend scripts.
- Support for Laravel 6.
- Google Official SDK. It now uses the underlying Laravel HTTP Client.
What's fixed?
- My mental health.