Skip to content

Commit b4d8f33

Browse files
authored
Merge pull request #361 from EasyPost/v8.0.0
chore: prepare v8.0.0 for release
2 parents 4a162e9 + b309a65 commit b4d8f33

File tree

4 files changed

+46
-8
lines changed

4 files changed

+46
-8
lines changed

CHANGELOG.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# CHANGELOG
22

3-
## Next Release
3+
## v8.0.0 (2025-04-28)
4+
5+
See our [Upgrade Guide](UPGRADE_GUIDE.md#upgrading-from-7x-to-80) for more details.
46

57
- Drops support for PHP 8.0
68
- Adds `custom_headers` property to webhook model
@@ -19,7 +21,7 @@
1921
- Corrects the `param` references to `property` references on all error models
2022
- Adds new `AddressVerificationFieldError` for the `errors` property on a `Verification` model
2123
- Adds missing `suggestion` property to `FieldError`
22-
- Removes deprecated `createList` tracker endpoint function as it is no longer available via API
24+
- Removes deprecated `tracker.createList` endpoint function as it is no longer available via API
2325
- Removes deprecated `user.allApiKeys` and `user.apiKeys`, use `apiKey.all` and `apiKey.retrieveApiKeysForUser` respectively
2426
- Bump deps
2527

@@ -52,7 +54,7 @@
5254

5355
## v7.0.0 (2023-12-01)
5456

55-
Upgrading major versions of this project? Refer to the [Upgrade Guide](UPGRADE_GUIDE.md).
57+
See our [Upgrade Guide](UPGRADE_GUIDE.md#upgrading-from-6x-to-70) for more details.
5658

5759
- Drops support for PHP 7.4
5860
- Adds support for PHP 8.3
@@ -127,7 +129,7 @@ Upgrading major versions of this project? Refer to the [Upgrade Guide](UPGRADE_G
127129

128130
## v6.0.0 (2023-01-05)
129131

130-
Upgrading major versions of this project? Refer to the [Upgrade Guide](UPGRADE_GUIDE.md).
132+
See our [Upgrade Guide](UPGRADE_GUIDE.md#upgrading-from-5x-to-60) for more details.
131133

132134
- Release final version of v6 that contains all the changes in the `v6.0.0-rc1` below
133135

@@ -224,7 +226,7 @@ Upgrading major versions of this project? Refer to the [Upgrade Guide](UPGRADE_G
224226

225227
## v5.0.0 (2022-02-09)
226228

227-
Upgrading major versions of this project? Refer to the [Upgrade Guide](UPGRADE_GUIDE.md).
229+
See our [Upgrade Guide](UPGRADE_GUIDE.md#upgrading-from-4x-to-50) for more details.
228230

229231
- Bumped minimum PHP version supported from `5.3` to `7.3`
230232
- Adds a full test suite, all functions are now tested for each object
@@ -252,7 +254,7 @@ Upgrading major versions of this project? Refer to the [Upgrade Guide](UPGRADE_G
252254

253255
## v4.0.0 (2021-10-06)
254256

255-
Upgrading major versions of this project? Refer to the [Upgrade Guide](UPGRADE_GUIDE.md).
257+
See our [Upgrade Guide](UPGRADE_GUIDE.md#upgrading-from-3x-to-40) for more details.
256258

257259
- JSON encodes POST bodies instead of form encoding them
258260
- Adds TaxIdentifier support

UPGRADE_GUIDE.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,49 @@
22

33
Use the following guide to assist in the upgrade process of the `easypost-php` library between major versions.
44

5+
- [Upgrading from 7.x to 8.0](#upgrading-from-7x-to-80)
56
- [Upgrading from 6.x to 7.0](#upgrading-from-6x-to-70)
67
- [Upgrading from 5.x to 6.0](#upgrading-from-5x-to-60)
78
- [Upgrading from 4.x to 5.0](#upgrading-from-4x-to-50)
89
- [Upgrading from 3.x to 4.0](#upgrading-from-3x-to-40)
910

11+
## Upgrading from 7.x to 8.0
12+
13+
### 8.0 High Impact Changes
14+
15+
- [Drop Support for PHP 8.0](#80-drop-support-for-php-80)
16+
- [Error Parsing](#80-error-parsing)
17+
18+
### 8.0 Medium Impact Changes
19+
20+
- [Deprecations](#80-deprecations)
21+
22+
### 8.0 Drop Support for PHP 8.0
23+
24+
*Likelihood of Impact: **High***
25+
26+
This library now requires PHP 8.1 or greater.
27+
28+
## 8.0 Error Parsing
29+
30+
*Likelihood of Impact: **High***
31+
32+
The `errors` key of an error response can return either a list of `FieldError` objects or a list of strings. The error parsing has been expanded to include both formats. As such, you will now need to check for the format of the `errors` field and handle the errors appropriately for the type that is returned.
33+
34+
## 8.0 Deprecations
35+
36+
*Likelihood of Impact: **Medium***
37+
38+
The following deprecated functions have been removed:
39+
40+
- `tracker.createList` (trackers must be created individually moving forward)
41+
- `user.allApiKeys` (use `apiKey.all`)
42+
- `user.apiKeys` (use `apiKey.retrieveApiKeysForUser`)
43+
1044
## Upgrading from 6.x to 7.0
1145

46+
**NOTICE:** v7 is deprecated.
47+
1248
### 7.0 High Impact Changes
1349

1450
- [Drop Support for PHP 7.4](#70-drop-support-for-php-74)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "easypost/easypost-php",
33
"description": "EasyPost Shipping API Client Library for PHP",
4-
"version": "7.4.2",
4+
"version": "8.0.0",
55
"keywords": [
66
"shipping",
77
"api",

lib/EasyPost/Constant/Constants.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ abstract class Constants
1111
const BETA_API_VERSION = 'beta';
1212

1313
// Library constants
14-
const LIBRARY_VERSION = '7.4.2';
14+
const LIBRARY_VERSION = '8.0.0';
1515
const SUPPORT_EMAIL = 'support@easypost.com';
1616

1717
// Validation

0 commit comments

Comments
 (0)