Skip to content

Commit 7b4fc93

Browse files
committed
MAGE-998 Remove algoliaBundle references
1 parent 2fdcbcc commit 7b4fc93

File tree

5 files changed

+8
-12
lines changed

5 files changed

+8
-12
lines changed

view/frontend/requirejs-config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ var config = {
2323
}
2424
},
2525
paths : {
26-
'algoliaBundle' : 'Algolia_AlgoliaSearch/js/internals/algoliaBundle.min',
2726
'algoliaSearchLib' : 'Algolia_AlgoliaSearch/js/lib/algolia-search.min',
2827
'algoliaInstantSearchLib' : 'Algolia_AlgoliaSearch/js/lib/algolia-instantsearch.min',
2928
'algoliaAutocompleteLib' : 'Algolia_AlgoliaSearch/js/lib/algolia-autocomplete.min',
@@ -34,8 +33,9 @@ var config = {
3433
'rangeSlider' : 'Algolia_AlgoliaSearch/js/navigation/range-slider-widget',
3534

3635
// Legacy
37-
'algoliaHoganLib' : 'Algolia_AlgoliaSearch/js/lib/hogan.min',
38-
'algoliaMustacheLib' : 'Algolia_AlgoliaSearch/js/lib/mustache.min'
36+
'algoliaBundle' : 'Algolia_AlgoliaSearch/js/internals/algoliaBundle.min', // DEPRECATED - to be removed
37+
'algoliaHoganLib' : 'Algolia_AlgoliaSearch/js/lib/hogan.min',
38+
'algoliaMustacheLib': 'Algolia_AlgoliaSearch/js/lib/mustache.min'
3939
},
4040
deps : [
4141
'algoliaInstantSearch',

view/frontend/web/js/autocomplete.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
define([
22
'jquery',
3-
'algoliaBundle',
43
'algoliaSearchLib',
54
'algoliaAutocompleteLib',
65
'algoliaQuerySuggestionsPluginLib',
@@ -15,7 +14,6 @@ define([
1514
'domReady!',
1615
], function (
1716
$,
18-
algoliaBundle,
1917
algoliasearch,
2018
autocomplete,
2119
querySuggestionsPlugin,

view/frontend/web/js/insights.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
define([
22
'jquery',
33
'algoliaAnalytics',
4-
'algoliaBundle',
54
'algoliaCommon',
65
'mage/cookies',
7-
], function ($, algoliaAnalyticsWrapper, algoliaBundle) {
6+
], function ($, algoliaAnalyticsWrapper) {
87
algoliaAnalytics = algoliaAnalyticsWrapper.default;
98

109
window.algoliaInsights = {
@@ -223,7 +222,7 @@ define([
223222

224223
algolia.registerHook(
225224
'afterInstantsearchStart',
226-
function (search, algoliaBundle) {
225+
function (search) {
227226
var selectors = document.querySelectorAll(containers.join(', '));
228227
selectors.forEach(function (e) {
229228
e.addEventListener('click', function (event) {

view/frontend/web/js/internals/common.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
define(['jquery', 'algoliaBundle'], function ($, algoliaBundle) {
1+
define(['jquery', 'algoliaInstantSearchLib'], function ($, instantsearch) {
22
// Character maps supplied for more performant Regex ops
33
const SPECIAL_CHAR_ENCODE_MAP = {
44
'&': '&',
@@ -305,7 +305,7 @@ define(['jquery', 'algoliaBundle'], function ($, algoliaBundle) {
305305
// Multivalued facets use "~" as separator
306306
// Targeted index is defined by sortBy parameter
307307
window.routing = {
308-
router: algoliaBundle.instantsearch.routers.history({
308+
router: instantsearch.routers.history({
309309
parseURL: function (qsObject) {
310310
var location = qsObject.location,
311311
qsModule = qsObject.qsModule;

view/frontend/web/js/recommend.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
define([
22
'jquery',
3-
'algoliaBundle',
43
'recommend',
54
'recommendJs',
65
'recommendProductsHtml',
76
'domReady!',
8-
], function ($, algoliaBundle, recommend, recommendJs, recommendProductsHtml) {
7+
], function ($, recommend, recommendJs, recommendProductsHtml) {
98
'use strict';
109

1110
if (typeof algoliaConfig === 'undefined') {

0 commit comments

Comments
 (0)