From f189dc0ed13fc4932463506810dbb21f7e131c0b Mon Sep 17 00:00:00 2001 From: shalvah Date: Wed, 18 May 2022 22:41:45 +0200 Subject: [PATCH 1/3] 2.12.1 --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ef5721..8937c98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] -## [2.12.1] - 2022-05-14 +## [2.12.1] - 2022-05-18 ### Added - Fix occasionally missing backtrace in errors (closes #162) ([341aefc](https://github.com/honeybadger-io/honeybadger-php/commit/341aefc3bb17c7beb71e81b4d7f918125f69c8ff)) From ba19c8326dd96676359d34403d87fba422ef75e9 Mon Sep 17 00:00:00 2001 From: shalvah Date: Thu, 8 Sep 2022 02:42:38 +0200 Subject: [PATCH 2/3] Remove spatie/regex --- composer.json | 1 - src/BacktraceFactory.php | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index b934c1b..99352fb 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,6 @@ "ext-json": "*", "guzzlehttp/guzzle": "^6.3|^7.0.1", "monolog/monolog": "^2.0", - "spatie/regex": "^1.4|^2.0", "symfony/http-foundation": ">=3.3|^4.1" }, "require-dev": { diff --git a/src/BacktraceFactory.php b/src/BacktraceFactory.php index 38e4b1a..15f4dff 100644 --- a/src/BacktraceFactory.php +++ b/src/BacktraceFactory.php @@ -5,7 +5,6 @@ use ErrorException; use ReflectionClass; use ReflectionException; -use Spatie\Regex\Regex; use Throwable; class BacktraceFactory @@ -188,7 +187,7 @@ private function fileFromApplication(string $filePath, array $vendorPaths): bool // On Windows, file paths use backslashes, so we have to normalise them $path = str_replace('\\', '/', $path); - if (Regex::match('/' . array_shift($vendorPaths) . '/', $path)->hasMatch()) { + if (preg_match('/' . array_shift($vendorPaths) . '/', $path)) { return false; } @@ -204,7 +203,7 @@ private function appendProjectRootToFilePath(string $filePath): string $pregProjectRoot = preg_quote($this->config['project_root'] . '/', '/'); return $this->config['project_root'] - ? Regex::replace('/' . $pregProjectRoot . '/', '', $filePath)->result() + ? preg_replace('/' . $pregProjectRoot . '/', '', $filePath) : ''; } } From c304317b947a7f24e36053dc85e1ea1ba23a24f4 Mon Sep 17 00:00:00 2001 From: shalvah Date: Thu, 8 Sep 2022 02:42:46 +0200 Subject: [PATCH 3/3] 2.13.0 --- CHANGELOG.md | 6 +++++- src/Honeybadger.php | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8937c98..be86596 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +## [2.13.0] - 2022-09-08 +### Modified +- Remove spatie/regex dependency ([#165](https://github.com/honeybadger-io/honeybadger-php/pull/165)) + ## [2.12.1] - 2022-05-18 ### Added - Fix occasionally missing backtrace in errors (closes #162) ([341aefc](https://github.com/honeybadger-io/honeybadger-php/commit/341aefc3bb17c7beb71e81b4d7f918125f69c8ff)) @@ -144,7 +148,7 @@ adheres to [Semantic Versioning](http://semver.org/). ## [1.6.0] - 2019-07-18 ### Added - Added the ability to pass additional API parameters to exception captures specifically component and action ([#85](https://github.com/honeybadger-io/honeybadger-php/pull/85)) -- Adds fingerprint and tags to the additional paramaters ([#76](https://github.com/honeybadger-io/honeybadger-php/pull/76)) +- Adds fingerprint and tags to the additional parameters ([#76](https://github.com/honeybadger-io/honeybadger-php/pull/76)) - Adds method arguments to backtrace where possible ([#86](https://github.com/honeybadger-io/honeybadger-php/pull/86)) ## [1.5.1] - 2019-06-10 diff --git a/src/Honeybadger.php b/src/Honeybadger.php index 688b644..eefa912 100644 --- a/src/Honeybadger.php +++ b/src/Honeybadger.php @@ -20,7 +20,7 @@ class Honeybadger implements Reporter /** * SDK Version. */ - const VERSION = '2.12.1'; + const VERSION = '2.13.0'; /** * Honeybadger API URL.