Skip to content

Commit cd28e1d

Browse files
authored
Merge pull request #79 from php-http/prepare-release
prepare release
2 parents 8e63e0f + 1464922 commit cd28e1d

File tree

3 files changed

+26
-16
lines changed

3 files changed

+26
-16
lines changed

Diff for: .github/workflows/Build-Test.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Tests
33
# Run this workflow every time a new commit pushed to your repository
44
on:
55
push:
6+
branches:
7+
- '*.x'
8+
pull_request:
69

710
jobs:
811
tests:
@@ -13,7 +16,7 @@ jobs:
1316
fail-fast: false
1417
matrix:
1518
operating-system: [ubuntu-20.04]
16-
php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1']
19+
php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
1720
include:
1821
- operating-system: ubuntu-16.04
1922
php-versions: '7.1'
@@ -29,7 +32,7 @@ jobs:
2932
steps:
3033
# Checks out a copy of your repository on the ubuntu machine
3134
- name: Checkout code
32-
uses: actions/checkout@v2
35+
uses: actions/checkout@v3
3336

3437
- name: Setup cache environment
3538
id: extcache
@@ -47,13 +50,13 @@ jobs:
4750
restore-keys: ${{ steps.extcache.outputs.key }}
4851

4952
- name: Cache Composer Dependencies
50-
uses: actions/cache@v1
53+
uses: actions/cache@v3
5154
with:
5255
path: ~/.composer/cache/files
5356
key: dependencies-composer-${{ hashFiles('composer.json') }}
5457

5558
- name: Setup PHP Action
56-
uses: shivammathur/setup-php@2.8.0
59+
uses: shivammathur/setup-php@3
5760
with:
5861
php-version: ${{ matrix.php-versions }}
5962
extensions: ${{ env.extensions }}
@@ -65,7 +68,7 @@ jobs:
6568
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
6669

6770
- name: Cache dependencies
68-
uses: actions/cache@v2
71+
uses: actions/cache@v3
6972
with:
7073
path: ${{ steps.composer-cache.outputs.dir }}
7174
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}

Diff for: CHANGELOG.md

+18-6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## 2.3.0 - 2023-04-28
9+
10+
### Added
11+
12+
- Test with PHP 8.2
13+
14+
### Fixed
15+
16+
- This client needs a PSR-17 factories implementation. Instead of requiring an implementation,
17+
previous versions only required the interfaces which could lead to a non-functional installation.
18+
Fixed by requiring `psr/http-factory-implementation`.
19+
820
## 2.2.1 - 2021-12-10
921

1022
### Added
@@ -33,12 +45,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3345
### Changed
3446

3547
- Minimal PHP version changed to 7.1.
36-
- `Client::__construct` now expects PSR-17 factories instead of HTTPlug ones.
48+
- `Client::__construct` now expects PSR-17 factories instead of HTTPlug ones.
3749

3850
### Added
3951

4052
- #41: Support [PSR-17](https://www.php-fig.org/psr/psr-17/) and
41-
[PSR-18](https://www.php-fig.org/psr/psr-18/).
53+
[PSR-18](https://www.php-fig.org/psr/psr-18/).
4254

4355

4456
## 1.7.1 - 2018-03-26
@@ -58,7 +70,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5870

5971
### Fixed
6072

61-
- #29: Request not using CURLOPT_POSTFIELDS have content-length set to
73+
- #29: Request not using CURLOPT_POSTFIELDS have content-length set to
6274

6375
### Changed
6476

@@ -94,7 +106,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
94106
### Changed
95107

96108
- Request body can be send with any method except GET, HEAD and TRACE.
97-
- #25: Make discovery a hard dependency.
109+
- #25: Make discovery a hard dependency.
98110

99111

100112
## 1.4.2 - 2016-06-14
@@ -126,7 +138,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
126138

127139
### Removed
128140

129-
- #13: Remove HeaderParser.
141+
- #13: Remove HeaderParser.
130142

131143

132144
## 1.2 - 2016-03-09
@@ -163,7 +175,7 @@ First stable release.
163175
### Changed
164176

165177
- Root namespace changed from `Http\Curl` to `Http\Client\Curl`.
166-
- Main client class name renamed from `CurlHttpClient` to `Client`.
178+
- Main client class name renamed from `CurlHttpClient` to `Client`.
167179
- Minimum required [php-http/discovery](https://packagist.org/packages/php-http/discovery)
168180
version changed to 0.5.
169181

Diff for: composer.json

-5
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,5 @@
4848
"scripts": {
4949
"test": "vendor/bin/phpunit",
5050
"test-ci": "vendor/bin/phpunit --coverage-clover build/coverage.xml"
51-
},
52-
"extra": {
53-
"branch-alias": {
54-
"dev-master": "2.x-dev"
55-
}
5651
}
5752
}

0 commit comments

Comments
 (0)