Skip to content

Releases: EasyPost/easypost-go

v3.2.0

11 Oct 17:38
5466456
Compare
Choose a tag to compare
  • Add GetAPIKeysForUser under API Key service to retrieve API keys for a specific user ID

v3.1.0

29 Sep 20:01
52d8ebb
Compare
Choose a tag to compare
  • Adds CommercialInvoiceSignature and CommercialInvoiceLetterhead shipment options

v3.0.1

05 Sep 21:48
335017e
Compare
Choose a tag to compare
  • Fix endpoint for creating a FedEx Smartpost carrier account

v3.0.0

16 Aug 21:06
Compare
Choose a tag to compare

What's Changed

  • Drop support for Go 1.15
    • Minimum supported version is now Go 1.16
  • Adds specific error types for API and local errors
    • All errors inherit the LibraryError interface
      • API errors inherit the APIError interface, which inherits the LibraryError interface
      • Local errors inherit the LocalError interface, which inherits the LibraryError interface
    • Common error messages are now available as constants for parsing (e.g. regex)
  • All uses of *time.Time have been replaced with new easypost.DateTime class
    • DateTime is a wrapper around time.Time that handles unexpected date formats from the API
  • Previously-marked deprecated functions and structs have been removed:
    • ListReportOptions struct -> use ListOptions struct instead
    • Beta carrier metadata functions -> use non-beta functions instead
    • LowestRate shipment functions -> use LowestShipmentRate functions instead
    • CreateWebhook function -> use CreateWebhookWithDetails function instead
    • EnableWebhook function -> use UpdateWebhook function instead
  • TrackingCodes string array on ListTrackersOptions struct is now TrackingCode single string
  • AddShipmentsToBatch and RemoveShipmentsFromBatch functions now explicitly accept Shipment structs instead of generic interface{} types
    • Functions will no longer accept solely IDs; users will need to provide whole Shipment structs

Please view our Upgrade Guide for details on how to upgrade from 2.x to 3.0.

Full Changelog: v2.20.0...v3.0.0

v2.20.0

28 Jul 16:02
efac0bc
Compare
Choose a tag to compare
  • Adds hooks to introspect the request and response of an API call (see HTTP Hooks section of the README for more information)

v2.19.0

06 Jun 21:27
b00de5a
Compare
Choose a tag to compare
  • Migrates Carrier Metadata to GA (now available via GetCarrierMetadata)

v2.18.0

02 May 15:59
0ffac80
Compare
Choose a tag to compare
  • Adds GetShipmentEstimatedDeliveryDate and GetShipmentEstimatedDeliveryDateWithContext functions

v2.17.0

26 Apr 20:01
8d6db2f
Compare
Choose a tag to compare
  • Adds SuppressETD to ShipmentOptions

v2.16.0

26 Apr 16:56
f588b60
Compare
Choose a tag to compare
  • Adds missing CustomsInfo to the Order struct

v2.15.0

19 Apr 15:10
91511c3
Compare
Choose a tag to compare
  • Adds BetaGetCarrierMetadata, BetaGetCarrierMetadataWithCarriers, BetaGetCarrierMetadataWithTypes, and BetaGetCarrierMetadataWithCarriersAndTypes function
  • The Message attribute of an APIError is now an interface{} rather than a string, due to potential inconsistent data structure from the API response
    • Behind-the-scenes, the message portion of the JSON response is transformed to a concatenated string. Users should be able to safely cast the Message attribute to a string when accessing it via myApiError.Message.(string)