Repository navigation
This release is about mage create.
It now creates Magento Open Source from the Mage-OS mirror by default, and its default packages move to templates you can pick or replace.
Existing projects are not affected.
Why the Mage-OS mirror
Version 3.0.0 made the Mage-OS distribution the default, as it needs no Magento marketplace keys.
But Mage-OS adds modules on top of Magento that got in the way of development, and each one needed a workaround in mage:
- 3.0.0 disabled
MageOS_ThemeOptimization, as its bfcache conflicts with the BFCache patches and Hyvä. - 3.1.0 also disabled
MageOS_PasskeyAuth, as it broke disabling two factor auth, and then replaced both modules, so they are never installed. - This release locks the admin session lifetime, as the bundled
aligent/magento2-pci-4-compatibilityblocked saving the Admin config.
The mage-os-mirror edition needs no marketplace keys either, and it is the same code as Magento Open Source, which extensions, patches and the Magento docs are made for.
So new projects get fewer surprises, and fewer workarounds.
Going back to Mage-OS
The Mage-OS editions stay available.
To create Mage-OS projects as before, set the edition in ~/.config/mage/config:
MAGE_EDITION="mage-os"Or for a single project, use mage create my-shop --edition=mage-os.
The mage-os edition picks the mage-os template on its own, which leaves out the passkeys and theme optimization as 3.1.0 did.
Added
mage create --template: A template is a composer fragment with the packages of a new project: the bundleddefault,mage-osormage-os-minimal, or your own json file, see templates.
Without it, themage-osandmage-os-minimaleditions use the template of their name and the others usedefault, set your own default withMAGE_CREATE_TEMPLATE.mage create: The editionsmage-os-mirror, Magento Open Source from the Mage-OS mirror, andmage-os-minimal, Mage-OS with fewer modules.mage create: Generates the XML catalog of the Magento schemas in.vscode/catalog.xml, for VS Code and Zed, see XML catalog.mage add hyva: Caches the Hyvä license key invar/composer_home/auth.json, the composer home Magento uses for the sample data deploy, somage add sample hyvano longer asks for it.mage add <file>.json --no-update: Only writes the packages tocomposer.json, without installing them.- Config:
MAGE_ENV_CONFIG, store config thatmage setupandmage restorewrite toapp/etc/env.phpwithconfig:set --lock-env.
Changed
mage create: Defaults to themage-os-mirroredition instead ofmage-os, see above.mage create: The default packages, and the allowed composer patches plugin, come from the templatescomposer-create-default.json,composer-create-mage-os.jsonandcomposer-create-mage-os-minimal.json.
Themage-ostemplate also replacesmage-os/module-passkey-authandmage-os/module-theme-optimization, ascomposer-mage-os.jsondid.mage create: Thedefaulttemplate adds the Mage-OS admin thememage-os/theme-adminhtml-m137again, which 3.0.0 dropped as the Mage-OS edition installs it itself.
Themage-os-minimaltemplate leaves it out, as that edition has its own admin theme.mage create: No longer addsspatie/rayas a dev package, the Siteation Debug Bar covers it.mage create: Requires jq, which is checked before anything is created.mage create,mage add sample: Pick the edition, environment and sample data set from a numbered list, by number or name.mage setup:MAGE_DISABLE_MODULESno longer hasMageOS_ThemeOptimization, as themage-ostemplate keeps it out of the project.
Deprecated
- Config:
MAGE_PACKAGESandMAGE_DEV_PACKAGESare now empty, and will be dropped in a next major version.
When your config still sets them,mage createrequires them after the template, with a warning.
Move them to your own template. - Config:
MageOS_PasskeyAuthin the defaultMAGE_DISABLE_MODULES.
It only matters for Mage-OS projects created before 3.1.0, and will be removed.
Removed
- Templates:
composer-mage-os.json, now part ofcomposer-create-mage-os.json.
Fixed
mage setup: The admin session lifetime of a day is now locked inapp/etc/env.php.
Mage-OS bundlesaligent/magento2-pci-4-compatibility, which caps the admin field at 900 seconds, so saving the Admin config section failed with the longer lifetime.