You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/instantsearch.js/src/helpers/highlight.ts
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15,12 +15,22 @@ export type HighlightOptions = {
15
15
16
16
constsuit=component('Highlight');
17
17
18
+
/**
19
+
* @deprecated use html tagged templates and the Highlight component instead
20
+
*/
18
21
exportdefaultfunctionhighlight({
19
22
attribute,
20
23
highlightedTagName ='mark',
21
24
hit,
22
25
cssClasses ={},
23
26
}: HighlightOptions): string{
27
+
warning(
28
+
false,
29
+
`\`instantsearch.highlight\` function has been deprecated. It is still supported in 4.x releases, but not further. It is replaced by the \`Highlight\` component.
30
+
31
+
For more information, visit https://www.algolia.com/doc/guides/building-search-ui/upgrade-guides/js/?client=html+tagged+templates#upgrade-templates`
Copy file name to clipboardExpand all lines: packages/instantsearch.js/src/helpers/reverseHighlight.ts
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -22,12 +22,22 @@ export type ReverseHighlightOptions = {
22
22
23
23
constsuit=component('ReverseHighlight');
24
24
25
+
/**
26
+
* @deprecated use html tagged templates and the ReverseHighlight component instead
27
+
*/
25
28
exportdefaultfunctionreverseHighlight({
26
29
attribute,
27
30
highlightedTagName ='mark',
28
31
hit,
29
32
cssClasses ={},
30
33
}: ReverseHighlightOptions): string{
34
+
warning(
35
+
false,
36
+
`\`instantsearch.reverseHighlight\` function has been deprecated. It is still supported in 4.x releases, but not further. It is replaced by the \`ReverseHighlight\` component.
37
+
38
+
For more information, visit https://www.algolia.com/doc/guides/building-search-ui/upgrade-guides/js/?client=html+tagged+templates#upgrade-templates`
Copy file name to clipboardExpand all lines: packages/instantsearch.js/src/helpers/reverseSnippet.ts
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -22,12 +22,22 @@ export type ReverseSnippetOptions = {
22
22
23
23
constsuit=component('ReverseSnippet');
24
24
25
+
/**
26
+
* @deprecated use html tagged templates and the ReverseSnippet component instead
27
+
*/
25
28
exportdefaultfunctionreverseSnippet({
26
29
attribute,
27
30
highlightedTagName ='mark',
28
31
hit,
29
32
cssClasses ={},
30
33
}: ReverseSnippetOptions): string{
34
+
warning(
35
+
false,
36
+
`\`instantsearch.reverseSnippet\` function has been deprecated. It is still supported in 4.x releases, but not further. It is replaced by the \`ReverseSnippet\` component.
37
+
38
+
For more information, visit https://www.algolia.com/doc/guides/building-search-ui/upgrade-guides/js/?client=html+tagged+templates#upgrade-templates`
Copy file name to clipboardExpand all lines: packages/instantsearch.js/src/helpers/snippet.ts
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15,12 +15,22 @@ export type SnippetOptions = {
15
15
16
16
constsuit=component('Snippet');
17
17
18
+
/**
19
+
* @deprecated use html tagged templates and the Snippet component instead
20
+
*/
18
21
exportdefaultfunctionsnippet({
19
22
attribute,
20
23
highlightedTagName ='mark',
21
24
hit,
22
25
cssClasses ={},
23
26
}: SnippetOptions): string{
27
+
warning(
28
+
false,
29
+
`\`instantsearch.snippet\` function has been deprecated. It is still supported in 4.x releases, but not further. It is replaced by the \`Snippet\` component.
30
+
31
+
For more information, visit https://www.algolia.com/doc/guides/building-search-ui/upgrade-guides/js/?client=html+tagged+templates#upgrade-templates`
0 commit comments