Skip to content

Commit 62ea485

Browse files
committed
Prepare v3.5.0 release
1 parent 200a4f8 commit 62ea485

5 files changed

Lines changed: 43 additions & 15 deletions

File tree

.github/SUPPORT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
GitHub issue trackers are not intended to provide help or support. Instead, use one of the following channels:
44

55
- [Twitter](https://twitter.com/tjthavarshan)
6-
- [Github discussions](https://github.com/Thavarshan/fetch-php/issues)
7-
- [API reference](https://github.com/Thavarshan/fetch-php/wiki/API-Reference-for-the-Filter-Class)
6+
- [GitHub discussions](https://github.com/Thavarshan/fetch-php/discussions)
7+
- [API reference](https://fetch-php.thavarshan.com/api/)

.github/workflows/packages.yml

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
tags:
66
- 'v*'
7+
- '[0-9]*.[0-9]*.[0-9]*'
78
release:
89
types: [published]
910

@@ -14,7 +15,7 @@ permissions:
1415
jobs:
1516
validate-tag:
1617
runs-on: ubuntu-latest
17-
if: startsWith(github.ref, 'refs/tags/v')
18+
if: startsWith(github.ref, 'refs/tags/')
1819

1920
outputs:
2021
version: ${{ steps.version.outputs.version }}
@@ -27,7 +28,8 @@ jobs:
2728
- name: Validate version tag
2829
id: version
2930
run: |
30-
VERSION=${GITHUB_REF#refs/tags/v}
31+
VERSION=${GITHUB_REF#refs/tags/}
32+
VERSION=${VERSION#v}
3133
echo "version=$VERSION" >> $GITHUB_OUTPUT
3234
3335
# Check if it's a pre-release (contains alpha, beta, rc)
@@ -45,16 +47,21 @@ jobs:
4547
4648
- name: Check version matches composer.json
4749
run: |
48-
COMPOSER_VERSION=$(php -r "echo json_decode(file_get_contents('composer.json'))->version;")
49-
if [ "${{ steps.version.outputs.version }}" != "$COMPOSER_VERSION" ]; then
50+
COMPOSER_VERSION=$(php -r '$composer = json_decode(file_get_contents("composer.json")); echo $composer->version ?? "";')
51+
52+
# Libraries published through Packagist usually derive the package
53+
# version from the Git tag. composer.json intentionally omits
54+
# "version" as of v3.4.1, so only enforce this check when a version
55+
# field is explicitly present.
56+
if [ -n "$COMPOSER_VERSION" ] && [ "${{ steps.version.outputs.version }}" != "$COMPOSER_VERSION" ]; then
5057
echo "Version mismatch: tag ${{ steps.version.outputs.version }} != composer.json $COMPOSER_VERSION"
5158
exit 1
5259
fi
5360
5461
test-before-release:
5562
runs-on: ubuntu-latest
5663
needs: validate-tag
57-
if: startsWith(github.ref, 'refs/tags/v')
64+
if: startsWith(github.ref, 'refs/tags/')
5865

5966
steps:
6067
- name: Checkout code
@@ -64,7 +71,7 @@ jobs:
6471
uses: shivammathur/setup-php@v2
6572
with:
6673
php-version: '8.3'
67-
extensions: curl, mbstring, json, openssl, gd
74+
extensions: curl, mbstring, json, openssl, gd, pcntl, xml, dom, simplexml, tokenizer, intl
6875
coverage: none
6976
tools: composer:v2
7077

@@ -73,11 +80,13 @@ jobs:
7380

7481
- name: Run full test suite
7582
run: composer check
83+
env:
84+
NO_NETWORK: 1
7685

7786
create-release:
7887
runs-on: ubuntu-latest
7988
needs: [validate-tag, test-before-release]
80-
if: startsWith(github.ref, 'refs/tags/v')
89+
if: startsWith(github.ref, 'refs/tags/')
8190

8291
steps:
8392
- name: Checkout code
@@ -89,7 +98,7 @@ jobs:
8998
uses: shivammathur/setup-php@v2
9099
with:
91100
php-version: '8.3'
92-
extensions: curl, mbstring, json, openssl, gd
101+
extensions: curl, mbstring, json, openssl, gd, pcntl, xml, dom, simplexml, tokenizer, intl
93102
tools: composer:v2
94103

95104
- name: Install dependencies
@@ -129,11 +138,11 @@ jobs:
129138
packagist-webhook:
130139
runs-on: ubuntu-latest
131140
needs: [validate-tag, create-release]
132-
if: startsWith(github.ref, 'refs/tags/v') && needs.validate-tag.outputs.is_prerelease == 'false'
141+
if: startsWith(github.ref, 'refs/tags/') && needs.validate-tag.outputs.is_prerelease == 'false'
133142

134143
steps:
135144
- name: Update Packagist
136145
run: |
137146
curl -XPOST -H'content-type:application/json' \
138147
"https://packagist.org/api/update-package?username=${{ secrets.PACKAGIST_USERNAME }}&apiToken=${{ secrets.PACKAGIST_TOKEN }}" \
139-
-d'{"repository":{"url":"https://github.com/${{ github.repository }}"}}'
148+
-d'{"repository":{"url":"https://github.com/${{ github.repository }}"}}'

CHANGELOG.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
11
# Release Notes
22

3-
## [Unreleased](https://github.com/Thavarshan/fetch-php/compare/v3.4.1...HEAD)
3+
## [Unreleased](https://github.com/Thavarshan/fetch-php/compare/3.5.0...HEAD)
4+
5+
## [v3.5.0](https://github.com/Thavarshan/fetch-php/compare/3.4.1...3.5.0) - 2026-06-06
6+
7+
### Added
8+
9+
- Introduced a custom VitePress home page and shared docs theme components for a clearer first-run documentation experience.
10+
- Added lucide-powered feature icons and refreshed documentation examples around the JavaScript-style Fetch PHP API.
11+
12+
### Changed
13+
14+
- Updated Matrix helper imports throughout the README and documentation to consistently use the `Matrix\Support` namespace.
15+
- Refined homepage copy and feature descriptions to better explain Fetch PHP's JavaScript-like request flow, async helpers, caching, retries, debugging, and testing utilities.
16+
- Hardened the tag release workflow now that package versions are derived from Git tags instead of a `version` field in `composer.json`.
17+
- Expanded the tag release workflow setup to match package extension requirements and run the release test suite with `NO_NETWORK=1`.
18+
19+
### Fixed
20+
21+
- Corrected stale GitHub/support links in the installation guide and repository support metadata.
22+
- Removed a stale cache comment that referenced the old `ManagesCache` trait name.
423

524
## [v3.4.1](https://github.com/Thavarshan/fetch-php/compare/v3.4.0...v3.4.1) - 2025-12-14
625

docs/guide/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ require __DIR__ . '/vendor/autoload.php';
3232

3333
While we strongly recommend using Composer, you can also manually download the package and include it in your project:
3434

35-
1. Download the latest release from [GitHub](https://github.com/jerome/fetch-php/releases)
35+
1. Download the latest release from [GitHub](https://github.com/Thavarshan/fetch-php/releases)
3636
2. Extract the files into your project directory
3737
3. Set up your own autoloading system or include files manually
3838

src/Fetch/Cache/CacheControl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function shouldCache(ResponseInterface $response, bool $isSharedCache = f
100100
}
101101

102102
// Check response status code - using RFC 7234 recommended cacheable status codes
103-
// This list matches the default cache_status_codes in ManagesCache trait
103+
// This list matches CacheManager's default cache_status_codes option.
104104
$status = $response->getStatusCode();
105105
$cacheableStatuses = [200, 203, 204, 206, 300, 301, 404, 410];
106106

0 commit comments

Comments
 (0)