Skip to content

Commit

Permalink
Craft 5 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
billmn committed Mar 27, 2024
1 parent 215c48d commit 8b30ec4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 24 deletions.
20 changes: 2 additions & 18 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
# Release Notes for Cloudflare Turnstile

## 1.0.3 - 2023-07-03

- Added `registerJs` option to disable automatic js registration
- Allowed to call `scriptUrl` and `initScript` methods from Twig
- Prevented javascript error `renderTurnstile is not defined`

## 1.0.2 - 2023-05-24

- Brand new icon
- Fixed label translation handle in settings page

## 1.0.1 - 2023-04-13

- Added `passes` and `fails` methods
- Updated readme with new methods and on how to flag the message as spam

## 1.0.0 - 2023-01-06
- Initial release
## 2.0.0 - 2024-03-27
- Added compatibility with Craft 5
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ If you want to know more about Turnstile, read the announcement [blog post](http

## Requirements

This plugin requires Craft CMS 4.3.5 or later, and PHP 8.0.2 or later.
This plugin requires Craft CMS 5.0.0 or later.

## Installation

Expand Down
7 changes: 2 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"rss": "https://github.com/billmn/craft-turnstile/releases.atom"
},
"require": {
"php": ">=8.0.2",
"craftcms/cms": "^4.3.5"
"php": "^8.2",
"craftcms/cms": "^5.0.0"
},
"require-dev": {
"craftcms/ecs": "dev-main",
Expand All @@ -37,9 +37,6 @@
},
"config": {
"sort-packages": true,
"platform": {
"php": "8.0.2"
},
"allow-plugins": {
"yiisoft/yii2-composer": true,
"craftcms/plugin-installer": true
Expand Down

0 comments on commit 8b30ec4

Please sign in to comment.