Releases: librecaptcha/lc-core
v 2.0.1
Fixes
playgroundEnabled
config option was not being respected #175- Update curl example for v2 changes by @vinceh121 in #160
Behind the scenes
- h2 updated to 2.1.214
- Scala and Library updates
Full Changelog: v2.0.0...v2.0.1
v2.0.0
This release contains some breaking changes, hence bumping the version number to 2!
💔 Breaking changes
- API is now served on
/v2
path. A new parameter (size
) is required for/v2/captcha
endpoint. - Config option
throttle
has been renamed tobufferCount
for clarity - Config option
maxAttempts
has been replaced bymaxAttemptsRatio
to simplify management of server. The parameter is now expressed as a fraction of thebufferCount
. This allows you to changebufferCount
in response to server load, without worrying about changingmaxAttempts
to match it. - New config option
allowedSizes
lets you define the size of the captcha image, per captcha provider.
All the config options are described in the wiki
Fixes
See https://github.com/librecaptcha/lc-core/milestone/5?closed=1
Changes Behind the scenes
- Updated to Scala 3
- Updated H2 to 2.0.206
What's Changed
- Update json4s-jackson_2.13 to 3.6.12 by @scala-steward in #106
- Update sbt to 1.5.7 by @scala-steward in #107
- Update scalafmt-core to 3.0.8 by @scala-steward in #108
- Update scalafmt-core to 3.2.1 by @scala-steward in #110
- Update sbt to 1.5.8 by @scala-steward in #111
- update H2 lib to 2.0.204 by @hrj in #112
- Update scalafmt-core to 3.2.2 by @scala-steward in #113
- Update sbt-scalafmt to 2.4.6 by @scala-steward in #114
- Update scalafmt-core to 3.3.0 by @scala-steward in #115
- Update sbt to 1.6.0 by @scala-steward in #117
- Max attempts config by @rr83019 in #116
- Update json4s-jackson_2.13 to 4.0.3 by @scala-steward in #109
- Update sbt to 1.6.1 by @scala-steward in #118
- Update scalafmt-core to 3.3.1 by @scala-steward in #119
- update to scala 3 by @hrj in #120
- update jar path in docker file by @hrj in #121
- Update h2 lib to 2.0.206 by @hrj in #123
- Make config parameters optional by @rr83019 in #122
- Update scrimage-core, scrimage-filters to 4.0.25 by @scala-steward in #124
- Update sbt-scalafix to 0.9.34 by @scala-steward in #125
- Update scalafmt-core to 3.3.2 by @scala-steward in #127
- Update scalafmt-core to 3.3.3 by @scala-steward in #128
- Update json4s-jackson to 4.0.4 by @scala-steward in #129
- Update scrimage-core, scrimage-filters to 4.0.26 by @scala-steward in #130
- Update scalafmt-core to 3.4.0 by @scala-steward in #131
- Update sbt to 1.6.2 by @scala-steward in #132
- Update scala3-library to 3.1.1 by @scala-steward in #133
- Update scalafmt-core to 3.4.1 by @scala-steward in #134
- Update scalafmt-core to 3.4.2 by @scala-steward in #135
- Update scalafmt-core to 3.4.3 by @scala-steward in #136
- Update sbt-assembly to 1.1.1 by @scala-steward in #137
- Update sbt-assembly to 1.2.0 by @scala-steward in #138
- Update scrimage-core, scrimage-filters to 4.0.27 by @scala-steward in #139
- Update scrimage-core, scrimage-filters to 4.0.28 by @scala-steward in #141
- Update scrimage-core, scrimage-filters to 4.0.29 by @scala-steward in #142
- Update scrimage-core, scrimage-filters to 4.0.30 by @scala-steward in #143
- Simplification and minor refactoring by @hrj in #144
- Update scrimage-core, scrimage-filters to 4.0.31 by @scala-steward in #147
- Fix for #145: frequent repetition of CAPTCHA challenge by @hrj in #148
- Bump version numbers, fixes #149 by @Korkman in #150
- Point docker-compose.yml to "latest", add "build" by @Korkman in #151
- Update scalafmt-core to 3.5.0 by @scala-steward in #152
- Respect size param by @hrj in #153
- Updated javascript example usage in README.md for 2.0.0 changes. by @JacobPozaic in #158
- Update json4s-jackson to 4.0.5 by @scala-steward in #155
New Contributors
- @scala-steward made their first contribution in #106
- @Korkman made their first contribution in #150
Full Changelog: v1.1.0...v2.0.0
v2.0.0-beta
This release contains some breaking changes, hence bumping the version number to 2!
💔 Breaking changes
- API is now served on
/v2
path. A new parameter (size
) is required for/v2/captcha
endpoint. - Config option
throttle
has been renamed tobufferCount
for clarity - Config option
maxAttempts
has been replaced bymaxAttemptsRatio
to simplify management of server. The parameter is now expressed as a fraction of thebufferCount
. This allows you to changebufferCount
in response to server load, without worrying about changingmaxAttempts
to match it. - New config option
allowedSizes
lets you define the size of the captcha image, per captcha provider.
Fixes
See https://github.com/librecaptcha/lc-core/milestone/5?closed=1
Changes Behind the scenes
- Updated to Scala 3
- Updated H2 to 2.0.206
Detailed commit log
- Update json4s-jackson_2.13 to 3.6.12 by @scala-steward in #106
- Update sbt to 1.5.7 by @scala-steward in #107
- Update scalafmt-core to 3.0.8 by @scala-steward in #108
- Update scalafmt-core to 3.2.1 by @scala-steward in #110
- Update sbt to 1.5.8 by @scala-steward in #111
- update H2 lib to 2.0.204 by @hrj in #112
- Update scalafmt-core to 3.2.2 by @scala-steward in #113
- Update sbt-scalafmt to 2.4.6 by @scala-steward in #114
- Update scalafmt-core to 3.3.0 by @scala-steward in #115
- Update sbt to 1.6.0 by @scala-steward in #117
- Max attempts config by @rr83019 in #116
- Update json4s-jackson_2.13 to 4.0.3 by @scala-steward in #109
- Update sbt to 1.6.1 by @scala-steward in #118
- Update scalafmt-core to 3.3.1 by @scala-steward in #119
- update to scala 3 by @hrj in #120
- update jar path in docker file by @hrj in #121
- Update h2 lib to 2.0.206 by @hrj in #123
- Make config parameters optional by @rr83019 in #122
- Update scrimage-core, scrimage-filters to 4.0.25 by @scala-steward in #124
- Update sbt-scalafix to 0.9.34 by @scala-steward in #125
- Update scalafmt-core to 3.3.2 by @scala-steward in #127
- Update scalafmt-core to 3.3.3 by @scala-steward in #128
- Update json4s-jackson to 4.0.4 by @scala-steward in #129
- Update scrimage-core, scrimage-filters to 4.0.26 by @scala-steward in #130
- Update scalafmt-core to 3.4.0 by @scala-steward in #131
- Update sbt to 1.6.2 by @scala-steward in #132
- Update scala3-library to 3.1.1 by @scala-steward in #133
- Update scalafmt-core to 3.4.1 by @scala-steward in #134
- Update scalafmt-core to 3.4.2 by @scala-steward in #135
- Update scalafmt-core to 3.4.3 by @scala-steward in #136
- Update sbt-assembly to 1.1.1 by @scala-steward in #137
- Update sbt-assembly to 1.2.0 by @scala-steward in #138
- Update scrimage-core, scrimage-filters to 4.0.27 by @scala-steward in #139
- Update scrimage-core, scrimage-filters to 4.0.28 by @scala-steward in #141
- Update scrimage-core, scrimage-filters to 4.0.29 by @scala-steward in #142
- Update scrimage-core, scrimage-filters to 4.0.30 by @scala-steward in #143
- Simplification and minor refactoring by @hrj in #144
- Update scrimage-core, scrimage-filters to 4.0.31 by @scala-steward in #147
- Fix for #145: frequent repetition of CAPTCHA challenge by @hrj in #148
- Bump version numbers, fixes #149 by @Korkman in #150
- Point docker-compose.yml to "latest", add "build" by @Korkman in #151
- Update scalafmt-core to 3.5.0 by @scala-steward in #152
- Respect size param by @hrj in #153
New Contributors
- @scala-steward made their first contribution in #106
- @Korkman made their first contribution in #150
Full Changelog: v1.1.0...v2.0.0-beta
LibreCaptcha v1.1.0
Highlights
Note: If you are upgrading from an older version of LibreCaptcha, the config file now needs three new options:
address: "0.0.0.0"
,playGroundEnabled: true
andcorsHeader: ""
. Theaddress
option lets you specify the listen address for the server. TheplayGroundEnabled
option is a boolean that enables the demo site andcorsHeader
lets you add a CORS headers to the response.
Improvements ✨
- Added a simple browser based demo which can be seen at
http://localhost:8888/demo/index.html
after starting the server. This can be disabled using theplaygroundEnabled
configuration. - Alphabets which are confusing, such as
O, 0, I, l
are now disabled by default - Improved
PoppingCharactersCaptcha
(erstwhile GifCaptcha) (#89) - The background thread now generates all types of Captchas (#84)
Behind the scenes
- Updated scala, sbt, dependencies and sbt plugins to their latest versions
- Updated the H2 DB to version 2.0.202 which is not compatible with the older version. Hence, a new database path is used and if an old database instance exists, it is ignored. This should not be a problem, as there is no critical data stored in the DB. But if you would like to reuse the older database, see instructions in the release link for restoring old database.
- Removed a dependency which was GPL licensed (#66)
- Added functional test (#71)
- Run performance and functional tests in CI
Quick start with Docker
docker run -v lcdata:/lc-core/data librecaptcha/lc-core:1.1.0-stable
Changelog (auto generated)
- Run locust tests in CI by @hrj in #72
- Migrate to HttpServer by @rr83019 in #76
- Add Debug Captcha and functional tests by @hrj in #83
- Code simplifications and updated test script by @hrj in #85
- Improve Error handling/messages by @rr83019 in #82
- Use pico server by @hrj in #87
- Ensure fresh Captchas are served by sorting on attempted count by @hrj in #88
- Background Thread - Random Captcha Generation by @rr83019 in #90
- Specify config file path by @rr83019 in #92
- Listen address in config by @vinceh121 in #94
- Set Image DPI for captcha providers by @rr83019 in #96
- CORS configuration and disable playground by @JacobPozaic in #102
New Contributors
- @vinceh121 made their first contribution in #94
- @JacobPozaic made their first contribution in #102
Full Changelog: v1.0.1...v1.1.0
LibreCaptcha v1.1.0 Beta 1
- Alphabets which are confusing, such as
O, 0, I, l
are now disabled by default - Added a simple browser based demo which can be found at
http://localhost:8888/demo/index.html
- Improved PoppingCharactersCaptcha (renamed from GifCaptcha) (#89)
- The background thread now generates all types of Captchas (#84)
- Removed a dependency which was GPL licensed (#66)
- Added functional test (#71)
- Run performance and functional tests in CI