Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

v4.0.0-beta.1

Compare
Choose a tag to compare
@instantsearch-bot instantsearch-bot released this 29 Jul 14:55
· 68 commits to master since this release
ef9cc81

4.0.0-beta.1 (2021-07-29)

Vue InstantSearch now supports Vue 3.

Breaking Change for Vue 2 users with SSR

From now on, Vue InstantSearch dynamically imports vue-server-renderer/basic instead of require().

  • If you're using CJS output of Vue InstantSearch, it doesn't change anything for you because it gets transpiled to require for CJS output.
  • If you're using ESM output, it should probably be okay. We've tested "dynamic import" with Vue 2 (vue-cli) and Nuxt and it worked fine.

If you have different setup or use different bundler, you may check if it still works for you. If not, please create an issue with a reproducible example.

For Vue 3 users

Vue InstantSearch includes two packages, one for vue 2 and another one for vue 3. So for vue 3, you need to import with this path:

import InstantSearch from 'vue-instantsearch/dist/vue3/es';

Regarding vue-router@v4

If you migrate your vue-router to v4 along with vue 3, you need to replace

vueRouter.currentRoute.query

with

vueRouter.currentRoute.value.query

due to its change.