Light API 0.18.0 is a public beta: a minor release such as 0.19.0 may still break. What that means for your module
Light
Developer guide

Upgrading

What to change in your module for the 0.1.0 beta, for 0.1.1, 0.1.3, 0.2.0, 0.3.0, 0.4.0, 0.4.9, 0.6.0 (with the unpublished 0.5.0), 0.7.0, 0.8.0, 0.9.0 and 0.10.0, and later for 1.0.0.

Retest your tier-2 changes

A minor release keeps every tier-1 promise (Versioning), but it may change what tier 2 relies on: the values of core items you changed or removed, core block names and arguments, templates you override, CSS on mrx-* classes and RequireJS mixins. After every minor:

  1. Read "Changed defaults" in Changelog.
  2. Run bin/magento mrx:light:doctor --module=<your module>: override_order, override_gate, deprecated_use and private_api point at what moved.
  3. Run your browser tests.

From an internal build to the 0.1.0 beta

The rename. Every name of Light changed before the 0.1.0 beta. Replace them in your code, XML, layout and composer.json:

BeforeFrom 0.1.0
MageRex_Light, MageRex_Apps and the other 11 core modulesMrx_Light, Mrx_Apps, …
The namespace MageRex\ of those modules, for example MageRex\Light\Api\ExtensionApiMrx\, for example Mrx\Light\Api\ExtensionApi
app/code/MageRex/<Module>app/code/Mrx/<Module>
Packages magerex/module-<module>mrx/module-<module>
CLI magerex:light:…, magerex:apps:…, magerex:bridge:scaffoldmrx:light:…, mrx:apps:…, mrx:bridge:scaffold
extra.magerex-light-apiextra.mrx-light-api

MageRex_DemoData, MageRex_Branding, the child theme MageRex/studio and magerex:demo:seed keep their names.

Ranges. Declare ^0.1 in extra.mrx-light-api, in the range guard of registration.php, and in a require on mrx/module-light.

Hyvä code moved. The Hyvä storefront code of Content and Settings moved to Mrx_ContentHyva and Mrx_SettingsHyva. A module that overrode it follows it there (Hyvä code in a -hyva module).

Nav counters. BadgeProviderInterface and the BadgePool argument badges still work. Move to BadgeSourceInterface and the argument providers: your count then merges with other modules' counts on the same item, gets a tone and a spoken label, and comes from the cache (A nav item with a counter). Mrx\Light\Api\Navigation\BadgeProviderInterface is not deprecated.

Deprecated. The tags read since 0.1.0, removed in 2.0.0 (Versioning), so each still works until 2.0.0:

DeprecatedUse instead
Mrx\Settings\Model\Page\PageInterfaceMrx\Settings\Api\PageInterface
Mrx\Settings\Model\Page\ChannelScopedInterfaceMrx\Settings\Api\ChannelScopedInterface
Mrx\Settings\Model\ValidationExceptionMrx\Settings\Api\ValidationException
Mrx\Apps\Model\Registry::CATEGORIESMrx\Apps\Model\Registry::getCategoryLabels(), and categories as the DI argument categories (An app, its category and pins)
mrx:bridge:scaffold (Mrx\Apps\Console\Command\BridgeScaffoldCommand)mrx:light:app --for=<Module> (Getting started)
Mrx\Themes\Setup\Patch\Data\UseBakenAsShopDefaultNothing: the store default theme now comes from the brand (A brand package)

Countries. Core no longer assumes a Dutch shop. Nothing here is deprecated: the old names are gone, so change them in your code, layout and tests:

BeforeFrom 0.1.0
mrx_settings/store/kvk and the Business details field kvkmrx_settings/store/business_id and the field business_id
EuVat::MODE_DUTCHEuVat::MODE_HOME (the stored value origin stays)
Countries::EUCountries::getEuCountries()
NormalizerThe pool country_rules (Country rules)
Carriers::POSTNL, DHL, DHL_EXPRESS, DPD, UPS, GLS, FEDEXThe same strings as the keys of the pool carriers (postnl, dhl, …); only Carriers::OTHER stays
GermanTemplatesMrx\CountryNl\Model\LegalPages\GermanVariables and the items of the pool legal_page_templates
{{kvk_line}} in a legal page draft{{business_id_line}}
ViewModel\Taxes::OSS_URLThe OSS block's argument oss_url
countryChecks of HasTaxRateNothing: the check passes with a rate in the home country, or with "I don't charge tax"

The patches ChargeDutchVatOnEveryOrder and UseEnglishTaxClassNames are gone. They repaired data of older internal builds, and their patch_list rows are harmless.

Packs. Everything Dutch and everything Mollie left core and sits in modules of its own (Changelog). Nothing is deprecated, so change what names the old places:

BeforeFrom 0.1.0
Mrx_Payments, package mrx/module-paymentsMrx_PaymentsMollie: install mrx/module-payments-mollie
Mrx\Settings\Model\Tax\DutchVat, Mrx\Settings\Model\Shipping\DutchZones, Mrx\Settings\Model\Policies\GermanVariablesThe same names under Mrx\CountryNl\Model (Tax, Shipping, LegalPages)
The route light/settings/taxpresetlight/dutchvat/apply
Mrx_Settings::policy_templates/...Mrx_CountryNl::legal_page_templates/...
The carrier postnl, the country NL of country_rules, the legal page types withdrawal and imprintThe same items, registered by Mrx_CountryNl
The payment info key mrx_mollie_modeMrx\Orders\Api\PaymentMode::INFO_KEY (mrx_payment_mode). Orders placed before the change lose their test-payment banner
A plugin on Mrx\Settings\Model\Payments\ProviderDetector or Mrx\Settings\ViewModel\PaymentsAn item in the pool payment_providers (Payment providers)
The Dutch values of the cards on Taxes and Payments, set by core's layoutBlock arguments that Mrx_CountryNl sets (Changing Light for one shop)

Copy and languages. The English source is US English, and an installed language package overrides a module CSV. Nothing is deprecated:

BeforeFrom 0.1.0
A CSV row of yours that reuses a renamed phrase (VAT rate, Colour, Postcode and the rest of Changelog, Copy and languages)The same row under the new English key. The consistency test catches a mismatch inside core, not in a module outside it
A CSV row of yours that translates Klassiek, Change theme, Theme settings or the Settings tile ThemeThe same row under Classic, Change appearance, Appearance settings or Appearance. Theme codes, routes and config paths didn't change
A palette entry that relied on core's kvk, ideal, mollie, aangifte, impressum or widerrufsbelehrung keywordsYour own keywords for that entry (Palette)
The preferred argument of Mrx\Settings\Model\Languages\LocalesNothing: the picker lists the shop's installed languages first

Page drafts. Core's page drafts in Mrx_Content stay. A Dutch shop gets the pack's copies through same-key file items in page_templates, so nothing that names a core draft changes.

Dutch shops. Install magerex/distribution-nl, or core and the packs from the same release. A Dutch shop that runs core without Mrx_CountryNl has no Dutch VAT setup, no KvK check, no PostNL and no Dutch legal page drafts, and bin/magento mrx:light:doctor warns with country_pack. A pack and core are tested together, so keep them on the same release.

Tier 2 in the Dutch pack. Mrx_CountryNl relies on tier-2 surfaces of core: the block arguments of mrx.settings.taxes.oss, mrx.settings.payments and mrx.settings.payments.providers.none, the tracking_url of four carriers and the file of five page drafts (Changelog, Changed defaults). The pack is retested with every core minor. Retest a module of yours that relies on the same surfaces the same way.

The store default theme comes from the brand. Without a saved default, a shop gets Baken with MageRex_Branding, mage-os on Mage-OS without it, and Classic on Magento Open Source. A default an admin saved stays.

ui-kit section 17 moved here. The extension API that ui-kit.md section 17 described is this guide now. Section 17 keeps one line per old subsection, pointing at its new page.

Emails and documents (Mrx_Documents)

Mrx_Documents draws the header and footer of every customer email and prints Light's PDFs (Your module's email and document). What an upgrading shop and a module developer must do:

