Skip to content

Commit

Permalink
feat: Update warning for createAlgoliaClient
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour committed Apr 26, 2018
1 parent dca3fab commit fa0ca7f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/InstantSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ class InstantSearch extends EventEmitter {

if (options.createAlgoliaClient) {
// eslint-disable-next-line no-console
console.warn(
'InstantSearch.js: `createAlgoliaClient` option is deprecated and will be removed in the next major version.' +
'Please use `searchClient` instead: https://community.algolia.com/instantsearch.js/v2/instantsearch.html#struct-InstantSearchOptions-searchClient.'
);
console.warn(`
InstantSearch.js: \`createAlgoliaClient\` option is deprecated and will be removed in the next major version.
Please use \`searchClient\` instead: https://community.algolia.com/instantsearch.js/v2/instantsearch.html#struct-InstantSearchOptions-searchClient.
To help you migrate, please refer to the migration guide: https://community.algolia.com/instantsearch.js/v2/guides/prepare-for-v3.html`);
}
}

Expand Down

0 comments on commit fa0ca7f

Please sign in to comment.