Skip to content

Changes related to the next Meilisearch release (v0.28.0) #236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ module.exports = {
PLACEHOLDER: 'readonly',
LAYOUT: 'readonly',
DEBUG: 'readonly',
ENABLE_DARK_MODE: 'readonly'
ENABLE_DARK_MODE: 'readonly',
CLIENT_AGENTS: 'readonly'
},
parserOptions: {
parser: 'babel-eslint',
Expand Down
1 change: 1 addition & 0 deletions MeiliSearchBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default {
hostUrl: HOST_URL,
apiKey: API_KEY,
indexUid: INDEX_UID,
clientAgents: CLIENT_AGENTS,
meilisearchOptions: {
limit:
MAX_SUGGESTIONS || this.$site.themeConfig.searchMaxSuggestions || 5,
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ You can also find an example in our [playground's `palette.styl` file](./playgro

## Compatibility with Meilisearch

This package only guarantees the compatibility with the [version v0.27.0 of Meilisearch](https://github.com/meilisearch/meilisearch/releases/tag/v0.27.0).
This package only guarantees the compatibility with the [version v0.28.0 of Meilisearch](https://github.com/meilisearch/meilisearch/releases/tag/v0.28.0).

## Development Workflow and Contributing

Expand Down
11 changes: 11 additions & 0 deletions client_agents.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const { version } = require('./package.json')

const constructClientAgents = (clientAgents = []) => {
const vuepressAgents = `Meilisearch Vuepress (v${version})`

return clientAgents.concat(vuepressAgents)
}

module.exports = {
constructClientAgents
}
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const path = require('path')

const { constructClientAgents } = require('./client_agents')

module.exports = (options) => {
return {
alias: {
Expand All @@ -15,7 +17,8 @@ module.exports = (options) => {
CROP_LENGTH: options.cropLength || 30,
LAYOUT: options.layout || 'columns',
DEBUG: options.debug || false,
ENABLE_DARK_MODE: options.enableDarkMode || false
ENABLE_DARK_MODE: options.enableDarkMode || false,
CLIENT_AGENTS: constructClientAgents(options.clientAgents) || []
}
}
}
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module.exports = {
CROP_LENGTH: 30,
LAYOUT: 'columns',
DEBUG: false,
ENABLE_DARK_MODE: false
ENABLE_DARK_MODE: false,
CLIENT_AGENTS: []
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"main": "index.js",
"dependencies": {
"docs-searchbar.js": "^2.1.1"
"docs-searchbar.js": "^2.2.0"
},
"resolutions": {
"yargs-parser": "^13.1.2"
Expand Down
2 changes: 1 addition & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"setup": "node setup.js"
},
"dependencies": {
"meilisearch": "^0.25.0",
"meilisearch": "^0.27.0",
"vuepress": "^1.4.1",
"vuepress-theme-default-prefers-color-scheme": "^2.0.0"
}
Expand Down
2 changes: 1 addition & 1 deletion playground/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,6 @@ const { MeiliSearch } = require('meilisearch')

const response = await index.addDocuments(dataset)

const task = await client.waitForTask(response.uid)
const task = await client.waitForTask(response.taskUid)
console.log(task)
})()
8 changes: 4 additions & 4 deletions playground/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4837,10 +4837,10 @@ [email protected]:
resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748"
integrity sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=

meilisearch@^0.25.0:
version "0.25.0"
resolved "https://registry.yarnpkg.com/meilisearch/-/meilisearch-0.25.0.tgz#8e980fbdd36b9fe6ed606205e262418f21e64d84"
integrity sha512-TSIJTh5lva7WHBaoG3arNYQXuIAQkcD3BY09h2nHhjHS/wzxWKJM45x5bEC67Grw8zXihVqqmWty4a4ps4S+tg==
meilisearch@^0.27.0:
version "0.27.0"
resolved "https://registry.yarnpkg.com/meilisearch/-/meilisearch-0.27.0.tgz#8bd57ddb77b975f93e054cb977b951c488ece297"
integrity sha512-kZOZFIuSO7c6xRf+Y2/9/h6A9pl0sCl/G44X4KuaSwxGbruOZPhmxbeVEgLHBv4pUFvQ56rNVTA/2d/5GCU1YA==
dependencies:
cross-fetch "^3.1.5"

Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3760,13 +3760,13 @@ dns-txt@^2.0.2:
dependencies:
buffer-indexof "^1.0.0"

docs-searchbar.js@^2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/docs-searchbar.js/-/docs-searchbar.js-2.1.1.tgz#ed9519c0f39a99ad9d231963245e4fc81edd994b"
integrity sha512-K9QkhpLUi8KRoEoI8Gz7dOAYHSPUZ0uB3qb0QkWsq9cU+FAMCZPQoePfN9TObTKcX95AYQUXHV2cgd1StHYWrg==
docs-searchbar.js@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/docs-searchbar.js/-/docs-searchbar.js-2.2.0.tgz#e60eb0ee4f67853c41fdf7d3a4ef6ac7ac2c8027"
integrity sha512-rleKMiTkxG14M+6yt3+H8H0w/GKxWsNMinf4+zTVz9aVi04oJ8u37kktTiW3qkpPl9VQ7/i7Yv9wykukMqVxfw==
dependencies:
autocomplete.js "^0.38.1"
meilisearch "^0.25.0"
meilisearch "^0.27.0"
to-factory "^1.0.0"
zepto "^1.2.0"

Expand Down Expand Up @@ -6673,10 +6673,10 @@ [email protected]:
resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748"
integrity sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=

meilisearch@^0.25.0:
version "0.25.0"
resolved "https://registry.yarnpkg.com/meilisearch/-/meilisearch-0.25.0.tgz#8e980fbdd36b9fe6ed606205e262418f21e64d84"
integrity sha512-TSIJTh5lva7WHBaoG3arNYQXuIAQkcD3BY09h2nHhjHS/wzxWKJM45x5bEC67Grw8zXihVqqmWty4a4ps4S+tg==
meilisearch@^0.27.0:
version "0.27.0"
resolved "https://registry.yarnpkg.com/meilisearch/-/meilisearch-0.27.0.tgz#8bd57ddb77b975f93e054cb977b951c488ece297"
integrity sha512-kZOZFIuSO7c6xRf+Y2/9/h6A9pl0sCl/G44X4KuaSwxGbruOZPhmxbeVEgLHBv4pUFvQ56rNVTA/2d/5GCU1YA==
dependencies:
cross-fetch "^3.1.5"

Expand Down