Install.

  • magerex/distribution-nl installs mrx/module-documents. Mrx_Orders and Mrx_Returns require it now, so a shop that runs core alone gets it too. Enable the module and run setup:upgrade; it creates the table mrx_documents_invoice_mailed.
  • Run setup:static-content:deploy, or the shop keeps sending the old email CSS.
  • The first PDF fills the font cache in var/mrx_documents/fonts. The PHP-FPM user must own that folder, so don't print the first PDF from a root shell.
  • In production mode delete generated/ after you enable the module, then run setup:di:compile. It builds the interceptors that Light's plugins need. Without them the mails keep the stock header and the stock PDFs.

Emails. The look comes from the brand kit and the format (Your module's email and document):

  • The email template mrx_settings_email_header is gone, and design/email/header_template has no Light default any more. Light maps the stock header and footer ids to its own, so "Header (Default)" in Content > Design > Configuration means Light's header, and "Load Default Template" > Header in Marketing > Email Templates loads Light's header, with or without a theme. A store that still names mrx_settings_email_header fails its mails with "Email template is not defined"; the doctor reports it as email_shell_config. Set Header Template back to the default. A header someone saved in Marketing > Email Templates still wins and gets Light's footer.
  • In developer mode delete generated/metadata/staticcache/*.php, generated/code/Magento/Email/Model/Template/Interceptor.php and generated/code/Magento/Email/Model/Template/Css/Processor/Interceptor.php where they exist, or the cached interceptors skip MapShellIds and SwapCssTokens: mails then keep the stock header or show raw __MRX_ tokens. Production runs setup:di:compile, which rebuilds both.
  • sales_email/order/template, sales_email/invoice/template and sales_email/shipment/template, with their guest_template, point at Light's own bodies. A shop that picked its own template for one of them in Marketing > Email Templates keeps it, because a numeric value wins over the default, until someone saves texts for that email in Settings > Customer emails, which sets the scope back to the standard template.
  • Settings > Customer emails no longer creates email templates. It saves the texts as config rows under mrx_settings/email_texts/ and puts them into the mail when it renders.
  • The emails pool and the placeholders argument of Mrx\Settings\Model\CustomerEmails\Placeholders are global now. Move your module's items from etc/adminhtml/di.xml to etc/di.xml: in the admin area they still show in Customer emails, but the saved texts and your placeholders reach only mails sent from the admin, not the order confirmation from checkout or a mail sent by cron. The doctor reports wrong_area for an emails item until you move it.
  • Every mail goes out with a plain-text part next to its HTML.

PDFs. Invoices, credit memos and packing slips are Light's once the shop uses Light's PDFs (From 0.10.x to 0.11.0). Every stock getPdf() caller then gets them in the brand kit and format, rendered with dompdf (Your module's document):

  • A plugin or preference on the drawing code of Magento\Sales\Model\Order\Pdf (insertOrder(), _drawItem(), insertTotals(), a pdf.xml item renderer for invoices, credit memos or shipments) no longer runs, and no error says so. That includes plugins on Magento\Sales\Model\Order\Pdf\Shipment and on the Items\Shipment renderers, which used to print the packing slip. Run the doctor: pdf_inner_plugin lists each one. Move it into an item_lines line or a document type. The pdf.xml total models still run as before.
  • The accountant ZIP holds PDFs up to 300 documents, not 1000; above that it holds the CSV files only. A month over 100 documents is split into numbered files (invoices-2026-09-1.pdf, -2.pdf), and a file with documents of two store views lists one store's documents, then the other's.
  • In developer mode delete generated/code/Magento/Sales/Model/Order/Pdf/Invoice/Interceptor.php, Creditmemo/Interceptor.php and Shipment/Interceptor.php where they exist, or the cached interceptors keep printing the stock PDFs.
  • The paper is always A4, whatever the store's locale.
  • The packing slip has no browser page any more. light/orders/packingslips answers the orders list's check in JSON, so a link of yours to light/orders/packingslips?ids=12 now points at light/documents/download?type=packing_slip&ids=12, and one with ?shipment=5 at light/documents/download?type=packing_slip_shipment&ids=5. Mrx\Orders\ViewModel\PackingSlips and Mrx_Orders::order/packing-slips.phtml are gone.

Mail.

  • One setting, mrx_documents/invoice/send_with ("Send the invoice PDF with" on Settings > Emails & documents), decides which email carries the invoice PDF: the shipping confirmation (the default), "Payment received", or no email (PDFs on customer emails). The refund email carries the credit memo PDF and follows the same setting. A shop whose invoices go out through another module or a bookkeeping tool picks "No email".
  • All six sales senders carry the PDF: InvoiceSender and Invoice\Sender\EmailSender, ShipmentSender and Shipment\Sender\EmailSender, CreditmemoSender and Creditmemo\Sender\EmailSender; OrderSender does when the owner attaches the order confirmation. Every caller gets them: the admin, the checkout, cron and payment modules. A module of yours that sets senderBuilderFactory on one of these senders replaces Light's builder, or Light replaces yours, depending on the load order.
  • "Mark as paid" still sends no email. "Email invoice" in the order's More actions does.
  • "Print invoice" and "Print refund" on the storefront serve the PDF, when the shop uses Light's PDFs. What your module adds to the stock print page, through the print handle of sales_order_printinvoice and sales_order_printcreditmemo or their guest twins, no longer shows; add it to the document with a document_sections item instead.
  • In developer mode delete generated/metadata/staticcache/*_compiled_plugins.php and the interceptors of the four storefront print controllers under generated/code/Magento/Sales/Controller/Order and Guest where they exist.
  • Settings > Users no longer returns a password when it adds a user: the password key of the light/settings/usercreate answer is gone. The new user gets an invite by email, and invite_link holds the link only when that mail failed.
  • The approval mail of a return carries the return slip (The return slip on the approval mail). A theme that overrides customer_new.html keeps the blocks {{depend mrx_awaits_review}} and {{depend mrx_approved}}, or the mail of an approved return still promises a review. Returns replaces MageOS RMA's SenderInterface with its own through a preference; a preference of yours on that interface wins or loses depending on the load order.

Magento classic. This switch existed from the beta to 0.10.x. 0.11.0 replaced it with the merchant's choice (From 0.10.x to 0.11.0).

From 0.1.0 to 0.1.1

Returns is optional. magerex/distribution-nl and magerex/light-demo-data no longer require mrx/module-returns. On composer update, a shop that got Returns only through the distribution loses mrx/module-returns and mage-os/module-rma. Decide before you update, because Composer removes the code while Magento's cache still lists both modules: every bin/magento command, setup:upgrade and cache:flush included, then fails with Class "MageOS\RMA\Console\Command\CleanupCommand" does not exist until you clear the cache storage by hand (var/cache, or the Redis or Valkey cache database).

To keep returns, require the package yourself before you update:

composer require mrx/module-returns:^0.1

To drop them, dump the database and disable both modules before you update:

bin/magento module:disable Mrx_Returns MageOS_RMA
composer update 'mrx/*' 'magerex/*' -w
bin/magento setup:upgrade

The rma_* tables and the returns in them stay: Magento drops a module's tables only when setup:upgrade runs while the module is disabled and its code is still installed. Run nothing else between the disable and the update, or that setup:upgrade drops them.

A shop without Returns runs Light as before: the Returns nav item, its settings card, its order actions and its role area are absent. A module of yours that names a Mrx\Returns class or the MageOS_RMA ACL resources requires mrx/module-returns in its own composer.json.

From 0.1.1 to 0.1.2

Nothing changes for your code. Light's roles are saved once more. Every role Light makes holds the user's own second factor from 0.1.2, and the first setup:upgrade on 0.1.2 or later gives it to each role that holds Mrx_Light::light without full access and lacks it (the Staff and Shipping staff presets also get screens their areas miss). Light stores such a role through Magento's Rules::saveRel(), once: later runs find the second factor and leave the role alone. saveRel() writes the role again from the ACL tree of that moment, so a resource of a module that is disabled during that setup:upgrade is gone from the role and doesn't come back when the module is enabled again. Dump the database first, run the update with your modules enabled, and check the roles named in var/log/system.log ("Light: roles ... got the screens"). A role saved later in Magento's own role editor with Light ticked gets the second factor on that save (0.4.3 and later).

From 0.1.2 to 0.1.3

Nothing changes for your code: the API surface is the same as in 0.1.0.

Preset roles are reset. Light 0.1.0 to 0.1.2 gave a Staff or Shipping staff role made through Settings > Users > Add user every resource of the admin, user and role management included, so a Staff user could make themselves Owner. The first setup:upgrade on 0.1.3 (the data patch RepairPresetRoles, once) resets a role only when it carries that leak: it is named Staff or Shipping staff, holds Light (Mrx_Light::light, which every role Light makes holds) and holds both user management and role management (Magento_User::acl_users and Magento_User::acl_roles, which no Light area gives). Such a role is set back to exactly what its preset gives, and each reset is logged with the resources it took away (var/log/system.log, "Light: role ... was reset to it"). In such a role Light can't tell a leaked resource from one a merchant gave it on purpose in Magento's own role editor, so both go, and so do areas added to it in Light's role editor: check the logged roles after the update and give them back what they should have, in Settings > Users or the advanced view. Every other role stays as it is: a preset role that only holds what Light's areas give, a role named Staff that a merchant made in Magento's own editor without Light or without user and role management, Owner and every role with full access. One case the repair can't tell apart: Light 0.1.0 to 0.1.2 gave Mrx_Light::light to any role named Staff or Shipping staff on every setup:upgrade, also to one a merchant made in Magento's own role editor. If such a role also has user and role management on purpose, it carries the same signature and is reset too, so it loses those grants; the log names it. Give them back in the advanced view, or rename the role first if you know it is yours. A leaked preset role that was renamed later isn't found by its name; check roles you renamed from Staff or Shipping staff yourself, and take user and role management away from any that still has them (Users and permissions).

Role completion only touches Light's roles. Light's role completion (setup:upgrade, every time) treated any role named Staff or Shipping staff as its preset in 0.1.0 to 0.1.2: it gave such a role, also one Light never made, the screens of every area the role touched and the resources every Light role gets, the user's own second factor and its parents included. From 0.1.3 it completes a preset role only when the role also holds Mrx_Light::light, which every role Light makes holds; a role without it keeps exactly what it has, whatever its name. A preset role from which someone removed Light in the advanced view is left alone too; saving it in Light's role editor gives it back. What the 0.1.x completion already gave a role of your own stays: check a role of your own called Staff or Shipping staff and take away what you don't want it to have.

When 0.1.3 is the first Light you install on an existing store, none of this applies: a role of the store that happens to be named Staff or Shipping staff holds no Mrx_Light::light, so it is neither reset nor completed.

From 0.1.3 to 0.1.4

Nothing changes for your code: the API surface is the same as in 0.1.0. Run setup:upgrade after composer update 'mrx/*' 'magerex/*' -w; 0.1.4 adds no tables, columns or data patches. -w updates the Light packages and the packages they need, and leaves the packages your shop requires itself, such as its own payment plugin, at their locked versions. Use -W only when Composer says a package your shop requires is in the way, and check what it changed before you deploy (Updating).

Reservations stay with the owner. Light's Products area no longer gives "Clean balanced reservations" and "Mass Delete Reservations" (MageOS_InventoryReservationsGrid::clean and ::delete): cleaning or deleting reservations changes what every product can sell. On 0.1.4 a role that already holds them keeps them. The next release takes them from the Staff and Shipping staff roles Light made on its first setup:upgrade, and saving such a role in Light's role editor takes them away too (From 0.1.4 to 0.1.5). Take them away in the advanced view from any other role that shouldn't have them (Users and permissions).

Switching Multi-Source Inventory on later. Light works with MSI on and one source. A store that turns MSI on after running with it off gets its source quantities from the legacy stock, which open orders already lowered. Magento's inventory:reservation:create-compensations then subtracts those orders a second time. Keep the compensations, since shipping, cancelling or refunding needs them, and raise each affected source quantity by the order's unshipped quantity.

Rate tables are optional. mrx/module-shipping-matrixrate is new and not part of a distribution. To add it:

composer require 'mrx/module-shipping-matrixrate:^0.1'
bin/magento module:enable WebShopApps_MatrixRate Mrx_ShippingMatrixrate
bin/magento setup:upgrade
bin/magento cache:flush

The package brings webshopapps/module-matrixrate with it. setup:upgrade would enable both modules on its own; module:enable names them, so you see what you switch on (Rate tables, an add-on).

From 0.1.4 to 0.1.5

Nothing in the API surface changes, but two settings behaviours and the preset roles do. Check your module for them.

A channel value stays the channel's own. ScopedConfigWriterInterface::save($values, $websiteId) keeps a website value that equals the all-channels value; before, it removed it. If your module wrote the all-channels value for a website to make that website follow all channels again, write null for those paths instead. A value equal to what the website reads now is still not written, so saving a whole form leaves untouched fields following all channels as before (Saving per scope).

A removed channel is refused. A settings page that saves through light/settings/save/page/<code> no longer receives a request whose channel names a channel that doesn't exist: the controller answers 422 first. A page that read such a request as "All channels" on purpose gets that case no more.

Preset roles lose what their areas exclude. 0.1.4 took "Clean balanced reservations" and "Mass Delete Reservations" (MageOS_InventoryReservationsGrid::clean and ::delete) out of the Products area, but a Staff or Shipping staff role made before kept them. The first setup:upgrade on this release (the data patch RemoveExcludedFromPresetRoles, once) takes from each preset role Light made (named Staff or Shipping staff and holding Mrx_Light::light, never one with full access) what the exclude lists of its areas leave out, with the resources below them, unless another of its areas gives them. It logs each role and what it took (var/log/system.log, "Light: role ... held resources its areas leave to the owner"). The reservation screens are the known case; a preset role with the Settings area that holds sign-in security, API access, the activity log or developer settings loses those too. Everything else in the role stays, and so do a role of another name, one without Mrx_Light::light and every role with full access. Saving a preset role in Light's role editor now does the same, also for an exclude your module adds to an area later; a role of another name keeps what it has outside its areas. Give a preset role such a screen back in the advanced view if it should have it: the patch runs once, and later setup:upgrade runs only add. Saving that role in Light's role editor takes the screen away again, since every save of a preset role drops what its areas exclude; to keep the screen, edit the role only in the advanced view, or make it a role of your own under another name.

From 0.1.x to 0.2.0

0.2.0 adds locations and pickup at a location (Changelog). Nothing of 0.1.x was removed from the API surface, but a 0.x minor never matches the range of the one before it.

Ranges. Move every range from ^0.1 to ^0.2: extra.mrx-light-api in composer.json, the range guard in registration.php (satisfies('^0.2')) and a require on mrx/module-light or any other mrx/module-*. A module left on ^0.1 is hidden by the compatibility gate, and its range guard stops it from loading (Versioning).

Setup. Run setup:upgrade right after composer update. Until then the admin is unusable: Light's Home fails with "Cannot instantiate interface Mrx\Locations\Api\LocationsInterface", because Mrx_Locations is new and still off. setup:upgrade enables it and creates mrx_location, mrx_location_stock and mrx_order_pickup. mrx/module-locations comes in through Catalog, Orders and Home; on a shop without Magento's inventory modules it is enabled and does nothing.

Internal classes that changed. None of these carried @api, so they were never part of the contract. A plugin or a preference of yours on them needs a look:

BeforeFrom 0.2.0
Mrx\Catalog\Model\Inventory\StockLocations (the several-locations check)Gone. Mrx\Locations\Api\LocationsInterface::isMultiLocation() says whether the shop keeps stock per location; quantities per location go through Mrx\Catalog\Model\Inventory\LocationQuantities, which calls MSI's source item services
Mrx\Catalog\Model\Inventory\QuantityStoreInterface::getQuantities() returning null for a product at several locationsHolds only the one quantity of simple mode; LocationQuantities takes over in locations mode
Mrx\Catalog\Model\Inventory\BulkResult::MULTI_SOURCEGone: bulk "Adjust stock" asks for a location and no longer skips such products
Mrx\Orders\Model\Service\MsiSourceMode and ShipItems::shipsFromSeveralLocations()Gone: ShipItems::ship() takes the location as its last, optional argument $sourceCode, and Mrx\Orders\Model\Shipment\ShipFrom lists the options and Magento's suggestion
The Orders draft picker's stock.locationsGone: stock.qty is what the channel's enabled locations hold together
The Stock page and the variants without a locationIn locations mode their rows carry a location, and a save names the location it changes

Reading stock after the switch. Once a shop has a second location, cataloginventory_stock_item.qty follows only Magento's default source, which the switch sets to 0. Code that read the legacy quantity as "on hand" reads MSI's source items or the salable quantity instead (Locations and pickup).

Words. The picklist's storage column is "Bin" now (pick_locations items keep working). A CSV row of yours for "Location" in nl_NL or de_DE loses to the row Mrx_Locations puts in prefer_phrases.

A VAT basis nobody stored is no OSS choice. OssInterface::isUsed() and EuVat::getMode() read a shop that never stored tax/calculation/based_on (Magento's default is the delivery address) and has no OSS rules as home VAT. A module that called isUsed() to decide whether to add OSS rates now gets false on such a shop. Saving Settings > Taxes stores the basis at all channels, so from then on the storefront charges home VAT on orders abroad instead of 0% where no rate existed.

Hyvä footer block renamed. Mrx_ContentHyva now uses the block name mrx.content.footer.menu on Hyvä too (it was mrx.content.footer.menu.hyva), and Mrx_SettingsHyva renders the legal page links in the Hyvä footer. A Hyvä theme that moved or removed mrx.content.footer.menu.hyva in its own layout uses the new name.

From 0.2.x to 0.3.0

0.3.0 adds two core routes, light/notifications/dismisstasks and light/settings/legalpagevisibility, and a few additive keys (Changelog). Nothing of 0.2.x was removed or changed in the API surface, but a 0.x minor never matches the range of the one before it.

Ranges. Move every range from ^0.2 to ^0.3: extra.mrx-light-api in composer.json, the range guard in registration.php (satisfies('^0.3')) and a require on mrx/module-light or any other mrx/module-* or magerex/* package. A module left on ^0.2 is hidden by the compatibility gate, and its range guard stops it from loading (Versioning).

Composer. composer update stays inside ^0.2, so move the ranges with a require. Put the shop's own mrx/* requires in the same command, so Composer resolves them together:

composer require 'magerex/distribution-nl:^0.3' 'mrx/module-returns:^0.3' -w
bin/magento setup:upgrade
bin/magento cache:flush

Leave out the packages the shop doesn't require, and use magerex/distribution-nl-hyva on a Hyvä shop.

Run setup:upgrade right after composer. Between the two the admin is unusable: Composer has put 0.3.0 code next to the database and the generated classes of 0.2.x, and setup:upgrade brings them in line. In production mode, run setup:di:compile and setup:static-content:deploy after it.

Payment providers. A pack that implements Mrx\Settings\Api\ChannelPaymentProviderStateInterface (new in 0.3.0) needs Settings 0.3.x, so its range moves with the rest. A provider that implements only PaymentProviderStateInterface keeps working: Settings asks it isOffered(), whatever channel is being saved.

From 0.3.x to 0.4.0

0.4.0 adds one layout container, mrx.home.top on Home (Changelog). Nothing of 0.3.x was removed or changed in the API surface, but a 0.x minor never matches the range of the one before it.

Ranges. Move every range from ^0.3 to ^0.4: extra.mrx-light-api in composer.json, the range guard in registration.php (satisfies('^0.4')) and a require on mrx/module-light or any other mrx/module-* or magerex/* package. A module left on ^0.3 is hidden by the compatibility gate, and its range guard stops it from loading (Versioning).

Composer. composer update stays inside ^0.3, so move the ranges with a require. Put the shop's own mrx/* and magerex/* requires in the same command, so Composer resolves them together:

composer require 'magerex/distribution-nl:^0.4' 'mrx/module-returns:^0.4' -w
bin/magento setup:upgrade
bin/magento cache:flush

Leave out the packages the shop doesn't require, and use magerex/distribution-nl-hyva on a Hyvä shop. A shop with magerex/module-flex-bridge or mrx/module-shipping-matrixrate adds them to the same require at ^0.4.

Run setup:upgrade right after composer. Between the two the admin is unusable: Composer has put 0.4.0 code next to the database and the generated classes of 0.3.x, and setup:upgrade brings them in line. In production mode, run setup:di:compile and setup:static-content:deploy after it.

A banner on Home. A module whose card in mrx.home.widgets is a way into its own screen, or a notice that must not be missed, can move it to mrx.home.top, full width above the figures (Home to-dos, setup steps and widgets). Nothing moves by itself: a block in mrx.home.widgets stays in the side column.

From 0.4.8 to 0.4.9

0.4.9 changes no API, but magerex/distribution-nl (and with it magerex/distribution-nl-hyva) no longer installs magerex/light-branding: Light from a metapackage is white-label, and the MageRex brand is an add-on (The MageRex brand).

Keep the brand. A shop that had the brand only through the metapackage requires it itself, in the same command as the update:

composer require 'magerex/distribution-nl:^0.4' 'magerex/light-branding:^0.4' -w
bin/magento setup:upgrade
bin/magento cache:flush

Without it, composer update removes the package, setup:upgrade drops MageRex_Branding from app/etc/config.php, and the admin shows the platform's own logo and default theme. The brand keeps no data, so nothing else changes: a theme an admin picked or a store default someone saved stays. A module of your own that requires magerex/light-branding keeps it installed.

From 0.4.x to 0.6.0

0.6.0 is the first release after 0.4.22. It also ships 0.5.0, which was never published: kinds of product and draft orders for composite products (Changelog 0.5.0), and with them the 0.6.0 work: filters on Light's lists, AI on the Disrex packages, and Light on shops without Multi-Source Inventory (Changelog 0.6.0). The @api changed, and three changes break a module that uses them: the locations API moved from Mrx\Locations\Api to Mrx\Settings\Api, FilterableProviderInterface::getFilterKeys() became getFilters(), and the checkouts_without_pickup pool moved class. All three are below.

Ranges. Move every range from ^0.4 to ^0.6: extra.mrx-light-api in composer.json, the range guard in registration.php (satisfies('^0.6')) and a require on mrx/module-light or any other mrx/module-* or magerex/* package. A module left on ^0.4 is hidden by the compatibility gate, and its range guard stops it from loading (Versioning). No package was published at ^0.5, so a module that moved to ^0.5 on a development build moves to ^0.6 as well.

Composer. composer update stays inside ^0.4, so move the ranges with a require:

composer require 'magerex/distribution-nl:^0.6' -w
bin/magento setup:upgrade
bin/magento cache:flush

Add 'mrx/module-returns:^0.6' and the shop's other mrx/* and magerex/* requires to the same command, and use magerex/distribution-nl-hyva on a Hyvä shop. Run setup:upgrade right after composer, as on every minor (Updating).

Two packs come with the metapackage. magerex/distribution-nl and magerex/distribution-nl-hyva now also install mrx/module-product-bundles (Mrx_ProductBundles) and mrx/module-product-group-pages (Mrx_ProductGroupPages). With them the product list gets "Sell products together", new bundles and group pages are made in Light's product editor (the stock Add product > Bundle and Grouped product land there), and existing ones become editable instead of read-only. A shop that requires single packages adds the packs itself, at ^0.6.

Leaving the packs off. Neither pack has tables, so a shop that doesn't want them disables them without losing data. Run this after composer require and before setup:upgrade:

bin/magento module:disable Mrx_ProductBundles Mrx_ProductGroupPages

Its bundles and group pages then stay on the storefront and open read-only in Light, with a link to the advanced view. bin/magento mrx:light:doctor warns product_kind_pack while a shop has products of a type whose pack is off (Troubleshooting). A pack also stays out by itself on a shop without Magento's bundle or grouped module.

Adding a kind of your own. A module that claims a Magento product type adds an item to product_kinds (Add a kind of product). A module that offers a product type on "Create order" adds one to draft_product_types (Draft orders for a product type). Both are optional.

A form-card module that shows its card on the product editor now can tell the kind of product with ProductKindContextInterface::getKind(). Nothing changes for a card that doesn't ask.

getFilterKeys() is gone. A provider that implements FilterableProviderInterface now returns FilterDefinition objects from getFilters(). A key you accepted as a fixed scope becomes a hidden filter. Returns' list, which took ['order_id', 'customer_id'], now declares them in Mrx\Returns\Model\Filter\ReturnFilters, next to its visible filters:

app/code/Mrx/Returns/Model/Filter/ReturnFilters.php
FilterDefinition::hidden(ReturnRepository::FILTER_ORDER),
FilterDefinition::hidden(ReturnRepository::FILTER_CUSTOMER),

Nothing else changes for a scoped table: the block's filters argument and filter[customer_id] in the data URL work as before, and $query->getFilter('customer_id') still returns the raw string. A value is now at most 64 characters. To offer the merchant a filter, declare a visible type and read it with $query->getFilterValue() (Light lists, step 5).

AI on the Disrex packages. Light's AI runs on disrex/module-ai ^1.5 (1.5 or later), disrex/module-ai-shop-context and disrex/module-ai-catalog; Composer pulls them in with mrx/module-ai and mrx/module-settings. Three things change for a module that reads Light's AI data:

  • Translations from Light's editors are recorded under the purpose ai_catalog_translate, no longer mrx_translate; the product copy under ai_catalog_description (descriptions), ai_catalog_short_description, ai_catalog_proofread (Fix spelling and grammar), ai_catalog_shorten, ai_catalog_seo and ai_catalog_from_image, no longer mrx_product_description, mrx_product_seo and mrx_product_from_image. A report that groups disrex_ai_usage by purpose reads both codes for the months around the upgrade. Settings > AI names the old codes ("Translations", "Product descriptions", "SEO texts", "Products filled in from a photo") still.
  • The monthly limits are Disrex_Ai's: a call over a limit throws Disrex\Ai\Exception\BudgetExceededException from the client, for every caller, before anything is paid, as Light's plugin did. Mrx_Ai's patch sets the window to the calendar month and the scope to the whole shop. Code that named Mrx\Ai\Model\Usage\Limits or Report (never @api) reads Disrex\Ai\Api\LimitsInterface::getStatus() and UsageReportInterface::summary() instead.
  • The quality "Fast" is stored as auto. A shop on balanced is moved to auto by Mrx_Ai's patch, at every scope.

The routes light/ai/description, light/ai/fromimage and light/ai/seo keep their paths. Their parameters and answers changed (the editors' own scripts are the only callers): light/ai/description takes field, action, current, tone, wishes and id and streams its answer as application/x-ndjson, and all three return the output checks' findings. A script of yours that posts to them follows the new shape in AI in your module, or calls the Disrex_AiCatalog writers directly.

To call a model yourself, follow AI in your module: declare a purpose, compose the prompt with a PromptContext for the store view, and the shop's profile, tone, form of address and word rules apply.

A third kind pack comes with the metapackage. magerex/distribution-nl and -hyva now also install mrx/module-product-downloads (Mrx_ProductDownloads): digital downloads are made in Light's product editor (the stock Add product > Downloadable Product lands there), and the order page shows the state of their files. Add Mrx_ProductDownloads to your module:enable line, or leave it off with bin/magento module:disable Mrx_ProductDownloads before setup:upgrade; it has no tables. A module that adds a kind of product of a type that isn't a bundle or group page no longer appears under "Sell products together" and needs its own way in (Add a kind of product).

Bulk translation has its own permission. Starting and steering a bulk translation run need Mrx_Ai::bulk_translate ("Translate products in bulk with AI"), not only Magento_Catalog::products, because a run spends the AI budget. The owner has it; a role made in Settings > Users gets it with the area Translate with AI, and a role made in the advanced view gets it under its own entry in the role tree. Without it, the products list has no "Translate with AI" and the run page only watches. Nothing to change in code.

setup:upgrade takes longer once. Mrx_Orders adds indexes to sales_order, sales_order_payment and sales_order_address for the order filters, and Mrx_Customers adds customer_entity(group_id) and customer_address_entity(country_id) for the customer filters. For speed with many orders Mrx_Orders also adds the column sales_order.mrx_number_sort with its index and sales_order(state, created_at), its data patch FillOrderNumberSortKeys fills the new column (about 10 seconds per 250,000 orders), and Mrx_Customers an index on sales_order(customer_id, state, base_currency_code, base_grand_total, created_at). On a shop with millions of orders or customers, plan the upgrade outside busy hours. Until setup:upgrade has run, the orders list can't sort on Order. A module of yours that writes orders to sales_order with SQL instead of through the order model sets mrx_number_sort itself with Mrx\Orders\Model\Sequence\NumberSortKey::forNumber() (internal, so it may change), or the order sorts first ascending until it is saved through the model.

The locations API moved to Settings. Mrx\Locations\Api\LocationsInterface and Mrx\Locations\Api\Data\LocationInterface are gone; the same members are Mrx\Settings\Api\LocationsInterface and Mrx\Settings\Api\Data\LocationInterface (@api since 0.6.0). Search and replace Mrx\Locations\Api\ with Mrx\Settings\Api\, and require mrx/module-settings instead of mrx/module-locations. Settings answers simple mode itself, so your module now also runs on a shop without MSI (Locations and pickup).

Bundles read stock through Catalog. Mrx\ProductBundles\Model\Stock\StockSourceInterface is gone. A module that replaced or called it uses Mrx\Catalog\Api\StockSourceInterface (@api since 0.6.0, the same four methods); Catalog's default reads the stock item and Mrx_Locations replaces it with MSI.

The checkouts_without_pickup pool moved class. Add your checkout's module name to Mrx\Home\Model\Todo\CheckoutsWithoutPickup, argument checkoutsWithoutPickup, not to Mrx\Home\Model\Todo\Counter\PickupCheckoutMissing. An item still set on the old class is ignored without an error, and Home stops warning about your checkout.

MSI off: disable Mrx_Locations with it. Catalog, Orders and Home no longer require mrx/module-locations; Mrx_Locations requires them and the core inventory packages instead. A shop that switches MSI off disables the Magento_Inventory* modules and Mrx_Locations in one module:disable: Magento refuses to disable the inventory modules while Mrx_Locations is on. A shop that removes the inventory packages (yireo/magento2-replace-inventory) needs nothing: Mrx_Locations doesn't register there (Install).

Run setup:upgrade and commit app/etc/config.php before you compile. Mrx_Locations now loads after Mrx_Catalog, Mrx_Orders and Mrx_Home, so its preferences replace their stock defaults. Magento merges di.xml in the order of app/etc/config.php, and only setup:upgrade sorts that file again. A build that runs setup:di:compile with the old config.php keeps an MSI shop on the stock item: no "Available to sell", and stock per location refused. bin/magento mrx:light:doctor warns under stock_mode while the order is wrong.

From 0.6.x to 0.7.0

0.7.0 adds to the @api and removes or changes nothing in it: the surface snapshot gains lines only (Changelog 0.7.0). The one step every module takes is the range. What a shop sees change follows it.

Ranges. Move every range from ^0.6 to ^0.7: extra.mrx-light-api in composer.json, the range guard in registration.php (satisfies('^0.7')) and a require on mrx/module-light or any other mrx/module-* or magerex/* package. A module left on ^0.6 is hidden by the compatibility gate, and its range guard stops it from loading (Versioning). Nothing else in your code has to change to run on 0.7.0.

Composer. composer update stays inside ^0.6, so move the ranges with a require:

composer require 'magerex/distribution-nl:^0.7' -w
bin/magento setup:upgrade
bin/magento cache:flush

Add 'mrx/module-returns:^0.7' and the shop's other mrx/* and magerex/* requires to the same command, and use magerex/distribution-nl-hyva on a Hyvä shop. Run setup:upgrade right after composer, as on every minor (Updating).

Newer Disrex AI packages. mrx/module-ai, mrx/module-settings and mrx/module-catalog now require disrex/module-ai ^1.6 (it was ^1.5) and disrex/module-ai-catalog ^0.4 (it was ^0.1); disrex/module-ai-shop-context stays on ^0.1. The same composer require brings them in. A caret on 0.x stops at the minor, so Composer only finds 0.7.0 once your package source has disrex/module-ai-catalog 0.4.0.

New in the @api, so require ^0.7 to use it. Mrx\Settings\Api\ReverseChargeInterface, Mrx\Customers\Api\GroupAssignmentInterface, Mrx\Settings\Model\Ai\UnitCounterInterface, the pool ai_draft_inputs, the keys unit, counter and bulk on ai_calculator_jobs, the settings_pages item customergroups, and the four mrx:ai:* DOM events. A module that uses none of them only moves its range.

New product URL keys are at most 100 characters. Light formats a product URL key the way disrex/module-ai-catalog does (Disrex\AiCatalog\Api\UrlKeyFormatInterface::fromName(), 0.4): Magento's own Product\Url::formatUrlKey(), so the "Apply transliteration for product URL" setting now counts in Light too, cut at a hyphen at 100 characters (it was a cut at 200, in the middle of a word). A key typed or made for a new product, and one a translation derives from a translated name, are now the same key. Existing keys don't change: a key that comes back unchanged with a save is kept as it is. A module or test that expects Light's old key for a name longer than 100 characters, or an accented key with transliteration off, expects the new one.

Alt texts of a language are Disrex's to write. The product editor's language view saves an image's alt text through Disrex\AiCatalog\Api\WritableEntityAdapterInterface, the one writer of catalog_product_entity_media_gallery_value (the table has no unique key). A module that writes store view alt texts itself should call that interface as well. mrx/module-catalog now requires disrex/module-ai-catalog ^0.4.

The list of AI purposes grows. 0.7.0 adds ai_catalog_product_draft (fill in a new product) and ai_catalog_option_labels (option names), and Settings > AI shows both in the engine table and the usage. A test or a script that pins the fixture provider with disrex_ai/fixture/purposes (never *) must list them too, or the call goes to the real engine on a shop that holds a key. A purpose of your own keeps working as before. The Cost calculator prices an editor click as a first call and only the bulk translation as a run, so its amounts differ from 0.6.x; a module that adds a job to ai_calculator_jobs needs nothing, and may add unit, counter and bulk (AI in your module, step 10).

Staff sees the translation report. The new ACL resource Mrx_Ai::translations_view ("See translations: report and log") sits in the role area Products of Settings > Users, so every product editor and the Staff preset see Products > Translate: the overview, the review list and the log, without a button. Approving, rejecting, reverting and starting a run stay with Mrx_Ai::bulk_translate, which Staff doesn't hold. Nothing in a module needs to change.

Run setup:upgrade, then check the indexers. Disrex_AiCatalog 0.4 adds the translation log and coverage tables and six indexers ("Translation report: ...") on "Update by schedule", so the shop's cron must run indexer_update_all_views. On "Update on save" the overview only follows the nightly recount.

From 0.7.x to 0.8.0

0.8.0 adds to the @api and removes nothing: the surface snapshot gains AfterCommitInterface, its afterCommit() method and the routes light/ai/draftcost and light/ai/productrun, and the event line mrx:ai:drafted gains the keys cost and targets (Changelog 0.8.0). The one step every module takes is the range. What a shop sees change follows it.

Ranges. Move every range from ^0.7 to ^0.8: extra.mrx-light-api in composer.json, the range guard in registration.php (satisfies('^0.8')) and a require on mrx/module-light or any other mrx/module-* or magerex/* package. A module left on ^0.7 is hidden by the compatibility gate, and its range guard stops it from loading (Versioning). Nothing else in your code has to change to run on 0.8.0.

Composer. composer update stays inside ^0.7, so move the ranges with a require:

composer require 'magerex/distribution-nl:^0.8' -w
bin/magento setup:upgrade
bin/magento cache:flush

Add 'mrx/module-returns:^0.8' and the shop's other mrx/* and magerex/* requires to the same command, and use magerex/distribution-nl-hyva on a Hyvä shop. Run setup:upgrade right after composer, as on every minor (Updating).

Newer Disrex AI packages. mrx/module-ai, mrx/module-settings and mrx/module-catalog now require disrex/module-ai-catalog ^0.5 (it was ^0.4). A caret on 0.x stops at the minor, so Composer only finds 0.8.0 once your package source has disrex/module-ai-catalog 0.5.0. disrex/module-ai stays on ^1.6. Its 1.7.0 is optional: it adds Haiku 5.5 and Sonnet 5.5 behind the quality aliases, and ^1.6 already admits it.

New in the @api, so require ^0.8 to use it. Mrx\Light\Api\Form\AfterCommitInterface and the routes light/ai/draftcost and light/ai/productrun. The cost and targets keys of mrx:ai:drafted are new too; a listener that ignores them needs no change. A module that uses none of these only moves its range.

What a module developer does. Set extra.mrx-light-api, the range guard and the require on mrx/module-light to ^0.8, retest, and release the module. A form card that should start work after the save implements AfterCommitInterface next to its form extension (Start work after the save); only the product editor calls it in 0.8.0.

From 0.8.x to 0.9.0

0.9.0 adds to the @api and removes or renames nothing: the surface snapshot gains the routes light/ai/productrunestimate and light/ai/productrunstart, and no other line changes (Changelog 0.9.0). The one step every module takes is the range. What a shop sees change follows it.

Ranges. Move every range from ^0.8 to ^0.9: extra.mrx-light-api in composer.json, the range guard in registration.php (satisfies('^0.9')) and a require on mrx/module-light or any other mrx/module-* or magerex/* package. A module left on ^0.8 is hidden by the compatibility gate, and its range guard stops it from loading (Versioning). Nothing else in your code has to change to run on 0.9.0.

Composer. composer update stays inside ^0.8, so move the ranges with a require:

composer require 'magerex/distribution-nl:^0.9' -w
bin/magento setup:upgrade
bin/magento cache:flush

Add 'mrx/module-returns:^0.9' and the shop's other mrx/* and magerex/* requires to the same command, and use magerex/distribution-nl-hyva on a Hyvä shop. Run setup:upgrade right after composer, as on every minor (Updating).

Newer Disrex AI packages. mrx/module-ai, mrx/module-settings and mrx/module-catalog now require disrex/module-ai-catalog ^0.6 (it was ^0.5). A caret on 0.x stops at the minor, so Composer only finds 0.9.0 once your package source has disrex/module-ai-catalog 0.6.0. disrex/module-ai stays on ^1.6, and ^1.6 already admits its 1.7.1.

New in the @api, so require ^0.9 to use it. The routes light/ai/productrunestimate and light/ai/productrunstart. A module that uses neither only moves its range.

What a module developer does. Set extra.mrx-light-api, the range guard and the require on mrx/module-light to ^0.9, retest, and release the module. Retest what touches the AI screens: a product page that your module extends (the edit band now has a "Translate into all languages" line, and the language switch shows a status under each language), and any code or spec that reads an AI cost or estimate, since those now round up at the last digit shown (the cent on most screens).

From 0.9.x to 0.10.0

0.10.0 changes no @api class: since 0.9.1 the surface snapshot gains only the theme tokens --mrx-color-current and --mrx-color-current-text, and nothing is removed or renamed (Changelog 0.10.0). The one step every module takes is the range. What a shop sees change follows it.

Ranges. Move every range from ^0.9 to ^0.10: extra.mrx-light-api in composer.json, the range guard in registration.php (satisfies('^0.10')) and a require on mrx/module-light or any other mrx/module-* or magerex/* package. A caret on 0.x pins the minor, so a module left on ^0.9 is hidden by the compatibility gate, its range guard stops it from loading, and it cannot install with Light 0.10.0 (Versioning). Nothing else in your code has to change to run on 0.10.0.

Composer. composer update stays inside ^0.9, so move the ranges with a require:

composer require 'magerex/distribution-nl:^0.10' -w
bin/magento setup:upgrade
bin/magento cache:flush

Add 'mrx/module-returns:^0.10' and the shop's other mrx/* and magerex/* requires to the same command, and use magerex/distribution-nl-hyva on a Hyvä shop. Run setup:upgrade right after composer, as on every minor (Updating).

Newer Disrex AI packages. mrx/module-ai, mrx/module-settings and mrx/module-catalog now require disrex/module-ai-catalog ^0.7 (it was ^0.6). A caret on 0.x stops at the minor, so Composer only finds 0.10.0 once your package source has disrex/module-ai-catalog 0.7.0. disrex/module-ai stays on ^1.6, which admits 1.7.1. A module that requires disrex/module-ai-catalog itself and builds on Light's AI screens moves its own requirement to ^0.7 too.

No change in the @api. A module that uses only the @api moves its range and nothing else.

What a module developer does. Set extra.mrx-light-api, the range guard and the require on mrx/module-light to ^0.10, retest, and release the module. Retest what touches these screens:

  • the phone menu, if your module adds to the top bar or the drawer (a tap before the admin script has loaded now opens the drawer once it boots);
  • the Products and Stock lists, if a provider or a filter of yours sits next to the Sold out and Low stock tabs or the Stock filter (the rows are the same, the counts come from joined stock rows);
  • every list footer, if your admin theme styles buttons (the pager adds page numbers, First and Last; on a dark theme set --mrx-color-current and --mrx-color-current-text when the current page doesn't stand out, Admin themes names the classes);
  • the new-product card, if your module claims fields through mrx:ai:drafted (a second fill keeps the first fill's claims, and the card is gone on a new bundle or group page);
  • any code or spec that reads an AI cost estimate for "from image", a new product's draft or a translation in the editor, since those are lower until the shop has its own cost history, while the detail suggestions' estimate is a little higher.

From 0.10.x to 0.11.0

0.11.0 changes what a shop sends on install. A shop that already sent Light's documents keeps what its customers get, with the few differences listed under cases 2 and 3 below. The default flips: Light's emails and PDFs are the merchant's choice, and a new install keeps what the shop sends now. 0.11.0 removes and renames nothing in the @api: the surface snapshot gains DeclaresLanguageFieldsInterface and ExtensionCard::isLanguageView(), VatOutcomeInterface with its two data interfaces, DocumentsChoiceInterface with its five methods, and the pools shown_paths, light_bodies and other_attachment_flags (Changelog 0.11.0).

Ranges. Move every range from ^0.10 to ^0.11: extra.mrx-light-api, the range guard in registration.php and a require on mrx/module-light or any other mrx/module-* or magerex/* package. Use composer require 'magerex/distribution-nl:^0.11' -w, then bin/magento setup:upgrade (Updating).

What an update does to a shop. What customers receive stays as it was, except for the details named under cases 2 and 3. The data patch RecordDocumentsInUse writes the shop's choice once, in this order:

  1. A mrx_documents/choice/emails, choice/pdfs or choice/confirmed row exists: the patch leaves everything.
  2. A stored mrx_documents/advanced/classic = 1 at default scope (the old switch was on): emails and PDFs become "keep". This shop sent Magento's PDFs and the stock order, invoice and shipment bodies before, and it still does. A few of Light's own details do change: the refund and pickup bodies and the item rows follow the choice now.
  3. Rows in mrx_documents_sent_email or mrx_documents_invoice_mailed, so the shop sent Light's documents: emails and PDFs become "Light", and mrx_documents/choice/pdfs_since holds the date of the earliest send. Customers get the same emails and PDFs. Two intended differences: invoices from before pdfs_since no longer ride on a later shipping mail, and an exact second copy of a document is no longer added.
  4. Nothing found: the patch writes nothing, and the default "keep" applies.

Case 2 and 3 write no confirmed row, so the Home step "Choose your emails and documents" stays open. The merchant opens Settings > Emails & documents, reads what the shop sends and what changed with the update, and saves. A second setup:upgrade changes nothing.

The Magento classic switch is gone. Stores > Configuration > Sales > Emails and documents (Light) > Advanced > Magento classic and mrx_documents/advanced/classic no longer have an effect; only the patch reads a stored value. Remove config:set mrx_documents/advanced/classic from your deploy scripts. To keep Magento's PDFs and emails, leave the choice on "keep" (bin/magento config:set mrx_documents/choice/emails 0, the same for pdfs).

What a module that read the switch does. BrandKit::PATH_CLASSIC, Mrx\Documents\Model\Email\Classic and Brand::classic are removed. They were internal, but a module may have used them. Replace the read with Mrx\Documents\Api\DocumentsChoiceInterface: usesLightEmails() for a body, header or footer, and usesLightPdfs() for a PDF or an attachment. Do not read mrx_documents/choice/* directly; the interface also honours asLight().

What a module developer does.

  • Ask DocumentsChoiceInterface before you replace a Magento email or PDF, and require Light ^0.11 (Keep or Light's).
  • A Light package registers an email body that replaces a stock one in the light_bodies pool of MapShellIds, with the config path that holds the stock id. A body left out is treated as Light's own and stays Light's under "keep". This covers Mrx_* and MageRex_* only; a module outside Light asks DocumentsChoiceInterface and picks its body itself. Orders registered its refund and pickup bodies, guest twins included (mrx_orders_ready_for_pickup_guest).
  • Register a config flag of another module that attaches the same PDF in other_attachment_flags, so Light skips its copy of that document on that mail.
  • A mail of yours that relied on Light's header and footer under a theme: it keeps them only while the shop uses Light's emails. Under "keep" a mail from a module outside Light gets the shop's stock header and footer; only Light's own packages keep Light's shell.
  • StoreLogoInEmails moved from Mrx_Settings to Mrx_Documents. The plugin name changed from mrx_settings_store_logo_in_emails to mrx_documents_store_logo, so a module that disables the plugin or sorts against it by name must use the new one, and a preference that names the old class moves with it. Under "keep" a mail gets the logo Magento would choose, unless the mail is one of Light's own.
  • 0.11.0 adds the plugin ResetShellScope on Magento\Email\Model\Template; it clears ShellScope, the state that tells MapShellIds a mail is Light's own. In developer mode delete generated/metadata/staticcache/*_compiled_plugins.php and generated/code/Magento/Email/Model/Template/Interceptor.php, or they never run; production runs setup:di:compile.
  • Settings > Customer emails now asks for confirmation before it saves texts over, or restores texts under, a template made in Marketing > Email Templates. A script that posts light/settings/emailsave or emailrestore for such an email sends confirm_replace=1, or the answer is an error.

Tests that set the old switch. Replace mrx_documents/advanced/classic in a spec with the choice paths, and put them back as you found them.

Clear the layout caches after the update. grids.css moved from the mrx_base handle to mrx_simple, so stock grids in the advanced view no longer load Light's look. Deployed shops run bin/magento cache:clean layout block_html full_page after the update, or the cached layout keeps loading the stylesheet where it used to be.

From 0.11.x to 0.12.0

0.12.0 removes and renames nothing in the @api: the snapshot gains the routes light/settings/aiwordrulesimport and light/settings/aiwordrulesexport, the page search in the pools settings_pages and shown_paths, and the route light/settings/search, and nothing else. What changes is how word rules work, through Disrex_AiShopContext 0.3.0 and Disrex_AiCatalog 0.9.0.

Ranges. Move every range from ^0.11 to ^0.12 the way you did for 0.11.0 (Updating). Mrx_Settings needs disrex/module-ai-shop-context ^0.3, Mrx_Ai accepts ^0.1 || ^0.2 || ^0.3 because it calls nothing that 0.3.0 adds, and Disrex_AiCatalog 0.9.0 needs ^0.3.

What an update does to a shop.

  • Lists add up. The word rules of a website or store view are added to the list above them; for the same language and word the lower scope wins. Before, a list at a website replaced the one at All channels as a whole. The data patch KeepReplacedWordRules writes disrex_ai/word_rules/inherit = replace at every website and store view that has a list of its own and no mode, so a shop sends exactly what it sent. Delete the replace row (or untick Only this channel's rules) to let a channel add to All channels. The patch is idempotent. Before you update, SELECT scope, scope_id, LENGTH(value) FROM core_config_data WHERE path='disrex_ai/word_rules/rules' AND scope<>'default' lists the rows it will mark.
  • Term rows only when they match. A rule with a term and no "Never write" words reaches the model only when its term occurs in the text, in the user turn, before the data. Rules without a term, or with "Never write" words, stay in the system prompt. Whatever the size of the list, a term row whose term is not in the text is no longer sent, so a call carries fewer words than before and the prompt differs per text in that block. A call sends at most 60 matching rows, and a capped call carries the warning word_rules_capped.
  • Limits. A list may hold 500 rules of up to 80 characters, within 48 KB, and at most 100 fixed rules per language. It was 100 rules of 60 characters.
  • Search strictness. Settings > Search changes no setting on update. A shop without a stored catalog/search/<engine>_minimum_should_match sees the new Home step "Choose how strict search is" until the merchant chooses; a stored value, such as the 2<75% that Gastrohome's own patch writes, completes the step and reads as Most words. Any other stored value shows as your own setting and stays as it is.
  • Items with a never-write word wait for you. A background translation run holds an item whose text still holds a word the rules say never to write, even with review off. It appears in To check. A script that expects such items to be written straight away has to approve them. A write run does not hold: it writes the text and carries the avoided_words warning.
  • Save requests. Settings > AI posts the rows as word_rules[json]. A script that posts word_rules[rows][<key>][lang|term|use|avoid] still works, within PHP's max_input_vars.

What a module developer does.

  • Read the rules that apply to a store view through WordRulesInterface or WordRulesRepositoryInterface::getForStore(); both return the added-up list. get(), save() and inherit() still work on exactly one scope.
  • For a write or translate call, add WordRulesForTextInterface::turnBlock() before the data (AI in your module).
  • A script that imports rules calls WordRulesImportInterface or disrex:ai:word-rules:import instead of writing the config row.

From 0.12.x to 0.13.0

0.13.0 removes and renames nothing in the @api: the snapshot gains the route light/products/optionvalues and the key module in the pool other_attachment_flags, and nothing else.

Ranges. Move every range from ^0.12 to ^0.13 the way you did for 0.12.0 (Updating). Mrx_Ai, Mrx_Catalog and Mrx_Settings accept disrex/module-ai-catalog up to ^0.10.

What an update does to a shop. Nothing is written on update. The product editor loads less: the Options card fetches an option's values from light/products/optionvalues when the merchant picks it.

What a module developer does.

  • An other_attachment_flags item for a module's own PDF can add module with the module's name (Acme_VendorDocs). The choice card then names that module once, by the item's label, and leaves the item out while the module is disabled. An item without module works as before.
  • A mixin or script that reads the variants config of the product editor (tier 3, not in the snapshot) finds values only on the options the product uses, when they have 100 values or fewer, and a count on every option. The per-option url became one optionUrl with the placeholder __ID__. Load the other values from light/products/optionvalues.

From 0.13.x to 0.14.0

0.14.0 removes and renames nothing in the @api: the snapshot gains the route light/settings/seoorganization, and nothing else.

Ranges. Move every range from ^0.13 to ^0.14 the way you did for 0.13.0 (Updating). On a shop with Mage-OS 4.0, run composer update 'mrx/*' 'magerex/*' -w and setup:upgrade; the new mrx/module-seo-mageos comes with the metapackages. The bridge only suggests mage-os/module-seo, so Composer installs nothing more.

What an update does to a shop. Nothing is written to merchant data. On Mage-OS 4.0 with Mage-OS SEO's Open Graph tags switched on, product, category and CMS pages now print one set of share tags, written by Mage-OS SEO, with Light's image in og:image. The Organization card writes nothing until the merchant presses its button.

What a module developer does.

  • A module that sets its own kind on mrx.light.open_graph, or writes og: tags in the handles catalog_product_view, catalog_category_view or cms_page_view, finds that block gone while Mage-OS SEO prints the tags. Its own kind still works on every other handle. On those three handles, give your image through the share_image_sources pool, which Light hands to Mage-OS SEO, and drop your own tags (With Mage-OS SEO).
  • A module that overrides the seo_organization item of the Home to-do list should look again: the bridge sets its counter, its two labels, the route (light/settings/business) and the query card=organization. A di.xml override of the same item merges with the bridge's by load order, so check which one wins on your shop, or leave the item alone.

From 0.17.x to 0.18.0

0.18.0 only adds to the API: three pools for the bell's System sources, the route light/notifications/mute, a config path and a table. No PHP code needs to change, only the ranges.

Ranges. Move every range from ^0.17 to ^0.18 the way you did for 0.17.0 (Updating). Run composer update 'mrx/*' 'magerex/*' 'disrex/*' -w and setup:upgrade.

Deploy. The bell records which module wrote each notification through a global plugin. In production mode setup:di:compile regenerates the compiled plugins; a deploy that skips it records nothing, and new notifications are sorted by the host of their link.

Good to know. If your module writes admin notifications the merchant should always see, add its vendor to notification_system_vendors (recipe); otherwise they show under Extensions.

From 0.16.x to 0.17.0

0.17.0 only adds to the API: the route light/table/count and the todos pool key label_unknown. No PHP code needs to change, only the ranges.

Ranges. Move every range from ^0.16 to ^0.17 the way you did for 0.16.0 (Updating). Run composer update 'mrx/*' 'magerex/*' 'disrex/*' -w and setup:upgrade.

Good to know. On a stock with millions of reservations the stock tabs and the Stock filter show no total (the "Count" button gives it on request), Home shows "100+", and the Stock page may open in SKU order.

From 0.15.x to 0.16.0

0.16.0 only adds to the API: the interface Mrx\Settings\Api\ShopStateInterface and the settings_pages key option_labels. No PHP code needs to change, only the ranges.

Ranges. Move every range from ^0.15 to ^0.16 the way you did for 0.15.0 (Updating). Run composer update 'mrx/*' 'magerex/*' 'disrex/*' -w and setup:upgrade.

Good to know. With mrx/module-returns installed, a Dutch admin now reads "Artikelnummer" and "Gast" for "SKU" and "Guest" on every screen, stock grids included, because Mrx_Returns pins its Dutch words over the language pack. The update brings Disrex_AiCatalog 0.14.0, whose translation report no longer counts products that are not visible individually: run one recount (Catalog > Translations, Refresh, or the nightly recount) to drop the old variant items.

From 0.14.x to 0.15.0

0.15.0 removes and renames nothing in the @api: the snapshot gains the settings_groups code visibility, the settings_pages codes search_engines, merchant_listings and ai_assistants, and the app_hidden keys name and module, and nothing else.

Ranges. Move every range from ^0.14 to ^0.15 the way you did for 0.14.0 (Updating). Run composer update 'mrx/*' 'magerex/*' 'disrex/*' -w and setup:upgrade. The metapackages bring disrex/module-ai-mago and, through it, disrex/module-ai 1.10; the bridge only suggests Mago and mage-os/module-ai-base, so Composer installs nothing more on Mage-OS 3.x or Magento.

What an update does to a shop. Nothing is written to merchant data. Light never switches on Google Shopping listings, the AI assistants summary or passkeys. On Mage-OS 4.0 the admin assistant moves to the shop's Disrex AI key and limits; the key stored for mage-os/module-ai-base stays and is no longer used.

What a module developer does. Nothing, unless your module adds a card to Settings: you may now give it section visibility. An app_hidden item may now be an array with name and module, hidden only while that module is on.

From 0.13.1 to 0.13.2

0.13.2 changes nothing in the @api. Mrx_Ai requires disrex/module-ai ^1.9 and disrex/module-ai-catalog ^0.12; Mrx_Catalog and Mrx_Settings also accept AiCatalog 0.12. composer update brings them along.

Update Orders and Documents together. mrx/module-orders 0.13.2 uses two classes that are new in mrx/module-documents 0.13.2, while both still require ^0.13 of each other. Update them in one go (composer update 'mrx/*' 'magerex/*' -w, or through the metapackage); composer update mrx/module-orders alone can leave Documents on 0.13.1 and break the pick list.

A theme that overrides the PDF page. A theme that overrides Mrx_Documents::documents/page.phtml copies the two letterhead images and the pageCss() style to show the letterhead (Letterhead). Without them its PDFs print as before, with no letterhead.

A job that keeps failing pauses. Disrex_Ai 1.9.0 pauses a job whose calls keep getting retryable errors from the AI service (pause_reason provider) and resumes it after a cool-down (disrex_ai/jobs/provider_cooldown_seconds, 900 seconds). Before, the job ended as failed. Code that listens for disrex_ai_job_failed to catch an outage hears disrex_ai_job_paused now.

Waiting texts of a deleted store view close. AiCatalog 0.12.0 closes the waiting texts of a store view, website or store group you delete (rejected, reason gone) and leaves the rows of store views that no longer exist out of the waiting count. Rows left by a store view deleted before the update stay in the table but no longer count.

From 0.13.0 to 0.13.1

0.13.1 changes nothing in the @api. Mrx_Ai, Mrx_Catalog and Mrx_Settings also accept disrex/module-ai-catalog 0.11.

Write runs hold too. With Disrex_AiCatalog 0.11.0 a background write run holds a text that contains a word the word rules say never to write, also with review off; 0.9.0 and 0.10.0 wrote it with the avoided_words warning. Light's item log says "Waits for you because it contains …". Approve such texts with Approve in the job's item log (System > Disrex AI > Background jobs > Items, in the advanced view), with disrex:ai:catalog:write:apply or with REST. A script that expects them written straight away has to approve them.

From the 0.1.0 beta to 1.0.0

1.0.0 follows the testing phase of the beta. At that release:

Ranges. Move every range from ^0.y to ^1.0, in extra.mrx-light-api, in the range guard of registration.php, and in a require on mrx/module-light. A caret on 0.x never matches 1.0.0, so a module left on ^0.1 is hidden.

No range is out of range. From the 1.0.0 release a module that contributes to Light without extra.mrx-light-api counts as out of range, and the doctor's api_undeclared is an error. During the beta it is a warning, so add the range now (Versioning).

Last updated on

On this page