Skip to content

Commit

Permalink
Merge pull request #135 from EasyPost/v5.0.0
Browse files Browse the repository at this point in the history
chore: prepare v5.0.0 for release
  • Loading branch information
Justintime50 authored Feb 9, 2022
2 parents 89cc798 + d328949 commit a65ce47
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 114 deletions.
139 changes: 55 additions & 84 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,165 +1,148 @@
## CHANGELOG
# CHANGELOG

### NEXT RELEASE
## v5.0.0 (2022-02-09)

* Bumped minimum PHP version supported from 5.3 to 7.3
* Adds the `update_brand()` method on the user object
* Bumped minimum PHP version supported from `5.3` to `7.3`
* Adds a full test suite, all functions are now tested for each object
* Adds class properties to every class (closes #96)
* Updates and adds docblocks to each function throughout the library
* Switched from `array()` syntax to `[]` throughout the project
* Adds the `update_brand()` method on the `User` object
* Set a default timeout of 30 seconds for connections and 60 seconds for requests
* Fixes the tracker `create_list()` method's encoding to properly send through the parameters
* Adds the PHP version used to the `user-agent` header
* Fixes the `create_list()` Tracker and `create_and_buy()` Batch method's encodings to properly send through the parameters
* Adds the PHP version used to the `User-Agent` header
* Removed unusable `all()` method on the `Parcel` object
* Removed unpaginated `all()` method on the `Order`, `CustomsInfo`, and `CustomsItem` objects
* Removed the `get_rates()` method on the Shipment object since a Shipment object already has rates. If you need new rates for a shipment, use the `regenerate_rates()` function instead
* Removed the `get_rates()` method on the Shipment object since a Shipment object already has rates. If you need new rates for a shipment, use the `regenerate_rates()` method instead
* Ignores return types for now on `ArrayAccess` and `Iterator` methods (closes #124)
* Bumps dev dependencies
* Various other small improvements and bug fixes

### 4.0.2 2021-10-20
## v4.0.2 (2021-10-20)

* Further fixes JSON encoding by dropping null key/values, sending values as strings where necessary (returning to previous behavior), and removing the `array_filter` from the previous release

### 4.0.1 2021-10-08
## v4.0.1 (2021-10-08)

* Properly handles empty lists and objects with JSON encoding (closes #114)

### 4.0.0 2021-10-06
## v4.0.0 (2021-10-06)

* JSON encodes POST bodies instead of form encoding them
* Adds TaxIdentifier support
* Corrects references of `[email protected]` to `[email protected]`
* Bumps patch versions of dependencies

### 3.6.0 2021-06-10
## v3.6.0 (2021-06-10)

* Adds `SmartRate` functionality to the `Shipments` object (available by calling `get_smartrates()` on a shipment)

### 3.5.0 2020-08-09
## v3.5.0 (2020-08-09)

* Added event retrieval methods
* Fixed a bug that did not allow carrier accounts to be deleted
* Fixed a bug that did not allow users to be deleted
* Removed various pieces of old code


### 3.4.5 2020-05-07
## v3.4.5 (2020-05-07)

* Added "Refund" and "Shipment Invoice" to the prefix and type lists


### 3.4.4 2020-03-11
## v3.4.4 (2020-03-11)

* Version bump with updated author


### 3.4.3 2020-03-10
## v3.4.3 (2020-03-10)

* Bumped version in package.json for Packagist
* Updated README with release instructions


### 3.4.2 2020-03-09
## v3.4.2 (2020-03-09)

* Fixed a bug that would not create reports properly
* Added unit tests for reports


### 3.4.1 2018-04-13
## v3.4.1 (2018-04-13)

* Added ability to set connection and response timeouts for all EasyPost actions (thanks mattjanssen!)


### 3.4.0 2017-11-30
## v3.4.0 (2017-11-30)

* Renamed `Object` class `EasyPostObject` since Object is a keyword in PHP7.2


### 3.3.4 2017-05-24
## v3.3.4 (2017-05-24)

* Fixed confusing Pickup example
* Enabled Reports to retrieve without a type parameter
* Use X-Client-User-Agent over X-EasyPost-Client-User-Agent


### 3.3.3 2017-02-14
## v3.3.3 (2017-02-14)

* Added get_rates method to Order objects


### 3.3.2 2017-01-24
## v3.3.2 (2017-01-24)

* Fixed compatibility issues with older PHP versions and the Report class


### 3.3.1 2017-01-19
## v3.3.1 (2017-01-19)

* Fixed Create for ScanForms


### 3.3.0 2017-01-17
## v3.3.0 (2017-01-17)

* Added basic CRUD methods for Webhooks


### 3.2.1 2016-12-14
## v3.2.1 (2016-12-14)

* Fixed error in Util.php they may have affected shipment_reports retrievals


### 3.2.0 2016-12-12
## v3.2.0 (2016-12-12)

* Added ability to create Report objects for shipment, tracker and payment_log reports


### 3.1.3 2016-10-25
## v3.1.3 (2016-10-25)

* Fixed warning message from Address Verify/VerifyStrict


### 3.1.2 2016-09-16
## v3.1.2 (2016-09-16)

* Added create_list for trackers


### 3.1.1 2016-07-21
## v3.1.1 (2016-07-21)

* Added Insurance support


### 3.1.0 2016-06-02
## v3.1.0 (2016-06-02)

* Renamed "Resource" class to "EasypostResource" since Resource is reserved in PHP7 (thanks ccovey!)


### 3.0.3 2016-02-22
## v3.0.3 (2016-02-22)

* Added ability to create top-level users


### 3.0.2 2016-01-29
## v3.0.2 (2016-01-29)

* Added 'verify' and 'verify_strict' options to Address creation


### 3.0.1 2016-01-05
## v3.0.1 (2016-01-05)

* Updated ReadMe (thanks browner12!)
* Added DocBlock annotations to all methods (thanks browner12!)


### 3.0.0 2015-12-18
## v3.0.0 (2015-12-18)

* Fixed Shipment Retrieve by tracking_code


### 2.1.2 2015-11-04
## v2.1.2 (2015-11-04)

* Added Tracker.all example, and updated some old examples


### 2.1.1 2015-07-01
## v2.1.1 (2015-07-01)

* Removed cURL options for SSL version, timeout, and connect timeout. The
default values for these options are acceptable.


### 2.1.0 2015-04-10
## v2.1.0 (2015-04-10)

* Added User and CarrierAccount resources and examples for each.
* Modified EasyPost Object setter to record the change in the top level parent
Expand All @@ -175,66 +158,54 @@ display errors in development.
* Added support for additional HTTP methods PATCH and PUT.
* EasyPost Objects are now Iterable.


### 2.0.12 2015-02-04
## v2.0.12 (2015-02-04)

* Added pickup class
* Added pickup example


### 2.0.11 2014-11-04
## v2.0.11 (2014-11-04)

* Added tracker to shipment buy response
* Updated tracker examples


### 2.0.10 2014-07-07
## v2.0.10 (2014-07-07)

* Added Item, Container, and Order resources.


### 2.0.9 2014-04-08
## v2.0.9 (2014-04-08)

* Updated the CA cert bundle.


### 2.0.8 2013-12-29
## v2.0.8 (2013-12-29)

* Added the ability to add negative filters to Shipment->lowest_rate by starting them with an exclamation mark.


### 2.0.7 2013-11-08
## v2.0.7 (2013-11-08)

* Added endpoint to create shipment from tracking code.


### 2.0.6 2013-10-21
## v2.0.6 (2013-10-21)

* Added Event resource for webhooks.


### 2.0.5 2013-08-30
## v2.0.5 (2013-08-30)

* API Addition: Batch.buy method added. Trigger the purchasing of labels after a successful Batch.create.
* API Addition: Batch.scan_form method added. Quickly generate a scan_form for an entire batch.


### 2.0.4 2013-07-31
## v2.0.4 (2013-07-31)

* API Addition: Tracker objects added. Trackers can be used to register any tracking code with EasyPost webhooks.


### 2.0.3 2013-07-16
## v2.0.3 (2013-07-16)

* Bug fix: error messages should no longer be truncated to their first character.


### 2.0.2 2013-07-05
## v2.0.2 (2013-07-05)

* Added function to Address to all creating and verifying at the same time.


### 2.0.1 2013-07-01
## v2.0.1 (2013-07-01)

* Add label function to Shipment to request specific label file_formats (pdf, epl2, zpl).
* Add insure function to Shipment. Add insurance to any shipment in one call!
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,6 @@ echo $shipment->postage_label->label_url;

Up-to-date documentation can be found at: https://www.easypost.com/docs.

## Releasing

1. Update the `VERSION` file
1. Update the `CHANGELOG` file
1. Update the `VERSION` constant in the `EasyPost.php` file
1. Update the version in the `composer.json` file
1. Create a git tag with the new version

[Packagist](https://packagist.org) should automatically pull in the new tag if the above was done properly.

## Testing & Development

**NOTE: Recording VCR cassettes only works with PHP 7.3 or 7.4. Once recorded, tests can be run on PHP 7 or 8.
Expand Down
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@
"EasyPost\\Test\\": "test/EasyPost/"
}
},
"version": "4.0.2"
"version": "5.0.0"
}
Loading

0 comments on commit a65ce47

Please sign in to comment.