Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3b6afc54f9 | ||
|
|
a2c3ad76c0 | ||
|
|
42debe755e | ||
|
|
9788f6f895 |
No files matched your search
@@ -17,7 +17,7 @@ jobs:
|
|||||||
fail-fast: true
|
fail-fast: true
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest]
|
os: [ubuntu-latest, windows-latest]
|
||||||
php: [8.4]
|
php: [8.4, 8.3]
|
||||||
laravel: [11.*]
|
laravel: [11.*]
|
||||||
stability: [prefer-lowest, prefer-stable]
|
stability: [prefer-lowest, prefer-stable]
|
||||||
include:
|
include:
|
||||||
|
|||||||
@@ -2,6 +2,18 @@
|
|||||||
|
|
||||||
All notable changes to `laravel-plausible-proxy` will be documented in this file.
|
All notable changes to `laravel-plausible-proxy` will be documented in this file.
|
||||||
|
|
||||||
|
## v1.1 - 2025-01-31
|
||||||
|
|
||||||
|
### What's Changed
|
||||||
|
|
||||||
|
* Refactor event forwarding and improve test coverage by @mathiaspalmqvist in https://github.com/MattitjaAB/laravel-plausible-proxy/pull/1
|
||||||
|
|
||||||
|
### New Contributors
|
||||||
|
|
||||||
|
* @mathiaspalmqvist made their first contribution in https://github.com/MattitjaAB/laravel-plausible-proxy/pull/1
|
||||||
|
|
||||||
|
**Full Changelog**: https://github.com/MattitjaAB/laravel-plausible-proxy/compare/v1.0...v1.1
|
||||||
|
|
||||||
## First release - 2025-01-30
|
## First release - 2025-01-30
|
||||||
|
|
||||||
**Full Changelog**: https://github.com/MattitjaAB/laravel-plausible-proxy/commits/v1.0
|
**Full Changelog**: https://github.com/MattitjaAB/laravel-plausible-proxy/commits/v1.0
|
||||||
@@ -9,7 +9,7 @@ A Laravel package for proxying Plausible Analytics, improving performance and pr
|
|||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
- Laravel 11
|
- Laravel 11
|
||||||
- PHP 8.4+
|
- PHP 8.3+
|
||||||
|
|
||||||
## 🚀 Installation
|
## 🚀 Installation
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -18,7 +18,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^8.4",
|
"php": "^8.3",
|
||||||
"spatie/laravel-package-tools": "^1.16",
|
"spatie/laravel-package-tools": "^1.16",
|
||||||
"illuminate/contracts": "^10.0||^11.0"
|
"illuminate/contracts": "^10.0||^11.0"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -54,9 +54,6 @@ it('accepts valid event data and forwards headers', function () {
|
|||||||
|
|
||||||
Http::fake([
|
Http::fake([
|
||||||
'https://plausible.io/api/event' => function ($request) {
|
'https://plausible.io/api/event' => function ($request) {
|
||||||
dump($request->headers());
|
|
||||||
dump($request->data());
|
|
||||||
|
|
||||||
return Http::response(['status' => 'queued'], 200);
|
return Http::response(['status' => 'queued'], 200);
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
@@ -78,10 +75,6 @@ it('accepts valid event data and forwards headers', function () {
|
|||||||
Http::assertSentCount(1);
|
Http::assertSentCount(1);
|
||||||
|
|
||||||
Http::assertSent(function ($request) {
|
Http::assertSent(function ($request) {
|
||||||
dump($request->url());
|
|
||||||
dump($request->headers());
|
|
||||||
dump($request->data());
|
|
||||||
|
|
||||||
return $request->url() === 'https://plausible.io/api/event'
|
return $request->url() === 'https://plausible.io/api/event'
|
||||||
&& isset($request['n']) && $request['n'] === 'pageview'
|
&& isset($request['n']) && $request['n'] === 'pageview'
|
||||||
&& isset($request['u']) && $request['u'] === 'https://example.com/page'
|
&& isset($request['u']) && $request['u'] === 'https://example.com/page'
|
||||||
|
|||||||
Reference in new issue
Block a user