From aa003093e688fa17056fedfe8f79307bb8b1a784 Mon Sep 17 00:00:00 2001 From: Bilfeldt Date: Wed, 4 Dec 2024 14:25:30 +0100 Subject: [PATCH] Refactor to v4 release --- .github/workflows/run-tests.yml | 11 ++--------- CHANGELOG.md | 13 ++----------- README.md | 11 ++++++----- UPGRADE.md | 20 ++++++++++++++++++++ composer.json | 6 +++--- 5 files changed, 33 insertions(+), 28 deletions(-) create mode 100644 UPGRADE.md diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 41f5bfa..c0926d7 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -16,19 +16,12 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest] - php: [8.4, 8.3, 8.2, 8.1] - laravel: ['10.*', '11.*'] + php: [8.4, 8.3, 8.2] + laravel: ['11.*'] dependency-version: [prefer-stable] include: - - laravel: 10.* - testbench: 8.* - laravel: 11.* testbench: 9.* - exclude: - - laravel: 11.* - php: 8.1 - - laravel: 10.* - php: 8.4 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} diff --git a/CHANGELOG.md b/CHANGELOG.md index c331447..65c5e0e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,21 +2,12 @@ All notable changes to `laravel-route-statistics` will be documented in this file. -## Upgrade guide - -### 2.* => 3.* - -There are no breaking changes if you are simply using this package. But the dependency of [`bilfeldt/laravel-request-logger`](https://packagist.org/packages/bilfeldt/laravel-request-logger) was upgraded to version 3 which means if you are also logging requests using this package, then you need to consult [the upgrade guide for that package](https://github.com/bilfeldt/laravel-request-logger/blob/main/CHANGELOG.md#2--3). - -### 1.* => 2.* - -No breaking changes. The only changes are to the development dependencies used for testing and then the minimum Laravel and PHP requirements. - ## Changes -### 3.5.0- 2024-12-04 +### 4.0.0 - 2024-12-04 - Add PHP 8.4 compatibility +- Add route parameters as separate DB field ### 3.4.0 - 2024-05-10 diff --git a/README.md b/README.md index 49f63d1..dcf217d 100644 --- a/README.md +++ b/README.md @@ -9,11 +9,12 @@ Log Laravel requests and responses for statistical purposes and optionally aggregate by hours/days/months for minimal db requirements. -| Version | Laravel | PHP | -|---------|-------------|----------------------------------| -| 1.* | 8.* \| 9.* | 7.4.* \| 8.0.* \| 8.1.* | -| 2.* | 10.* | 8.1.* \| 8.2.* | -| 3.* | 11.* | 8.1.* \| 8.2.* \| 8.3.* \| 8.4.* | +| Version | Laravel | PHP | +|---------|-------------|-------------------------| +| 1.* | 8.* \| 9.* | 7.4.* \| 8.0.* \| 8.1.* | +| 2.* | 10.* | 8.1.* \| 8.2.* | +| 3.* | 11.* | 8.1.* \| 8.2.* \| 8.3.* | +| 4.* | 11.* | 8.2.* \| 8.3.* \| 8.4.* | ## Description diff --git a/UPGRADE.md b/UPGRADE.md new file mode 100644 index 0000000..7295f1a --- /dev/null +++ b/UPGRADE.md @@ -0,0 +1,20 @@ +# Upgrade guide + +## 3.* => 4.* + +A new nullable json field `parameters` has been added after the `route` field. + +Simply publish the migration files and migrate: + +```bash +php artisan vendor:publish --provider="Bilfeldt\LaravelRouteStatistics\LaravelRouteStatisticsServiceProvider" --tag="migrations" +php artisan migrate +``` + +## 2.* => 3.* + +There are no breaking changes if you are simply using this package. But the dependency of [`bilfeldt/laravel-request-logger`](https://packagist.org/packages/bilfeldt/laravel-request-logger) was upgraded to version 3 which means if you are also logging requests using this package, then you need to consult [the upgrade guide for that package](https://github.com/bilfeldt/laravel-request-logger/blob/main/CHANGELOG.md#2--3). + +## 1.* => 2.* + +No breaking changes. The only changes are to the development dependencies used for testing and then the minimum Laravel and PHP requirements. diff --git a/composer.json b/composer.json index b1f7194..dd8d7f3 100644 --- a/composer.json +++ b/composer.json @@ -21,10 +21,10 @@ } ], "require": { - "php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0", + "php": "~8.2.0 || ~8.3.0 || ~8.4.0", "bilfeldt/laravel-request-logger": "^3.0", - "illuminate/contracts": "^10.0 || ^11.0", - "laravel/framework": "^10.0 || ^11.0" + "illuminate/contracts": "^11.0", + "laravel/framework": "^11.0" }, "require-dev": { "nunomaduro/collision": "^7.2 || ^8.0",