Highlights
Strengthen the workflow engine
This release improves the workflow engine's data flow. When resuming workflows, we now compile workflow data (i.e. input and outputs of previous steps) from Redis and Postgres to ensure the most recent workflow execution and associated data are used.
Improve payment account holder flows
This release improves how payment account holders are managed when creating payment sessions in the createPaymentSessionWorkflow
. In this workflow, we create a new payment account holder for the customer on the cart if it doesn't already exist. When the workflow fails in a later step, the compensation flow is triggered, and we now ensure we are only deleting the account holder if it was created as part of the invoke, i.e. it didn't exist before running the workflow.
Bugs
- fix: do not apply prefix when getting file contents as buffer or stream by @thetutlage in #12831
- fix(core-flows,workflows-sdk): compensate account holders only when its created by @riqwan in #12825
- fix(): test utils events + workflow storage by @adrien2p in #12834
- fix: fix onScroll in Select.Content by @peterlgh7 in #12855
Documentation
- docs: documentation changes for next release by @shahednasser in #12773
- doc: Updated cloudflare R2 description by @scherddel in #12598
- docs: added first-purchase promotion guide by @shahednasser in #12828
- docs: update OAS for loyalty plugin by @shahednasser in #12836
- docs: remove usages of ts-ignore in examples by @shahednasser in #12839
- docs: fix step detection of useQueryGraphStep by @shahednasser in #12842
- docs: small typo fix by @shahednasser in #12843
- docs: documet withDeleted by @shahednasser in #12841
- docs: design fixes to toc and related elements by @shahednasser in #12747
- docs: added gift message guide by @shahednasser in #12833
- docs: sort events in reference alphabetically by @shahednasser in #12845
- docs-util: throw when schema parsing fails by @shahednasser in #12846
- docs: remove empty storefront guides by @shahednasser in #12844
- docs: add build with AI & LLMs doc by @shahednasser in #12848
- docs: document tax-inclusive promotions concept by @shahednasser in #12849
Chores
- chore: add version and deprecated tags to import routes and methods by @shahednasser in #12829
- chore: add missing types in TSDocs example by @shahednasser in #12835
- chore: improve description of findOrCreateCustomerStep by @shahednasser in #12840
Other Changes
New Contributors
- @scherddel made their first contribution in #12598
- @redeyecz made their first contribution in #12837
Full Changelog: v2.8.5...v2.8.6