From 1a639e5f13c4856170394038581cce5570487690 Mon Sep 17 00:00:00 2001 From: yaozm Date: Wed, 20 Mar 2024 16:18:37 +0800 Subject: [PATCH 1/4] chore(release): 2.5.0 --- CHANGELOG.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5553498..c40916e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,15 @@ All notable changes to this project will be documented in this file. ## [Unreleased] + +## [2.5.0] - 2024-03-20 +### Feat +- **SimplePush:** Add SimplePush package with Authenticator, Client, and Messages + +### Test +- **SimplePush:** add test case for sending message + + ## [2.4.3] - 2024-03-20 ### Pull Requests @@ -778,7 +787,8 @@ All notable changes to this project will be documented in this file. - Finish tests -[Unreleased]: https://github.com/guanguans/notify/compare/2.4.3...HEAD +[Unreleased]: https://github.com/guanguans/notify/compare/2.5.0...HEAD +[2.5.0]: https://github.com/guanguans/notify/compare/2.4.3...2.5.0 [2.4.3]: https://github.com/guanguans/notify/compare/2.4.2...2.4.3 [2.4.2]: https://github.com/guanguans/notify/compare/2.4.1...2.4.2 [2.4.1]: https://github.com/guanguans/notify/compare/2.4.0...2.4.1 From d7e01280a6355e4339b676839a5366818f2f75d4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 20 Mar 2024 21:23:13 +0000 Subject: [PATCH 2/4] chore(deps): bump trufflesecurity/trufflehog from 3.70.2 to 3.70.3 Bumps [trufflesecurity/trufflehog](https://github.com/trufflesecurity/trufflehog) from 3.70.2 to 3.70.3. - [Release notes](https://github.com/trufflesecurity/trufflehog/releases) - [Changelog](https://github.com/trufflesecurity/trufflehog/blob/main/.goreleaser.yml) - [Commits](https://github.com/trufflesecurity/trufflehog/compare/v3.70.2...v3.70.3) --- updated-dependencies: - dependency-name: trufflesecurity/trufflehog dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/secret-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/secret-check.yml b/.github/workflows/secret-check.yml index 1cbb689..38c4fc6 100644 --- a/.github/workflows/secret-check.yml +++ b/.github/workflows/secret-check.yml @@ -12,7 +12,7 @@ jobs: # ref: ${{ github.ref_name }} fetch-depth: 0 - name: TruffleHog OSS - uses: trufflesecurity/trufflehog@v3.70.2 + uses: trufflesecurity/trufflehog@v3.70.3 with: # path: ./ # base: ${{ github.event.repository.default_branch }} From b10384ce60e73b9b90c448832dd9f53a682a4917 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 21 Mar 2024 21:55:37 +0000 Subject: [PATCH 3/4] chore(deps): bump dependabot/fetch-metadata from 1.6.0 to 2.0.0 Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 1.6.0 to 2.0.0. - [Release notes](https://github.com/dependabot/fetch-metadata/releases) - [Commits](https://github.com/dependabot/fetch-metadata/compare/v1.6.0...v2.0.0) --- updated-dependencies: - dependency-name: dependabot/fetch-metadata dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/dependabot-auto-merge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index 78b1967..b16bfbe 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -13,7 +13,7 @@ jobs: - name: Dependabot metadata id: metadata - uses: dependabot/fetch-metadata@v1.6.0 + uses: dependabot/fetch-metadata@v2.0.0 with: github-token: "${{ secrets.GITHUB_TOKEN }}" From 9593081ecad0755847b8c6a78194ce4da9dcd17f Mon Sep 17 00:00:00 2001 From: yaozm Date: Fri, 22 Mar 2024 10:13:54 +0800 Subject: [PATCH 4/4] refactor(Response): improve request and response summary handling - Added handling for request and response summaries - Removed unnecessary code related to headers, status, reason, and body --- src/Foundation/Response.php | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/Foundation/Response.php b/src/Foundation/Response.php index b4974b7..4e45b8a 100644 --- a/src/Foundation/Response.php +++ b/src/Foundation/Response.php @@ -21,6 +21,7 @@ use Guanguans\Notify\Foundation\Exceptions\RuntimeException; use Guanguans\Notify\Foundation\Support\Arr; use GuzzleHttp\Cookie\CookieJar; +use GuzzleHttp\Psr7\Message; use GuzzleHttp\TransferStats; use Illuminate\Support\Collection; use Psr\Http\Message\RequestInterface; @@ -74,13 +75,15 @@ public function __debugInfo(): array { return $this->mergeDebugInfo([ 'handlerStats' => $this->handlerStats(), - 'headers' => Arr::map( - $this->headers(), - fn (array $header, string $name): string => $this->getHeaderLine($name), - ), - 'status' => $this->status(), - 'reason' => $this->reason(), - 'body' => $this->body(), + 'requestSummary' => $this->request instanceof RequestInterface ? Message::toString($this->request) : null, + 'responseSummary' => Message::toString($this), + // 'headers' => Arr::map( + // $this->headers(), + // fn (array $header, string $name): string => $this->getHeaderLine($name), + // ), + // 'status' => $this->status(), + // 'reason' => $this->reason(), + // 'body' => $this->body(), 'decodedBody' => $this->json(), ]); }