Releases: EasyPost/easypost-node
Releases · EasyPost/easypost-node
v5.2.0
- Adds the
EndShipperBeta class withsave(),retrieve(), andall()functions - Bumps patch versions of dependencies
v5.1.0
- Adds a
lowestRate()function to Orders and Pickups - Adds a
Shipment.getLowestSmartrate()andshipment.lowest_smartrate()functions - Adds an error message to
lowestRate()functions when no lowest rate can be found - Adds beta Referral class for the new Partner White Label API with these new functions:
create(),update_email(),all(), andadd_credit_card() - Fixes API error parsing by first trying to additional error message fields before falling back to the current configured fields
v5.0.0
Breaking Changes
- Bumps the minimum version of Node to
v10 - Removes build targets of
0.10,6, and8, the library is now only published under a single bundledeasypostpackage 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()anddisable()methods in the apiKey class. Please use this functionality through EasyPost website - Removed the deprecated
options.useCookieparam. Please useoptions.useProxyinstead - Removed
add_shipmentandremove_shipmentfrom 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 existingadd_shipmentsandremove_shipmentsand pass your single shipment into an array. - The responses from the
/allendpoints 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_morekey which allows for pagination
- This now corrects the location of the
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()andAddress.createAndVerify()functions - Adds
Batch.createAndBuy()function - Adds
Refundclass which hasRefund.save(),Refund.all(), andRefund.retrieve()functions
Bug Fixes
- Fixes
delivery_dateproperty typo on Rate object - Fixes
customs_item.valueto be anumberinstead of astring - Lowered the default timeout of requests from 120 seconds to 60 seconds
Chores
- Removes
@easypost/buildand instead uses Webpack directly to build the project- The project is now only built for
nodeand may not provide browser compatible code. If you require browser compatible Javascript, we suggest you build from source
- The project is now only built for
- Adds
prettierand formats the entire project - Adds comprehensive test suite with Pollyjs covering every interface of the client library
- Adds jsdoc style info to each method
v4.0.0
- JSON encodes POST bodies instead of form encoding them by default
- Adds support for
tax_identifiers - The
regenerateRatesmethod now makes a post request to re-rate a shipment. The newretrieveRateswill simply retrieve the rates of a shipment without re-rating - Ran
npm audit fixto bump patch versions of dependencies
v3.11.2
v3.11.1
v3.11.0
- Adds
SmartRatefunctionality to theShipmentsobject (available by callinggetSmartrates()on a shipment) - Adds missing
declarationandrestriction_commentspropTypes to the customsInfo object - Changes the
usps_zonepropType from a string to an integer to match what is returned from the API - Bumped dependencies
v3.10.1
v3.10.0
- 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
v3.9.0
- Added the ability to retrieve individual user's API keys
- Added the ability to retrieve all address records
- Removed the unimplemented shipment return method
- Security updates to Node modules
- Swapped link for Travis CI from .org to .consumption
- Updated stale unit tests