Skip to content

Commit 6f47eb6

Browse files
authored
Prep v4.0.0 release (#204)
1 parent 2fe3489 commit 6f47eb6

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CHANGELOG
22

3-
## Next major release
3+
## v4.0.0 (2023-12-06)
44

55
- Removes the undocumented `CreateAndBuy` function from the Batch service. The proper usage is to create a batch first and buy it separately
66
- Removed `CarbonOffset` parameter from `createShipmentRequest`, `buyShipmentRequest`, and `buyShipmentRequest` structs as EasyPost now offers Carbon Neutral shipments by default for free

UPGRADE_GUIDE.md

+18
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,29 @@
22

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

5+
* [Upgrading from 3.x to 4.0](#upgrading-from-3x-to-40)
56
* [Upgrading from 2.x to 3.0](#upgrading-from-2x-to-30)
67
* [Upgrading from 1.x to 2.0](#upgrading-from-1x-to-20)
78

9+
## Upgrading from 3.x to 4.0
10+
11+
### 4.0 Low Impact Changes
12+
13+
* [Carbon Offset Removed](#40-carbon-offset-removed)
14+
* [CreateAndBuy() Batch Function Removed](#40-createandbuy-batch-function-removed)
15+
16+
### 4.0 Carbon Offset Removed
17+
18+
EasyPost now offers Carbon Neutral shipments by default for free! Because of this, there is no longer a need to specify if you want to offset the carbon footprint of a shipment. The `CarbonOffset` field from `createShipmentRequest`, `buyShipmentRequest`, and `buyShipmentRequest` structs have been removed as a result. This is a high-impact change for those using `EndShippers` as the function interfaces have changed. You will need to inspect the callsites to create and buy shipments to ensure that the EndShipper parameter is being passed in the correct place now that the `CarbonOffset` field has been removed from the structs.
19+
20+
### 4.0 CreateAndBuy Batch Function Removed
21+
22+
The `CreateAndBuy` Batch endpoint has been deprecated and removed from the library. The correct procedure is to first create a batch and then purchase it with two separate API calls.
23+
824
## Upgrading from 2.x to 3.0
925

26+
**NOTICE:** v3 is deprecated.
27+
1028
### 3.0 High Impact Changes
1129

1230
* [Importing the Library](#30-importing-the-library)

version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
package easypost
22

3-
const Version = "3.2.0"
3+
const Version = "4.0.0"

0 commit comments

Comments
 (0)