New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@easypost/api

Package Overview
Dependencies
Maintainers
6
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@easypost/api - npm Package Versions

1
9

5.0.0

Diff

Changelog

Source

v5.0.0 (2022-04-13)

Breaking Changes

  • Bumps the minimum version of Node to v10
  • Removes build targets of 0.10, 6, and 8, the library is now only published under a single bundled easypost package instead of separate bundled assets per version
  • Bumps all dependencies to the most recent compatible versions that still support Node 10, the library is now buildable on Node 16+
  • Removed retrieveRates() method because the shipment object already has rates. If you need to get new rates for a shipment, please use regenerateRates() method instead
  • Removed enable() and disable() methods in the apiKey class. Please use this functionality through EasyPost website
  • Removed the deprecated options.useCookie param. Please use options.useProxy instead
  • Removed add_shipment and remove_shipment from the Batch object which could lead to confusion as the API documentation only describes adding/removing as an array. If you need to add or remove a single shipment from a batch, use the already existing add_shipments and remove_shipments and pass your single shipment into an array.
  • The responses from the /all endpoints are no longer unwrapped and now properly follow the documentation where records will be wrapped in their respective object key
    • This now corrects the location of the has_more key which allows for pagination

Features

  • Adds support to one-call buy an order
  • Adds the Nodejs version in use to the User-Agent header on requests
  • Adds support to update the brand for a user
  • Adds retrieveMe() convenience function that retrieves the authenticated user without the need to specify an ID
  • Adds address.verifyAddress() and Address.createAndVerify() functions
  • Adds Batch.createAndBuy() function
  • Adds Refund class which has Refund.save(), Refund.all(), and Refund.retrieve() functions

Bug Fixes

  • Fixes delivery_date property typo on Rate object
  • Fixes customs_item.value to be a number instead of a string
  • Lowered the default timeout of requests from 120 seconds to 60 seconds

Chores

  • Removes @easypost/build and instead uses Webpack directly to build the project
    • The project is now only built for node and may not provide browser compatible code. If you require browser compatible Javascript, we suggest you build from source
  • Adds prettier and formats the entire project
  • Adds comprehensive test suite with Pollyjs covering every interface of the client library
  • Adds jsdoc style info to each method
jontsai
published 4.0.0 •

Changelog

Source

v4.0.0 (2021-10-06)

  • JSON encodes POST bodies instead of form encoding them by default
  • Adds support for tax_identifiers
  • The regenerateRates method now makes a post request to re-rate a shipment. The new retrieveRates will simply retrieve the rates of a shipment without re-rating
  • Ran npm audit fix to bump patch versions of dependencies
jontsai
published 3.11.2 •

Changelog

Source

v3.11.2 (2021-06-11)

  • Corrects the usps_zone propType from integer to number
jontsai
published 3.11.1 •

Changelog

Source

v3.11.1 (2021-06-11)

  • Re-package to fix missing file
  • add "prepublishOnly" script and ignore all build assets (#177)
  • docs: adds info about built docs to README
jontsai
published 3.11.0 •

Changelog

Source

v3.11.0 (2021-06-10)

  • Adds SmartRate functionality to the Shipments object (available by calling getSmartrates() on a shipment)
  • Adds missing declaration and restriction_comments propTypes to the customsInfo object
  • Changes the usps_zone propType from a string to an integer to match what is returned from the API
  • Bumped dependencies
roguelazer
published 3.10.1 •

Changelog

Source

v3.10.1 (2021-01-12)

  • Re-package to fix missing file
roguelazer
published 3.10.0 •

Changelog

Source

v3.10.0 (2021-01-12)

  • Added events methods
  • Added various code examples
  • Added rate object
  • Removed various old code
  • Updated tests
  • Restored support for Node 6.x
  • Bumped many dependencies
  • Swapped out Travis CI for GitHub Actions
roguelazer
published 3.9.1 •

Changelog

Source

v3.9.1 (2020-06-09)

  • Bump websocket-extensions to 0.1.4
kevinfunk
published 3.8.1 •

kevinfunk
published 3.8.0 •

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