diff --git a/CHANGELOG.md b/CHANGELOG.md index 9370450..cdaf21c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## 5.1.1 - 2024-03-26 +### Fixed +- Fix missing property exluded exceptions + +## 5.1.0 - 2024-03-26 +### Added +- Add excluded exceptions + ## 5.0.0 - 2024-03-26 ### Added - Craft 5 support 🚀 @@ -26,7 +34,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ## 1.1.0 - 2022-03-14 ### Added -- Add the ability to pass custom options to the Sentry SDK by listening to the +- Add the ability to pass custom options to the Sentry SDK by listening to the `SentryService::EVENT_DEFINE_SENTRY_SDK_CONFIGURATION` event - Honor the Craft [`httpProxy` general setting](https://craftcms.com/docs/3.x/config/config-settings.html#httpproxy) - Added console function to send a test exception diff --git a/composer.json b/composer.json index 9a945de..abc7aaa 100644 --- a/composer.json +++ b/composer.json @@ -1,59 +1,59 @@ { - "name": "statikbe/craft-sentry", - "description": "Sentry.io integration for Craft CMS", - "type": "craft-plugin", - "version": "5.1.0", - "keywords": [ - "craft", - "sentry", - "cms", - "craftcms", - "craft-plugin", - "craft sentry" - ], - "support": { - "docs": "https://github.com/statikbe/craft-sentry/blob/master/README.md", - "issues": "https://github.com/statikbe/craft-sentry/issues" - }, - "license": "MIT", - "authors": [ - { - "name": "Statik.be", - "homepage": "https://www.statik.be" - } - ], - "require": { - "craftcms/cms": "^5.0.0-beta.1", - "sentry/sdk": "^4.0.0" - }, - "require-dev": { - "craftcms/ecs": "dev-main", - "craftcms/phpstan": "dev-main" - }, - "scripts": { - "check-cs": "ecs check --ansi", - "fix-cs": "ecs check --ansi --fix", - "phpstan": "phpstan --memory-limit=1G", - "ci": "ecs check --ansi --fix && phpstan --memory-limit=1G" - }, - "autoload": { - "psr-4": { - "statikbe\\sentry\\": "src/" - } - }, - "extra": { - "name": "Sentry", - "handle": "craft-sentry", - "developer": "Statik.be", - "developerUrl": "https://www.statik.be", - "documentationUrl": "https://github.com/statikbe/craft-sentry/blob/master/README.md", - "changelogUrl": "https://raw.githubusercontent.com/statikbe/craft-sentry/master/CHANGELOG.md", - "class": "statikbe\\sentry\\Sentry" - }, - "config": { - "allow-plugins": { - "yiisoft/yii2-composer": true, - "craftcms/plugin-installer": true - } + "name": "statikbe/craft-sentry", + "description": "Sentry.io integration for Craft CMS", + "type": "craft-plugin", + "version": "5.1.1", + "keywords": [ + "craft", + "sentry", + "cms", + "craftcms", + "craft-plugin", + "craft sentry" + ], + "support": { + "docs": "https://github.com/statikbe/craft-sentry/blob/master/README.md", + "issues": "https://github.com/statikbe/craft-sentry/issues" + }, + "license": "MIT", + "authors": [ + { + "name": "Statik.be", + "homepage": "https://www.statik.be" } + ], + "require": { + "craftcms/cms": "^5.0.0-beta.1", + "sentry/sdk": "^4.0.0" + }, + "require-dev": { + "craftcms/ecs": "dev-main", + "craftcms/phpstan": "dev-main" + }, + "scripts": { + "check-cs": "ecs check --ansi", + "fix-cs": "ecs check --ansi --fix", + "phpstan": "phpstan --memory-limit=1G", + "ci": "ecs check --ansi --fix && phpstan --memory-limit=1G" + }, + "autoload": { + "psr-4": { + "statikbe\\sentry\\": "src/" + } + }, + "extra": { + "name": "Sentry", + "handle": "craft-sentry", + "developer": "Statik.be", + "developerUrl": "https://www.statik.be", + "documentationUrl": "https://github.com/statikbe/craft-sentry/blob/master/README.md", + "changelogUrl": "https://raw.githubusercontent.com/statikbe/craft-sentry/master/CHANGELOG.md", + "class": "statikbe\\sentry\\Sentry" + }, + "config": { + "allow-plugins": { + "yiisoft/yii2-composer": true, + "craftcms/plugin-installer": true + } + } } diff --git a/src/models/Settings.php b/src/models/Settings.php index 6cb0836..8c09b6f 100644 --- a/src/models/Settings.php +++ b/src/models/Settings.php @@ -10,6 +10,7 @@ class Settings extends Model public $anonymous = true; public $clientDsn; public $excludedCodes = ['400', '404']; + public $excludedExceptions = []; public $release; public function rules(): array @@ -17,6 +18,7 @@ public function rules(): array return [ [['enabled', 'anonymous'], 'boolean'], [['clientDsn', 'excludedCodes', 'release'], 'string'], + [['excludedExceptions'], 'array'], [['clientDsn'], 'required'], ]; }