Skip to content

Commit 4fd72e7

Browse files
committed
MAGE-899 clarify deprecation
1 parent d28ba35 commit 4fd72e7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

view/frontend/web/js/autocomplete.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ define([
225225
this.buildAutocompleteSource(section, searchClient)
226226
);
227227

228-
// DEPRECATED location - retaining for backward compatibility but `beforeAutcompleteSources` behavior belongs earlier in the process and will be relocated in a future version
228+
// DEPRECATED - retaining for backward compatibility but `beforeAutcompleteSources` may be removed or relocated in a future version
229229
sources = algoliaCommon.triggerHooks(
230230
'beforeAutocompleteSources',
231231
sources,
@@ -387,15 +387,15 @@ define([
387387
* @returns options object
388388
*/
389389
buildProductSourceOptions(section, options) {
390-
options.facets = ['categories.level0'];
391-
options.numericFilters = 'visibility_search=1';
392-
options.ruleContexts = ['magento_filters', '']; // Empty context to keep backward compatibility for already created rules in dashboard
393-
394-
// DEPRECATED - retaining for backward compatibility but `beforeAutocompleteProductSourceOptions` will likely be removed in a future version
390+
// DEPRECATED - retaining for backward compatibility but `beforeAutocompleteProductSourceOptions` may be removed in a future version
395391
options = algoliaCommon.triggerHooks(
396392
'beforeAutocompleteProductSourceOptions',
397393
options
398394
);
395+
396+
options.facets = ['categories.level0'];
397+
options.numericFilters = 'visibility_search=1';
398+
options.ruleContexts = ['magento_filters', '']; // Empty context to keep backward compatibility for already created rules in dashboard
399399

400400
options = algoliaCommon.triggerHooks(
401401
'afterAutocompleteProductSourceOptions',

0 commit comments

Comments
 (0)