Skip to content

Commit

Permalink
Merge pull request #356 from EasyPost/v6.0.0-rc1
Browse files Browse the repository at this point in the history
chore: prepare v6.0.0-rc1 for release
  • Loading branch information
Justintime50 authored Mar 1, 2023
2 parents 23d554e + c2bfa04 commit 6f08651
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
18 changes: 13 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# CHANGELOG

## Next Major Release
## v6.0.0-rc1 (2023-03-01)

### Breaking Changes

- Bumps minimum Node from 10 to 12
- Renamed default export `API` to `EasyPostClient`
Expand All @@ -16,19 +18,25 @@
- 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
- Corrects references of `smartrate` to `SmartRate` and `smartRate` to match the API
- 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
- Completely overhauled deserialization process, nested objects (eg: rates of shipments, etc) now properly convert to their appropriate EasyPostObject
- 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

## v5.10.0 (2023-01-18)

- Adds `all` function to `Pickup` class to retrieve all pickups
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ lint:
publish:
npm publish

## publish-next - Publish the built assets to NPM for a release candidate
publish-next:
npm publish --tag next

## release - Cuts a release for the project on GitHub (requires GitHub CLI)
# tag = The associated tag title of the release
release:
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@easypost/api",
"description": "EasyPost Node Client Library",
"version": "5.10.0",
"version": "6.0.0-rc1",
"author": "Easypost Engineering <[email protected]>",
"homepage": "https://easypost.com",
"bin": {
Expand Down

0 comments on commit 6f08651

Please sign in to comment.