# Changelog (laravel-go-captcha)

> What changed in each release of laravel-go-captcha: additions, changes and fixes.

- Package: laravel-go-captcha (Laravel for Go, alpha), go modules: `github.com/bowerbird-si/laravel-go-captcha`
- Maintenance: active; Latest release: 0.1.0 (2026-12-04); Framework: go.laravel.com v0.2.0 or later; Go: Go 1.27 or later; Licence: MIT
- Links: [Repository](https://github.com/bowerbird-si/laravel-go-captcha), [pkg.go.dev](https://pkg.go.dev/github.com/bowerbird-si/laravel-go-captcha@v0.1.0), [Changelog](https://oss.bowerbird.si/go-captcha/docs/changelog/), [Contributing](https://github.com/bowerbird-si/laravel-go-captcha/blob/7a10d1c56d2e1a3e3e6618d025657dda5d5385cf/CONTRIBUTING.md), [Security policy](https://github.com/bowerbird-si/laravel-go-captcha/blob/7a10d1c56d2e1a3e3e6618d025657dda5d5385cf/SECURITY.md)
- Based on: [mews/captcha](https://github.com/mewebstudio/captcha): The captcha package this ports: profiles, config keys, routes and validation, following version 3.5.1. Its bundled fonts ship with their own licences.
- PHP parity: core (52 covered, 35 diverged, 0 planned of 87 abilities; 44 fixtures; follows mews/captcha 3.5.1; verified 2026-12-04)
- Community package, not affiliated with Laravel.
- HTML version: https://oss.bowerbird.si/go-captcha/docs/changelog/
- Source: https://github.com/bowerbird-si/laravel-go-captcha/blob/7a10d1c56d2e1a3e3e6618d025657dda5d5385cf/CHANGELOG.md

## Unreleased

## [0.1.0] - 2026-12-04

The first release, an alpha: a self-hosted image captcha for Laravel for Go, ported from mews/captcha 3.5.1.
The API may still change before 1.0.

### Added

- Session captchas for forms (`GET /captcha/{profile}`, `captcha.Rule`) and keyed captchas for APIs
  (`GET /captcha/api/{profile}`, `captcha.Keyed`, `captcha.KeyedWith`, `captcha.Issue`).
- The five profiles mews/captcha ships, `captcha.Defaults()` with PHP's class defaults, and math profiles.
- Images drawn in mews/captcha's order with its bundled fonts and backgrounds, matching GD's filters and
  resize; the build tag `captcha_noassets` leaves the assets out.
- `captcha.Check`, `captcha.CheckKey`, and the detailed verdicts of `CheckSession` and `CheckKeyed`.
- `captcha.Src`, `captcha.Img`, `captcha.Image`, and the template functions `captchaSrc`, `captchaImg` and
  `captchaField`, with an optional refresh script.
- `captcha.ParsePHPConfig`, which reads an exported `config('captcha')`.
- `captchatest.Disable` and `captchatest.Record` for application tests.
- `Config.Renderer` for drawing images yourself.

### Security

- Each challenge has its own random id and is consumed atomically: of many simultaneous correct answers,
  exactly one passes, on Redis and on the database cache.
- The answer is never stored or sent; the store keeps a keyed verifier.
- Wrong answers are limited per client and profile, and image requests per client.
- The package refuses a cache store that can't keep challenges safely, and runs store operations outside
  the caller's database transaction, reading from the writer.

### Compatibility

- Go 1.27 or newer, `go.laravel.com` v0.2.0.
- Behaviour that differs from mews/captcha is listed in the README and in
  [Migrating from PHP](https://oss.bowerbird.si/go-captcha/docs/migrating-from-php/).
