Skip to content

Commit 6473544

Browse files
committed
chore: prep v7.0.0 for release
1 parent 24801c7 commit 6473544

File tree

4 files changed

+69
-6
lines changed

4 files changed

+69
-6
lines changed

CHANGELOG.md

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

3-
## Next Release
3+
## v7.0.0 (2025-04-29)
4+
5+
See our [Upgrade Guide](UPGRADE_GUIDE.md#upgrading-from-6x-to-70) for more details.
46

57
- Minimum .NET Framework is now v4.7.2
68
- Adds custom webhook headers when creating/updating a webhook
@@ -120,6 +122,8 @@
120122

121123
## v6.0.0 (2023-12-06)
122124

125+
See our [Upgrade Guide](UPGRADE_GUIDE.md#upgrading-from-5x-to-60) for more details.
126+
123127
- No changes since `v6.0.0-rc1`, see below.
124128

125129
## v6.0.0-rc1 (2023-12-06)
@@ -182,6 +186,8 @@
182186

183187
## v5.0.0 (2023-05-15)
184188

189+
See our [Upgrade Guide](UPGRADE_GUIDE.md#upgrading-from-4x-to-50) for more details.
190+
185191
### Breaking Changes
186192

187193
- All API-calling functions on models have been moved to their respective services. For example, `myPickup.Buy()` is now `myClient.Pickup.Buy(myPickup.Id)`.
@@ -277,6 +283,8 @@
277283

278284
## v4.0.0 (2022-10-12)
279285

286+
See our [Upgrade Guide](UPGRADE_GUIDE.md#upgrading-from-3x-to-40) for more details.
287+
280288
The `v4.0.0` release includes all the changes from the release candidate (see `v4.0.0-rc1` below) as well as the following items:
281289

282290
- Improved API error parsing
@@ -368,7 +376,7 @@ The `v4.0.0` release includes all the changes from the release candidate (see `v
368376

369377
## v3.0.0
370378

371-
Upgrading major versions of this project? Refer to the [Upgrade Guide](UPGRADE_GUIDE.md).
379+
See our [Upgrade Guide](UPGRADE_GUIDE.md#upgrading-from-2x-to-30) for more details.
372380

373381
### Breaking Changes
374382

EasyPost.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<metadata>
44
<id>EasyPost-Official</id>
55
<title>EasyPost (Official)</title>
6-
<version>6.9.0</version>
6+
<version>7.0.0</version>
77
<authors>EasyPost</authors>
88
<owners>EasyPost</owners>
99
<projectUrl>https://www.easypost.com</projectUrl>

EasyPost/Properties/VersionInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
// Version information for an assembly must follow semantic versioning
44
// When releasing a release candidate, append a 4th digit being the number of the release candidate
5-
[assembly: AssemblyVersion("6.9.0")]
6-
[assembly: AssemblyFileVersion("6.9.0")]
7-
[assembly: AssemblyInformationalVersion("6.9.0")]
5+
[assembly: AssemblyVersion("7.0.0")]
6+
[assembly: AssemblyFileVersion("7.0.0")]
7+
[assembly: AssemblyInformationalVersion("7.0.0")]

UPGRADE_GUIDE.md

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

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

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

11+
## Upgrading from 6.x to 7.0
12+
13+
### 7.0 High Impact Changes
14+
15+
- [.NET Support](#70-net-support)
16+
- [Error Parsing](#70-error-parsing)
17+
18+
### 7.0 Medium Impact Changes
19+
20+
- [Deprecations](#70-deprecations)
21+
22+
## 7.0 .NET Support
23+
24+
*Likelihood of Impact: **High***
25+
26+
.NET Framework 4.7.2+ now required.
27+
28+
## 7.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+
The `Error` model has been removed since it is unused and we directly assign properties of an error response to the `ApiError` type.
35+
36+
The `PaymentRefund` now uses a list of `FieldError` instead of `Error` for the `errors` field.
37+
38+
## 7.0 Deprecations
39+
40+
The following parameters, functions, and classes have been removed:
41+
42+
- `EasyPost.Models.API.DeliveryDateForZipPairEstimate.EasyPostTimeInTransitData` property (use `EasyPost.Models.API.DeliveryDateForZipPairEstimate.TimeInTransitDetails` instead)
43+
- `EasyPost.Models.API.Options.BillReceiverAccount` property (use `EasyPost.Models.API.Options.Payment` instead)
44+
- `EasyPost.Models.API.Options.BillReceiverPostalCode` property (use `EasyPost.Models.API.Options.Payment` instead)
45+
- `EasyPost.Models.API.Options.BillThirdPartyAccount` property (use `EasyPost.Models.API.Options.Payment` instead)
46+
- `EasyPost.Models.API.Options.BillThirdPartyCountry` property (use `EasyPost.Models.API.Options.Payment` instead)
47+
- `EasyPost.Models.API.Options.BillThirdPartyPostalCode` property (use `EasyPost.Models.API.Options.Payment` instead)
48+
- `EasyPost.Models.API.Rate.EstDeliveryDays` property (use `EasyPost.Models.API.Rate.DeliveryDays` instead)
49+
- `EasyPost.Models.API.SmartRate.EstDeliveryDays` property (use `EasyPost.Models.API.SmartRate.DeliveryDays` instead)
50+
- `EasyPost.Models.API.RateWithEstimatedDeliveryDate.EasyPostTimeInTransitData` property (use `EasyPost.Models.API.RateWithEstimatedDeliveryDate.TimeInTransitDetails` instead)
51+
- `EasyPost.Models.API.RecommendShipDateForShipmentResult.EasyPostTimeInTransitData` property (use `EasyPost.Models.API.RecommendShipDateForShipmentResult.TimeInTransitDetails` instead)
52+
- `EasyPost.Models.API.ShipDateForZipPairRecommendation.EasyPostTimeInTransitData` property (use `EasyPost.Models.API.ShipDateForZipPairRecommendation.TimeInTransitDetails` instead)
53+
- `EasyPost.Models.API.Tracker.TrackingUpdatedAt` property (use `EasyPost.Models.API.Tracker.UpdatedAt` instead)
54+
- `EasyPost.Models.API.TimeInTransitDetails` class (use `EasyPost.Models.API.TimeInTransitDetailsForDeliveryDateEstimate` instead)
55+
- `EasyPost.Parameters.Tracker.CreateList` class (related function was removed in v6.8.0)
56+
- `EasyPost.Constants.CarrierAccounts.FedExAccount` variable (use `EasyPost.Models.API.CarrierAccountType.FedEx` instead)
57+
- `EasyPost.Constants.CarrierAccounts.UpsAccount` variable (use `EasyPost.Models.API.CarrierAccountType.Ups` instead)
58+
1059
## Upgrading from 5.x to 6.0
1160

61+
**NOTICE:** v6 is deprecated.
62+
1263
### 6.0 High Impact Changes
1364

1465
- [.NET Support](#60-net-support)
@@ -95,11 +146,13 @@ purchasedPickup = await myClient.Pickup.Buy(pickup.Id); // need to capture the u
95146
The process of configuring a `Client` has been overhauled to allow for more flexibility in the configuration process.
96147

97148
Old method:
149+
98150
```csharp
99151
Client myClient = new Client("my_api_key");
100152
```
101153

102154
New method:
155+
103156
```csharp
104157
Client myClient = new Client(new ClientConfiguration("my_api_key"));
105158
```
@@ -151,11 +204,13 @@ Some exception types have been consolidated or altered:
151204
The Parameter objects introduced in [`v4.5.0`](CHANGELOG.md#v450-2023-03-22) have been moved out of beta. As a result, the classes are available in a different namespace.
152205

153206
Old namespace:
207+
154208
```csharp
155209
var parameters = new EasyPost.BetaFeatures.Parameters.Addresses.Create();
156210
```
157211

158212
New namespace:
213+
159214
```csharp
160215
var parameters = new EasyPost.Parameters.Address.Create();
161216
```

0 commit comments

Comments
 (0)