Skip to content

v2.0.0-alpha

Pre-release
Pre-release

Choose a tag to compare

@loevgaard loevgaard released this 08 Jun 12:50

First Sylius 2.x release of the plugin — alpha, for testing. APIs may still change before the stable 2.0.0.

Highlights

  • Sylius 2.x support — requires sylius/sylius ^2.0, PHP >=8.2, Symfony ^6.4 || ^7.4.
  • Async, framework-free checkout chooser. Pickup points load asynchronously after the shipping page renders, so a slow or down carrier never blocks checkout. The chooser is a native ES module (<script type="module">, no bundler) that builds its UI by cloning overridable Twig <template>s, and is extensible without forking — subclass PickupPointChooser, listen for the bubbling setono:pickup-point(s):* events, or set window.setonoSyliusPickupPointConfig. See docs/customizing-the-chooser.md.
  • Providers are called live and lazily. Ships DAO, GLS, PostNord and a faker dev provider, each behind its optional setono/*-bundle. Adding your own carrier is a small class — see Creating a custom provider.
  • Leaner internals. The 1.x CachedProvider/LocalProvider, the messenger-driven local DB snapshot, and the Model\PickupPoint* resources / PickupPointCode value object were removed; identity now lives on a plain DTO\PickupPoint.

Upgrading from 1.x

See the full migration guide in UPGRADE.md.

Full Changelog: v1.4.1...v2.0.0-alpha