diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c55ccd3d81..3ffe4708820 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,116 @@ # Changelog This is the official changelog index of Shopware 6. Here you find a registry of all Shopware 6 releases with a reference to the detailed changelog of each version. If you want to know more about how the changelog is created have a look [here](/adr/workflow/2020-08-03-implement-New-Changelog.md). +## 6.6.7.0 +* [#3575 - Use order currency if defined to display line items, default to context currency](./changelog/release-6-6-7-0/2024-09-17-fix-currency-display-for-old-orders.md) ([Melvin Achterhuis & Fabian Blechschmidt](https://github.com/Schrank)) +* [#3738 - NEXT-38052 - Fix include of address actions](https://github.com/shopware/shopware/issues/3738) ([@iNaD](https://github.com/iNaD)) +* [#3819 - Only select used fields of `translation` tables](./changelog/release-6-6-7-0/2024-08-08-only-select-used-fields-of-translation-tables.md) ([Sven Münnich](https://github.com/svenmuennich)) +* [#3824 - NEXT-38051 - added missing twig dependency StorefrontControllerGenerator](https://github.com/shopware/shopware/issues/3824) ([@panakour](https://github.com/panakour)) +* [#3844 - Add no-progress option to indexing commands](./changelog/release-6-6-7-0/2024-08-11-add-no-progress-option-to-indexing-commands.md) ([Marcus Müller](https://github.com/M-arcus)) +* [#4491 - Fix Shopping Experience demo entity loading](./changelog/release-6-6-7-0/2024-08-17-fix-shopping-experience-demo-entity-loading.md) ([Max](https://github.com/aragon999)) +* [#4501 - Mark autoprefixer as deprecated](./changelog/release-6-6-7-0/2024-08-19-mark-autoprefixer-as-deprecated.md) ([tinect](https://github.com/tinect)) +* [#4538 - Fix partial hydreateEntity bug](./changelog/release-6-6-7-0/2024-08-22-partial-hydrate-entity-bug.md) +* [#4544 - Fix product category selection unchecked](./changelog/release-6-6-7-0/2024-08-23-fix-product-category-selection-unchecked.md) ([Elias Lackner](https://github.com/lacknere)) +* [#4632 - NEXT-38321 - Fix: product.rating-averaget to product.rating-average for indexing](https://github.com/shopware/shopware/issues/4632) ([@bh-pu](https://github.com/bh-pu)) +* [#4665 - NEXT-38216 - handling sliderInfo.controlsContainer undefined case in base-slider.plugin.js](https://github.com/shopware/shopware/issues/4665) ([@luminalpark](https://github.com/luminalpark)) +* [#4671 - Allow admin-search to get aborted by new request](./changelog/release-6-6-7-0/2024-09-06-allow-abort-adminsearch.md) ([Benjamin Wittwer](https://github.com/akf-bw)) +* [#4672 - Deprecate legacy format in system:config:get command](./changelog/release-6-6-7-0/2024-09-08-deprecate-legacy-format-in-system-config-get-command.md) ([Max](https://github.com/aragon999)) +* [#4687 - Fix deprecation message for `shopware.payment.method`](./changelog/release-6-6-7-0/2024-09-10-payment-method-deprecation-log.md) ([Rahpaël HOMANN](https://github.com/raphael-homann)) +* [#4700 - add support for message queue for local sendmail type](./changelog/release-6-6-7-0/2024-09-10-add-support-for-message-queue-for-local-sendmail-type.md) ([tinect](https://github.com/tinect)) +* [#4704 - Fix state attribute on attributed entities](./changelog/release-6-6-7-0/2024-09-11-fix-state-attribute-on-attributed-entities.md) ([Nicky Gerritsen](https://github.com/nickygerritsen)) +* [#4737 - Prevent newsletter optin through HEAD requests](./changelog/release-6-6-7-0/2024-09-16-prevent-newsletter-optin-through-head-requests.md) ([Niklas Wolf](https://github.com/niklaswolf)) +* [#4760 - Cast thumbnail size to integer](./changelog/release-6-6-7-0/2024-09-17-cast-thumbnail-size-to-integer.md) ([Vladislav Sultanov](https://github.com/TheBreaken)) +* [#4779 - Changed usages of hash algo md5 to xxh128](./changelog/release-6-6-7-0/2024-09-18-changed-usages-of-hash-algo-md5-to-xxh128.md) ([tinect](https://github.com/tinect)) +* [#4782 - Changed hash algo for manifest to xxh128](./changelog/release-6-6-7-0/2024-09-18-changed-hash-algo-for-manifest-to-xxh128.md) ([tinect](https://github.com/tinect)) +* [#4788 - Improve order amount stats performance](./changelog/release-6-6-7-0/2024-09-19-improve-order-amount-stats-performance.md) ([Benjamin Wittwer](https://github.com/akf-bw)) +* [#4812 - Move NavigationPageLoadedEvent to end](./changelog/release-6-6-7-0/2024-09-20-move-navigationpageloadedevent-to-end.md) ([Niklas Wolf](https://github.com/niklaswolf)) +* [#4819 - Changed wishlist cookie from a session cookie to a cookie valid for 30 days](./changelog/release-6-6-7-0/2024-09-22-changed-wishlist-cookie-from-a-session-cookie-to-a-cookie-valid-for-30-days.md) ([Max](https://github.com/aragon999)) +* [#4820 - Do not throw an error if no labels are present on country change](./changelog/release-6-6-7-0/2024-09-22-do-not-throw-an-error-if-no-labels-are-present-on-country-change.md) ([Max](https://github.com/aragon999)) +* [#4821 - Remove unneeded mediaFolder association](./changelog/release-6-6-7-0/2024-09-22-remove-unneeded-mediafolder-association.md) ([Max](https://github.com/aragon999)) +* [#4822 - Simplified product media sorting](./changelog/release-6-6-7-0/2024-09-22-simplified-product-media-sorting.md) ([Max](https://github.com/aragon999)) +* [#4850 - Added mailTemplateId and mailTemplateTypeId to data sent to mail action](./changelog/release-6-6-7-0/2024-09-23-added-mailtemplateid-and-mailtemplatetypeid-to-data-sent-to-mail-action.md) ([Niklas Wolf](https://github.com/niklaswolf)) +* [#4851 - Added criteria events for country and country state routes](./changelog/release-6-6-7-0/2024-09-23-added-criteria-events-for-country-and-country-state-routes.md) ([Niklas Wolf](https://github.com/niklaswolf)) +* [#4865 - NEXT-38520 - Avoid double submissions on password recovery form](https://github.com/shopware/shopware/issues/4865) ([@sneakyvv](https://github.com/sneakyvv)) +* [#4894 - Changed the JSON-LD schema links to use https instead of http](./changelog/release-6-6-7-0/2024-09-26-changed-the-JSON-LD-schema-links-to-use-https-instead-of-http.md) ([Wanne Van Camp](https://github.com/wannevancamp)) +* [#4903 - NEXT-38521 - Ignore Google Merchant parameter for caching](https://github.com/shopware/shopware/issues/4903) ([@wannevancamp](https://github.com/wannevancamp)) +* [#4948 - Do not create log package in plugin database migrations](./changelog/release-6-6-7-0/2024-10-04-do-not-create-log-package-in-plugin-database-migrations.md) ([Max](https://github.com/aragon999)) +* [#4953 - NEXT-38701 - Fix Typo('s) in PR Template](https://github.com/shopware/shopware/issues/4953) ([@alessandroaussems](https://github.com/alessandroaussems)) +* [NEXT-16211 - Add ProductListingCriteriaExtension](./changelog/release-6-6-7-0/2024-09-03-add-productlistingcriteriaextension.md) +* [NEXT-19063 - Added company and department to different views](./changelog/release-6-6-7-0/2024-09-11-added-company-and-department-to-different-views.md) +* [NEXT-24954 - Add store API endpoints for product and category breadcrumbs](./changelog/release-6-6-7-0/2024-02-01-add-store-api-endpoints-for-product-and-category-breadcrumb.md) +* [NEXT-26677 - Added ariaLabel parameter to sw-icon](./changelog/release-6-6-7-0/2024-09-23-added-aria-balbel-to-icons.md) +* [NEXT-26705 - Improve keyboard UX and accessibility in top-bar navigation](./changelog/release-6-6-7-0/2024-08-27-mprove-keyboard-ux-and-a11y-in-top-bar-navigation.md) +* [NEXT-26705 - Preserve focus of radio inputs for shipping and payment method selection in checkout](./changelog/release-6-6-7-0/2024-09-25-preserve-focus-of-radio-inputs-for-shipping-and-payment-method-selection-in-checkout.md) +* [NEXT-26705 - Preserve focus state after variant switch page reload](./changelog/release-6-6-7-0/2024-09-25-preserve-focus-state-after-variant-switch-page-reload.md) +* [NEXT-26712 - Add missing visual focus states](./changelog/release-6-6-7-0/2024-09-20-add-missing-visual-focus-states.md) +* [NEXT-26712 - Improve focus handling for Off-Canvas cart and quantity selector](./changelog/release-6-6-7-0/2024-08-20-improve-focus-handling-for-off-canvas-cart-and-quantity-selector.md) +* [NEXT-26715 - Improve error suggestions](./changelog/release-6-6-7-0/2024-08-26-improve-error-suggestions.md) +* [NEXT-32922 - Postal code not mandatory in alternative delivery address](./changelog/release-6-6-7-0/2024-08-22-postal-code-not-mandatory-in-alternative-delivery-address.md) +* [NEXT-33575 - Use bootstrap prefix variable instead of hard-coded bs-](./changelog/release-6-6-7-0/2024-08-30-use-bootstrap-prefix-variable-instead-of-hard-coded-bs.md) +* [NEXT-33697 - Accessibility improvements for the slider plugin](./changelog/release-6-6-7-0/2024-09-23-improve-slider-accessibility-tweaks.md) +* [NEXT-33807 - Improved text editor formatting](./changelog/release-6-6-7-0/2024-08-22-Improve-text-editor-formatting.md) +* [NEXT-33807 - Improved text formatting in the storefront](./changelog/release-6-6-7-0/2024-08-22-Improved-text-formatting-in-the-storefront.md) +* [NEXT-33825 - Update postal code required for country table to default value is true](./changelog/release-6-6-7-0/2024-08-24-update-postal-code-required-for-country-table-to-default-value-is-true.md) +* [NEXT-34090 - Change search dropdown close action to button](./changelog/release-6-6-7-0/2024-09-25-change-search-dropdown-close-action-to-button.md) +* [NEXT-34133 - Add initial services infrastructure](./changelog/release-6-6-7-0/2024-07-11-add-initial-services-infrastructure.md) +* [NEXT-34142 - Fix creating invoices via bulk edit missing invoice address](./changelog/release-6-6-7-0/2024-09-19-fix-creating-invoices-via-bulk-edit-missing-invoice-address.md) +* [NEXT-34189 - Shipping cost discount is not recalculated correctly](./changelog/release-6-6-7-0/2024-09-16-shipping-cost-discount-is-not-recalculated-correctly.md) +* [NEXT-35455 - Prevent account menu dropdown on mobile](./changelog/release-6-6-7-0/2024-04-22-prevent-account-menu-dropdown-on-mobile.md) +* [NEXT-36016 - Improve inheritance in cms-details page](./changelog/release-6-6-7-0/2024-09-02-improve-inheritance-cms-details.md) +* [NEXT-36382 - Introduce app filesystem abstraction](./changelog/release-6-6-7-0/2024-06-25-introduce-app-filesystem-abstraction.md) +* [NEXT-36420 - Added new batch import strategy for import/export](./changelog/release-6-6-7-0/2024-09-05-added-new-batch-import-strategy-for-import-export.md) +* [NEXT-36490 - Incorrect tax calculation for shipping costs with automatic calculation with discount item](./changelog/release-6-6-7-0/2024-07-19-incorrect-tax-calculation-for-shipping-costs-with-automatic-calculation-with-discount-item.md) +* [NEXT-36697 - Double thumbnail after uploaded](./changelog/release-6-6-7-0/2024-09-10-double-thumbnail-after-uploaded.md) +* [NEXT-36851 - Moved plugin config button to main view](./changelog/release-6-6-7-0/2024-09-20-moved-plugin-config-button-to-main-view.md) +* [NEXT-36925 - Release promotion code after remove promotion line item](./changelog/release-6-6-7-0/2024-08-23-release-promotion-code-after-remove-promotion-line-item.md) +* [NEXT-37279 - Add chunkhash for async JS built files](./changelog/release-6-6-7-0/2024-08-07-add-contenthash-for-js-plugins.md) +* [NEXT-37439 - remove-bundles-from-path](./changelog/release-6-6-7-0/2024-08-30-remove-bundles-from-path.md) +* [NEXT-37456 - Fix generate individual code more than 25 items](./changelog/release-6-6-7-0/2024-08-27-Fix-generate-individual-code-more-than-25-items.md) +* [NEXT-37503 - Update variant listing config when removing variants of product](./changelog/release-6-6-7-0/2024-09-11-update-product-variant-listing-config.md) +* [NEXT-37506 - Prevent hyphens in custom field names](./changelog/release-6-6-7-0/2024-09-19-prevent-hyphens-in-custom-field-names.md) +* [NEXT-37521 - Use correct Domain for Sitemap locations in SitemapIndex](./changelog/release-6-6-7-0/2024-08-19-use-correct-domain-for-sitmap-locations-in-sitemapindex.md) +* [NEXT-37532 - Fix unselect for media base item](./changelog/release-6-6-7-0/2024-08-30-fix-unselect-for-media-base-item.md) +* [NEXT-37564 - Remove deprecations during test execution](./changelog/release-6-6-7-0/2024-08-21-remove-deprecations-during-test-execution.md) +* [NEXT-37654 - Property value is limited to 500 on when on generating variant modal](./changelog/release-6-6-7-0/2024-08-26-property-value-is-limited-to-500-on-when-on-generating-variant-modal.md) +* [NEXT-37658 - Fixed the issue where product export feed does not meet idealo requirements](./changelog/release-6-6-7-0/2024-09-18-add-striptags-to-idealo-template.md) +* [NEXT-37661 - Allow toggling page smart bar](./changelog/release-6-6-7-0/2024-09-25-allow-toggling-page-smart-bar.md) +* [NEXT-37692 - Add json output for system checks command](./changelog/release-6-6-7-0/2024-08-29-add-json-output-for-system-checks-command.md) +* [NEXT-37767 - Fixed orders of app-cms blocks via xml](./changelog/release-6-6-7-0/2024-09-09-fixed-orders-of-app-cms-blocks-via-xml.md) +* [NEXT-37832 - Changed price schema for open api spec to be more precise](./changelog/release-6-6-7-0/2024-08-22-changed-price-schema-for-openapi-spec.md) +* [NEXT-37869 - Hide update button for extensions managed by composer](./changelog/release-6-6-7-0/2024-09-25-hide-update-button-for-extensions-managed-by-composer.md) +* [NEXT-37900 - Fix test namespace regex in DefinitionValidator](./changelog/release-6-6-7-0/2024-09-23-fix-test-namespace-regex-in-definition-validator.md) +* [NEXT-37991 - Fix many to many filtered join to same table](./changelog/release-6-6-7-0/2024-08-21-fix-many-to-many-filtered-join.md) +* [NEXT-37997 - VAT is not mandatory in alternative shipping address](./changelog/release-6-6-7-0/2024-09-10-vat-not-mandatory-in-alternative-shipping-address.md) +* [NEXT-38011 - add `defineStore` method to Shopware.Store](./changelog/release-6-6-7-0/2024-08-26-add-definestore-method-to-shopware-store.md) +* [NEXT-38012 - Prevent overwriting of media path](./changelog/release-6-6-7-0/2024-08-22-prevent-overwriting-of-media-path.md) +* [NEXT-38038 - Optimizing Elasticsearch product indexing](./changelog/release-6-6-7-0/2024-09-19-optimizing-elasticsearch-product-indexing.md) +* [NEXT-38043 - Add product variants only](./changelog/release-6-6-7-0/2024-08-27-add-product-variants-only.md) +* [NEXT-38045 - Update ESLint rules](./changelog/release-6-6-7-0/2024-08-26-update-eslint-rules.md) +* [NEXT-38052 - Deprecate address card template](./changelog/release-6-6-7-0/2024-08-26-Deprecate-address-card-template.md) ([Daniel Gehn](https://github.com/iNaD)) +* [NEXT-38112 - Fix issue cart discount with rule not possible in promotion](./changelog/release-6-6-7-0/2024-09-06-fix-issue-cart-discount-with-rule-not-possible-in-promotion.md) +* [NEXT-38170 - Improve account orders accessibility](./changelog/release-6-6-7-0/2024-09-04-improve-account-orders-accessibility.md) +* [NEXT-38207 - Cash rounding for tax prices with multiple tax rules](./changelog/release-6-6-7-0/2024-09-06-cash-rounding-for-tax-prices-with-multiple-tax-rules.md) +* [NEXT-38209 - Added category object to navigation page](./changelog/release-6-6-7-0/2024-09-06-added-category-entity-to-navigaton-page.md) +* [NEXT-38229 - Add interval DAL fields to entity generator](./changelog/release-6-6-7-0/2024-09-10-add-interval-dal-fields-to-entity-generator.md) +* [NEXT-38239 - Update Twig to 3.14.0](./changelog/release-6-6-7-0/2024-09-10-update-twig.md) +* [NEXT-38241 - allow customFields on mapping on newsletter_recipient](./changelog/release-6-6-7-0/2024-09-10-allow-customfields-on-mapping-on-newsletter-recipient.md) +* [NEXT-38262 - Fix issue cart discount with total quantity rule not possible](./changelog/release-6-6-7-0/2024-09-11-fix-issue-cart-discount-with-lineitemgoodstotal-rule-not-possible.md) +* [NEXT-38266 - Expand notification message column to allow longer messages](./changelog/release-6-6-7-0/2024-09-12-expand-notification-message-column.md) +* [NEXT-38273 - Added an Import/Export locale code serialization fallback](./changelog/release-6-6-7-0/2024-09-13-added-an-import-export-locale-code-serialization-fallback.md) +* [NEXT-38309 - Fix issue cannot rename media files when remote thumbnails are enabled](./changelog/release-6-6-7-0/2024-09-13-fix-issue-cannot-rename-media-files-when-remote-thumbnails-are-enabled.md) +* [NEXT-38324 - Change size of icon for confirm field component](./changelog/release-6-6-7-0/2024-09-17-change-size-of-icon-for-confirm-field-component.md) +* [NEXT-38331 - Fix password reset validation handling](./changelog/release-6-6-7-0/2024-09-23-fix-password-reset-validation-handling.md) +* [NEXT-38407 - Remove duplicate twig block](./changelog/release-6-6-7-0/2022-04-05-remove-duplicate-twig-block.md) +* [NEXT-38409 - Load all languages in snippet modal](./changelog/release-6-6-7-0/2024-09-23-load-all-languages-in-snippet-modal.md) +* [NEXT-38420 - Make StateAwareTrait serializable](./changelog/release-6-6-7-0/2024-09-25-make-stateawaretrait-serializable.md) +* [NEXT-38427 - Sort sales channels in product visibility selection](./changelog/release-6-6-7-0/2024-09-19-sort-sales-channels-in-product-visibility-selection.md) ([Marcus Müller](https://github.com/M-arcus)) +* [NEXT-38436 - Fix birthday display in admin](./changelog/release-6-6-7-0/2024-09-26-fix-birthday-display-in-admin.md) +* [NEXT-38495 - Update account accordion to Bootstrap version 5](./changelog/release-6-6-7-0/2024-10-01-update-account-accordion-to-bootstrap-version-5.md) +* [NEXT-38520 - Block double password recovery form submissions](./changelog/release-6-6-7-0/2024-09-24-block-double-password-recovery-form-submissions-md.md) ([Bart Vanderstukken](https://github.com/sneakyvv)) +* [NEXT-38521 - Add srsltid parameter to ignored http cache parameters](./changelog/release-6-6-7-0/2024-09-27-ignore-srsltid-parameter-for-cache.md) ([Wanne Van Camp](https://github.com/wannevancamp)) +* [NEXT-38642 - add sw-users-permissions-user-detail-integrations position identifier](./changelog/release-6-6-7-0/2024-10-01-add-sw-users-permissions-user-detail-integrations-position-identifier.md) +* [NEXT-7505 - Improved extensibility of CMS resolvers](./changelog/release-6-6-7-0/2024-08-22-improved-extensibility-for-cms-resolvers.md) + ## 6.6.6.1 * [NEXT-33697 - Fix product slider unwanted slides on slider item clicks](./changelog/release-6-6-6-1/2024-09-05-fix-product-slider.md) * [NEXT-31669 - Cache name fix](./changelog/release-6-6-6-1/2024-09-06-cache-name-fix.md) diff --git a/UPGRADE-6.6.md b/UPGRADE-6.6.md index 0590ea22078..09742d5faf1 100644 --- a/UPGRADE-6.6.md +++ b/UPGRADE-6.6.md @@ -1,3 +1,112 @@ +# 6.6.7.0 +## Shortened filenames with hashes for async JS built files +When building the Storefront JS-files for production using `composer run build:storefront`, the async bundle filenames no longer contain the filepath. +Instead, only the filename is used with a chunkhash / dynamic version number. This also helps to identify which files have changed after build. Similar to the main entry file like e.g. `cms-extensions.js?1720776107`. + +**JS Filename before change in dist:** +``` +└── custom/apps/ + └── ExampleCmsExtensions/src/Resources/app/storefront/dist/storefront/js/ + └── cms-extensions/ + ├── cms-extensions.js <-- The main entry pint JS-bundle + └── custom_plugins_CmsExtensions_src_Resources_app_storefront_src_cms-extensions-quickview.js <-- Complete path in filename +``` + +**JS Filename after change in dist:** +``` +└── custom/apps/ + └── ExampleCmsExtensions/src/Resources/app/storefront/dist/storefront/js/ + └── cms-extensions/ + ├── cms-extensions.js <-- The main entry pint JS-bundle + └── cms-extensions-quickview.plugin.423fc1.js <-- Filename and chunkhash +``` +## Persistent mode for `focusHandler` +The `window.focusHandler` now supports a persistent mode that can be used in case the current focus is lost after a page reload. +When using methods `saveFocusStatePersistent` and `resumeFocusStatePersistent` the focus element will be saved inside the `sessionStorage` instead of the window object / memory. + +The persistent mode requires a key name for the `sessionStorage` as well as a unique selector as string. It is not possible to save element references into the `sessionStorage`. +The unique selector will be used to find the DOM element during `resumeFocusStatePersistent` and re-focus it. +```js +// Save the current focus state +window.focusHandler.saveFocusStatePersistent('special-form', '#unique-id-on-this-page'); + +// Something happens and the page reloads +window.location.reload(); + +// Resume the focus state for the key `special-form`. The unique selector will be retrieved from the `sessionStorage` +window.focusHandler.resumeFocusStatePersistent('special-form'); +``` + +By default, the storage keys are prefixed with `sw-last-focus`. The above example will save the following to the `sessionStorage`: + +| key | value | +|------------------------------|---------------------------| +| `sw-last-focus-special-form` | `#unique-id-on-this-page` | + +## Automatic focus for `FormAutoSubmitPlugin` +The `FormAutoSubmitPlugin` can now try to re-focus elements after AJAX submits or full page reloads using the `window.focusHandler`. +This works automatically for all form input elements inside an auto submit form that have a `[data-focus-id]` attribute that is unique. + +The automatic focus is activated by default and be modified by the new JS-plugin options: + +```js +export default class FormAutoSubmitPlugin extends Plugin { + static options = { + autoFocus: true, + focusHandlerKey: 'form-auto-submit' + } +} +``` + +```diff +
+``` +## Improved formating behaviour of the text editor +The text editor in the administration was changed to produce paragraph `` elements for new lines instead of `
` element on initializing a new line via the enter key. In the past it could happen that when starting to write in an empty text editor, that text is not wrapped in a proper section element. Now this is automatically fixed when you add a first new line to your text. From then on everything is wrapped in paragraph elements and every new line will also create a new paragraph instead of `