Spree 6.0.7
A patch release that adds the Avalara AvaTax tax provider for Spree 6 and fixes checkout, gift card, invitation and payment problems. Store admins now get an email when someone creates an Admin API key. Order managers can take payments without access to Settings. The API reference now lists the response fields of every endpoint.
npx spree upgrade✨ New features
- Avalara AvaTax for Spree 6. The new
spree_avalaragem calculates sales tax and VAT with Avalara at checkout, files a tax document when an order is placed, voids it when the order is canceled, and credits returns, claims and exchanges. It also supports tax exemptions and lets you search Avalara's tax codes from a tax category. Install it withspree add avalara. #14467 by @mad-eel, #15329 - Alerts for new Admin API keys. Every store admin gets an email when someone creates a secret API key, naming who created it and the IP address it came from, so an unexpected key is noticed quickly. The API keys page shows that IP address too. #15295, #15333
🧭 Admin dashboard improvements
- Order managers can take payments. Staff with payment permissions but no access to Settings can now pick a payment method when adding a payment to an order. #15306
- Changing an order's customer asks first. Moving an open order to another customer now asks for confirmation. Any store credit or gift card from the first customer is taken off the order and returned to them. #15307
🐛 Bug fixes
- A cart can no longer change after its payment is taken, so a successful payment always places the order. #15320
- A refused payment attempt no longer cancels the shopper's open payment session. #15319
- Charging a saved Stripe card on a draft order works, and the Add payment dialog only offers cards saved with the chosen payment method. #15302 by @ifizza
- An applied gift card stays on the cart when its items change. #15337 by @mad-eel
- A gift card can no longer be applied to a placed order, and the order page no longer offers to. #15245
- Deleting a gift card that is applied to an open cart or draft order takes it off that order first. #15296
- Gift cards created in a batch now each send the
gift_card.createdwebhook. #15298 - Placed orders keep their market, withdrawal period and return window after the market is deleted. #15249
- A canceled order that was waiting on stock now shows as canceled instead of backordered. #15310
- The confirmation email for a pickup order says where to collect it. #15309
- Removing a teammate also revokes their pending invitations, and the Staff page updates to match. #15239
- Resending an invitation extends its expiry, and an expired invitation is refused with a clear message. #15308
- Editing a stock location in the seller panel no longer turns customer pickup off. #15240
- Removing a stock location from a sales channel or a delivery profile is now recorded in the audit history. #15305, #15327 by @KacperMekarski
- Admins can choose the Full access and Read all scopes when creating an API key again. #15341
- Reports grouped by coupon code, and other groupings where some rows have no value, display again. Reports with an unusual filter value no longer fail. #15323, #15314
- Images imported from an unreachable link are skipped, and a file that only pretends to be an image is refused, instead of failing the import. #15317, #15318, #15321
- Product listings of a store whose search index is not built yet no longer report errors. #15315
🛠 Developer experience
- Two new migrations.
spree_orders.fee_totalnow defaults to zero, and orders with no fee total are filled in.spree_api_keysgainscreated_by_ip_address.npx spree upgradeinstalls and runs them; otherwise runbin/rails spree:install:migrations db:migrate. #15313, #15295 - Moving from 5.x AvaTax. Stores on the 5.x
spree_avatax_officialextension replace it withspree_avalara. The gem's README and the Avalara integration guide cover the upgrade. #14467 by @mad-eel - SDK type changes. In
@spree/admin-sdk,auth.setupCountries()returnsCountry, so readisoinstead ofcode. TheSetupCountrytype is removed. In@spree/sdk,companyInvitations.lookup()takesparamssecond and request options third.company_nameandstore_nameon the lookup are deprecated in favour ofexpand: ['company']and are removed in 6.5. Reporting values are typed as the decimal strings the API sends. Many responses that were typed by hand are now generated, with their shape unchanged. #15313, #15323, #15326 - New SDK features.
@spree/admin-sdkaddstaxProviders.taxCodes(). Payment filters accept therequestedstatus. Saved cards can be listed for one payment method.Fulfillmentincludespickup_location. #14467 by @mad-eel, #15326, #15309 - The SDKs wait for a
Retry-Afterheader given as a date before retrying. #15331 by @bardrop - More predictable API errors. Validation errors report rejected values as prefixed IDs and short type names. Array or hash values in token, password, provider and currency parameters get a 4xx instead of a 500. Promotion rules, actions and customer addresses come back in a stable order. Requests the API rejects are no longer sent to your error tracker. A cart that cannot be completed answers with a readable
messageand the failing steps underdetails, instead of a Ruby hash in the message. #14467 by @mad-eel, #15324, #15304, #15325, #15316 - The CLI's own setup key no longer emails store admins about a new API key. #15295
📚 Documentation
- The Admin, Store and Seller API reference now lists the response fields of every endpoint, generated from the same serializers as the SDK types. #15313, #15326
- New guide for the Avalara AvaTax integration on Spree 6. #14467 by @mad-eel
📦 Package versions
| Package | Version |
|---|---|
| Spree gems | 6.0.7
|
@spree/sdk, @spree/admin-sdk, @spree/seller-sdk, @spree/core
| 6.0.7
|
@spree/dashboard, @spree/dashboard-core, @spree/dashboard-ui, @spree/seller-dashboard, @spree/dashboard-sentry
| 6.0.7
|
@spree/cli
| 3.8.2
|
create-spree-app
| 2.5.1 (unchanged)
|
Full Changelog: v6.0.6...v6.0.7