Skip to main content
Version: next

Deprecated code removal

Here is the list of the deprecated code that has been removed in version 3 of Front-Commerce.

In the schema of the Graph

Several fields and a mutation were deprecated, they have been removed:

Theme components

Those 2 merge requests removed deprecated theme components or exports that are unlikely to affect your project:

Some properties of several React components were already deprecated in 2.0, those have been removed in the following merge requests:

Deprecated features

Legacy Analytics

The legacy analytics implementation based on analytics.js has been removed in Remove legacy analytics.

Wysiwyg (V1)

The legacy Wysiwyg (V1) implementation has been removed in [Remove legacy Wysiwyg] (https://gitlab.blackswift.cloud/front-commerce/front-commerce/-/merge_requests/1929)

The WysiwygV2 implementation has been renamed to Wysiwyg in this merge request. To ensure that you are using the correct version of the component, before running the automated migration process step, you should search for any imports in your codebase which is still targeting Wysiwyg (V1) implementation: theme/modules/Wysiwyg, and follow the documentation to update the usages to WysiwygV2.

After running the automated migration process step, all related imports will be automatically updated, for example:

js:
- import Wysiwyg from "theme/modules/WysiwygV2";
+ import Wysiwyg from "theme/modules/Wysiwyg";

gql:
- #import "theme/modules/WysiwygV2/WysiwygFragment.gql"
+ #import "theme/modules/Wysiwyg/WysiwygFragment.gql"
info

If you imported WysiwygV2 styles in your SCSS code, you will need to ensure the import now target Wysiwyg instead:

- @import "~theme/modules/WysiwygV2/Wysiwyg";
+ @import "~theme/modules/Wysiwyg/Wysiwyg";

Here is a list of components which have been updated to use the equivalent WysiwygV2 based field:

We also removed the following as it no longer has any use after the removal of Wysiwyg (V1):

  • Removed CmsBlock which it was essentially re-implementing WysiwygV2 while keeping support for WysiwygV1 which is now removed.
  • Removed config/licenses which took in an html string based on storeView, this was used by the GscText component, we have opted to inline the licenses config, which in turn will allow to apply translations to the text.

Backend

Deprecated public loader methods

Deprecated public methods of loaders have been removed:

Support for old version of Magento1 and Magento2 modules

The support for old versions of the Magento modules has been removed, please upgrade Front-Commerce's Magento modules to the latest version.

During the 2.x releases we have improved the datasource mechanism which involved deprecating files and various functions. When used in a project, those element were issuing a deprecation warnings. All the deprecated datasource related code has been removed in the following merge requests:

Implementation changes

Deprecated implementations of several features have been removed. Those changes are unlikely to affect your project:

Internal APIs

Those merge requests have removed internal APIs that are unlikely to affect your project.

Features

Some code has also been removed while not explicitly deprecated in 2.x. Most of the time it was because the feature was not used or made obsolete with the release of 3.x.

Please read the features removal page for more information.