Skip to content

Commit

Permalink
Merge pull request #45 from bilfeldt/fixes/v4
Browse files Browse the repository at this point in the history
Refactor to v4 release
  • Loading branch information
bilfeldt authored Dec 4, 2024
2 parents 55e7e22 + aa00309 commit e1dabb8
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 28 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down
13 changes: 2 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
20 changes: 20 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -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.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit e1dabb8

Please sign in to comment.