Skip to content

v2.0.0-beta.2

Pre-release
Pre-release

Choose a tag to compare

@loevgaard loevgaard released this 04 Nov 21:26
c57fea0

Changes since v2.0.0-beta.1:

Added

  • A pickup point can be kept, e.g. the one a customer chose in a checkout, and sent later as a sales order's service point (#13):
    • PickupPoint implements JsonSerializable with its typed fields. json_encode() of a pickup point no longer includes raw.
    • PickupPoint::fromArray() rebuilds a pickup point from that JSON. It throws an \InvalidArgumentException when a key is missing or has the wrong type.
    • ServicePoint::fromPickupPoint() turns a pickup point into a sales order's service point.

Maintenance

  • Raised the mutation score (MSI) from 73.6% → 97.8% (covered-code MSI 74.4% → 98.6%). CI now enforces minMsi 97 / minCoveredMsi 98. Also removed a few redundant no-op lines in Client, ResponseAwareException and WebhookParser, with no behaviour change (#11).
  • Fixed the mutation-testing badge. It pointed at the deleted master branch, so no score was ever uploaded for 2.x (#11).

Upgrading from 1.x

See UPGRADE.md for the full migration guide, which covers every breaking change.

Full Changelog: v2.0.0-beta.1...v2.0.0-beta.2