Commit c507965
committed
fix(methods): remove deprecated helper methods (#6402)
* fix(methods): remove addDisjunctiveRefine
BREAKING CHANGE: addDisjunctiveRefine is replaced with addDisjunctiveFacetRefinement
* fix(methods): remove removeDisjunctiveRefine
BREAKING CHANGE: removeDisjunctiveRefine is replaced with removeDisjunctiveFacetRefinement
* fix(methods): remove addRefine
BREAKING CHANGE: addRefine is replaced with addFacetRefinement
* fix(methods): remove addExclude
BREAKING CHANGE: addExclude is replaced with addFacetExclusion
* fix(methods): remove removeRefine
BREAKING CHANGE: removeRefine is replaced with removeFacetRefinement
* fix(methods): remove removeExclude
BREAKING CHANGE: removeExclude is replaced with removeFacetExclusion
* fix(methods): remove toggleExclude
BREAKING CHANGE: toggleExclude is replaced with toggleFacetExclusion
* fix(methods): remove toggleRefine
BREAKING CHANGE: toggleRefine is replaced with toggleFacetRefinement
* fix(methods): remove toggleRefinement
BREAKING CHANGE: toggleRefinement is replaced with toggleFacetRefinement
* fix(methods): remove isExcluded, isDisjunctiveRefined, hasTag, isTagRefined
These methods are available from the SearchParameters / helper.state instead
BREAKING CHANGE: replace helper.isExcluded with helper.state.isExcludeRefined
BREAKING CHANGE: replace helper.isDisjunctiveRefined with helper.state.isDisjunctiveFacetRefined
BREAKING CHANGE: replace helper.hasTag with helper.state.isTagRefined
BREAKING CHANGE: replace helper.isTagRefined with helper.state.isTagRefined
* fix(methods): remove setCurrentPage
BREAKING CHANGE: setCurrentPage is replaced with setPage
* fix(methods): remove getCurrentPage
BREAKING CHANGE: getCurrentPage is replaced with getPage
* fix(methods): remove getFacetByName
BREAKING CHANGE: getFacetByName (on search results) is replaced by calling results.xxxfacets.find(f => f.name === name) yourself (where xxxfacets is facets, disjunctiveFacets or hierarchicalFacets depending on your use case)
* fix(methods): remove containsRefinement
BREAKING CHANGE: containsRefinement is removed. Instead check the length of the arguments directly.1 parent 342d1ef commit c507965
File tree
35 files changed
+214
-506
lines changed- packages/algoliasearch-helper
- documentation-src/content
- src
- SearchParameters
- SearchResults
- test
- integration-spec
- spec
- SearchResults
- algoliasearch.helper
- hierarchical-facets
35 files changed
+214
-506
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
388 | | - | |
389 | | - | |
390 | 388 | | |
391 | 389 | | |
392 | 390 | | |
| |||
409 | 407 | | |
410 | 408 | | |
411 | 409 | | |
412 | | - | |
413 | | - | |
414 | 410 | | |
415 | 411 | | |
416 | 412 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | 240 | | |
245 | 241 | | |
246 | 242 | | |
247 | 243 | | |
248 | 244 | | |
249 | 245 | | |
250 | 246 | | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | 247 | | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | 248 | | |
261 | 249 | | |
262 | 250 | | |
| |||
279 | 267 | | |
280 | 268 | | |
281 | 269 | | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | 270 | | |
287 | 271 | | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | 272 | | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | 273 | | |
298 | 274 | | |
299 | 275 | | |
300 | 276 | | |
301 | 277 | | |
302 | 278 | | |
303 | 279 | | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | 280 | | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | 281 | | |
318 | 282 | | |
319 | 283 | | |
320 | 284 | | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | 285 | | |
326 | 286 | | |
327 | 287 | | |
| |||
338 | 298 | | |
339 | 299 | | |
340 | 300 | | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | 301 | | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | 302 | | |
357 | 303 | | |
358 | 304 | | |
359 | 305 | | |
360 | 306 | | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | 307 | | |
366 | 308 | | |
367 | 309 | | |
| |||
1382 | 1324 | | |
1383 | 1325 | | |
1384 | 1326 | | |
1385 | | - | |
1386 | | - | |
1387 | | - | |
1388 | | - | |
1389 | | - | |
1390 | | - | |
1391 | | - | |
1392 | | - | |
1393 | 1327 | | |
1394 | 1328 | | |
1395 | 1329 | | |
| |||
Lines changed: 2 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1049 | 1049 | | |
1050 | 1050 | | |
1051 | 1051 | | |
1052 | | - | |
1053 | | - | |
1054 | | - | |
1055 | | - | |
1056 | | - | |
1057 | | - | |
1058 | | - | |
1059 | | - | |
1060 | | - | |
1061 | | - | |
1062 | | - | |
1063 | | - | |
1064 | 1052 | | |
1065 | 1053 | | |
1066 | 1054 | | |
| |||
1190 | 1178 | | |
1191 | 1179 | | |
1192 | 1180 | | |
1193 | | - | |
| 1181 | + | |
1194 | 1182 | | |
1195 | 1183 | | |
1196 | 1184 | | |
1197 | | - | |
| 1185 | + | |
1198 | 1186 | | |
1199 | 1187 | | |
1200 | 1188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | 663 | | |
682 | 664 | | |
683 | 665 | | |
| |||
0 commit comments