Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@easypost/api

Package Overview
Dependencies
Maintainers
6
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@easypost/api - npm Package Versions

1
8

6.4.0

Diff

Changelog

Source

v6.4.0 (2023-05-02)

  • Adds retrieveEstimatedDeliveryDate in Shipment service
justintime50
published 6.3.0 •

Changelog

Source

v6.3.0 (2023-04-24)

  • Fixes the Beta client, previously the beta functions were not accessible due to how they were exported. This has now changed so each service is prepended with Beta (eg: BetaCarrierMetadata)
  • Adds CarrierMetadata typescript definitions
justintime50
published 6.2.0 •

Changelog

Source

v6.2.0 (2023-04-18)

  • Adds beta retrieveCarrierMetadata function
  • Adds missing api_keys property to User
  • Improves Error Deserialization to dynamically handle edge cases that have a bad format
  • Adds a helper function to retrieve carrier metadata
justintime50
published 6.1.0 •

Changelog

Source

v6.1.0 (2023-04-04)

  • Add getNextPage function that retrieves the next page of results for a paginated collection
justintime50
published 6.0.0 •

Changelog

Source

v6.0.0 (2023-03-22)

Includes all of the changes made in v6.0.0-rc1 below plus the following:

  • Adds class properties to each model for autocomplete and explicit deserialization
  • Adds missing status_detail to trackers
justintime50
published 6.0.0-rc1 •

Changelog

Source

v6.0.0-rc1 (2023-03-01)

Breaking Changes

  • Bumps minimum Node from 10 to 12
  • Renamed default export API to EasyPostClient
  • Overhauled the data flow of the library
    • Instead of creating a local object and then calling .save() on it to create/update it at the API level, you will pass in the same data as before but to one of either create() or update() functions on the service in question
    • The base service no longer implements all functions and instead each individual service implements its own functions. This means the library namespace won't be cluttered with various notImplemented functions
    • All instance functions (excluding lowestRate) previously called on an object are instead called on a service. (eg: shipment.buy(shipment.lowest_rate()) is now client.Shipment.buy(shipment.id, shipment.lowest_rate())))
      • All functions attached to a service are now async and must be awaited
  • Moved library structure around
    • Introduced /models that contain the EasyPost objects
    • Renamed /resources to /services to better reflect that a service called against an EasyPostClient differs from an API resource, now known as the models
    • Each service file now has _service appended
    • Added /utils which contains both internal_util.js which is not intended for user consumption and util.js which contains public utilities
    • Moved getLowestSmartRate and validateWebook function to util.js as neither of them require the client object to function
  • References of Referral were changed to ReferralCustomer to match the API
  • Bumps major versions of all dependencies
  • Changes the primaryOrSecondary parameter name to priority in billing functions to match the API
  • Empty response functions now return nothing (deleting records, funding a wallet, etc)
  • Explicit type parameter for retrieving all reports removed, include type in generic params dictionary instead.
  • Improves error handling
    • Specific error types for each category of error
    • API error message may be an array rather than a string. Arrays will be concatenated (by comma) and returned as a string.
  • Corrects references of smartrate to SmartRate and smartRate to match the API

New Features

  • Add retrieveStatelessRates and getLowestStatelessRate functions

Bug Fixes

  • Completely overhauled deserialization process, nested objects (eg: rates of shipments, etc) now properly convert to their appropriate EasyPostObject
  • Fixes the verifyAddress function to actually verify an address
  • Fixes a bug that could double wrap or unintentionally wrap the results of an /all API call with the name of the object in question
justintime50
published 5.10.1 •

justintime50
published 5.10.0 •

Changelog

Source

v5.10.0 (2023-01-18)

  • Adds all function to Pickup class to retrieve all pickups
  • Adds retrievePayload and retrieveAllPayloads functions to retrieve payloads for an Event
    • These are static functions on the Event class, so you can call them like easypost.Event.retrieveAllPayloads(eventId)
  • Adds missing Typescript implementations for CustomsInfo, CustomsItem, ScanForm, User, Referral, Rate, CarbonOffset, and Brand (closes #328)
justintime50
published 5.9.0 •

Changelog

Source

v5.9.0 (2023-01-11)

  • Adds new beta billing functionality for ReferralCustomer users
    • addPaymentMethod can add a pre-existing Stripe bank account or credit card to your EasyPost account
    • refundByAmount refunds your wallet by a dollar amount
    • refundByPaymentLog refunds you wallet by a PaymentLog ID
justintime50
published 5.8.0 •

Changelog

Source

v5.8.0 (2022-12-07)

  • Routes requests for creating a carrier account with a custom workflow (eg: FedEx, UPS) to the correct endpoint when using the save function
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc