Skip to content

Commit 6b160e8

Browse files
committed
chore: prep v8.0.0 for release
1 parent 6a74138 commit 6b160e8

5 files changed

Lines changed: 51 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 3 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
- Adds `WebhookCustomHeader` model, allowing `custom_headers` to be passed when creating/updating a webhook
68
- Adds the following functions to assist ReferralCustomers add credit cards and bank accounts:
@@ -11,6 +13,7 @@
1113
- Adds missing tracker props
1214
- Adds `tracking_codes` param to tracker index endpoint
1315
- Routes `AmazonShippingAccount` to the correct endpoint
16+
- Corrects payload wrapping for updating a webhook
1417
- Fixes error parsing
1518
- Allows for alternative format of `errors` field (previously we deserialized the `errors` field into a list of `Error` objects; however, sometimes the errors are simply a list of strings. This change make the `errors` field a list of `Object` allowing for either the new `FieldError` object or a list of strings. Users will need to check for the type of error returned and handle appropriately)
1619
- Removed the unused `Error` model
@@ -23,7 +26,6 @@
2326
- String overload for `shipment.lowestSmartRate`, 3rd param requires a valid `SmartrateAccuracy`
2427
- `user.apiKeys` (use `apiKey.retrieveApiKeysForUser` instead)
2528
- `utilities.getLowestSmartRate` (use `utilities.findLowestSmartrate` instead)
26-
- Corrects payload wrapping for updating a webhook
2729
- Bumps dependencies
2830

2931
## v7.4.4 (2025-01-03)
@@ -79,6 +81,8 @@
7981

8082
## v7.0.0 (2023-12-06)
8183

84+
See our [Upgrade Guide](UPGRADE_GUIDE.md#upgrading-from-6x-to-70) for more details.
85+
8286
- Removes `withCarbonOffset` parameter from `create`, `buy`, and `regenerateRates` functions of the Shipment service as EasyPost now offers Carbon Neutral shipments by default for free
8387
- Removes the undocumented `createAndBuy` function from the Batch service. The proper usage is to create a batch first and buy it separately
8488
- Changes return type of `all()` in webhook service from `WebhookCollection` to `a list of webhooks`
@@ -149,6 +153,8 @@
149153

150154
## v6.0.0 (2023-01-05)
151155

156+
See our [Upgrade Guide](UPGRADE_GUIDE.md#upgrading-from-5x-to-60) for more details.
157+
152158
Includes all the changes from `v6.0.0-rc1` listed below in addition to the following:
153159

154160
- All constants are now defined in the top-level `Constants` class (`com.easypost.Constants`)
@@ -292,7 +298,7 @@ Includes all the changes from `v6.0.0-rc1` listed below in addition to the follo
292298

293299
## v5.0.0 (2022-01-14)
294300

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

297303
- Bump minimum Java version from 1.5 to 8
298304
- Changed PUT/POST request bodies from url-form encoded to JSON encoded

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Add this to your project's POM:
1616
<dependency>
1717
<groupId>com.easypost</groupId>
1818
<artifactId>easypost-api-client</artifactId>
19-
<version>7.4.4</version>
19+
<version>8.0.0</version>
2020
</dependency>
2121
```
2222

@@ -25,7 +25,7 @@ Add this to your project's POM:
2525
Add this to your project's build file:
2626

2727
```groovy
28-
implementation "com.easypost:easypost-api-client:7.4.4"
28+
implementation "com.easypost:easypost-api-client:8.0.0"
2929
```
3030

3131
**NOTE:** [Google Gson](http://code.google.com/p/google-gson/) is required.

UPGRADE_GUIDE.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,50 @@
22

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

5+
- [Upgrading from 7.x to 8.x](#upgrading-from-7x-to-80)
56
- [Upgrading from 6.x to 7.x](#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

10+
## Upgrading from 7.x to 8.0
11+
12+
### 8.0 High Impact Changes
13+
14+
- [Error Parsing](#80-error-parsing)
15+
16+
### 8.0 Medium Impact Changes
17+
18+
- [Deprecations](#80-deprecations)
19+
20+
## 8.0 Error Parsing
21+
22+
*Likelihood of Impact: **High***
23+
24+
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.
25+
26+
The `Error` model has been removed since it is unused and we directly assign properties of an error response to the `ApiError` type.
27+
28+
The `BetaPaymentRefund` now uses a list of `FieldError` instead of `Error` for the `errors` field.
29+
30+
See the `CHANGELOG` for more details.
31+
32+
## 8.0 Deprecations
33+
34+
*Likelihood of Impact: **Medium***
35+
36+
The following deprecated functions have been removed:
37+
38+
- `TimeInTransit.getSmartRateAccuracy` (use `TimeInTransit.getSmartrateAccuracy` instead)
39+
- `paymentMethod.all` (use `billing.retrievePaymentMethods` instead)
40+
- `shipment.getSmartrates` (use `shipment.smartrates` instead)
41+
- String overload for `shipment.lowestSmartRate`, 3rd param requires a valid `SmartrateAccuracy`
42+
- `user.apiKeys` (use `apiKey.retrieveApiKeysForUser` instead)
43+
- `utilities.getLowestSmartRate` (use `utilities.findLowestSmartrate` instead)
44+
945
## Upgrading from 6.x to 7.0
1046

47+
**NOTICE:** v7 is deprecated.
48+
1149
### 7.0 High Impact Changes
1250

1351
- [Carbon Offset Removed](#70-carbon-offset-removed)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.4.4
1+
8.0.0

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<groupId>com.easypost</groupId>
77
<artifactId>easypost-api-client</artifactId>
88

9-
<version>7.4.4</version>
9+
<version>8.0.0</version>
1010
<packaging>jar</packaging>
1111

1212
<name>com.easypost:easypost-api-client</name>

0 commit comments

Comments
 (0)