Skip to content

fix(deps): update dependency meilisearch to ^0.50.0 #1786

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 7, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
meilisearch ^0.41.0 -> ^0.50.0 age adoption passing confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

meilisearch/meilisearch-js (meilisearch)

v0.50.0: 🌻

Compare Source

This release adds new features related to Meilisearch 1.14.

⚠️ Breaking changes

[!important]
The Meilisearch class now accepts a requestInit parameter instead of requestConfig. Parameters of requestInit are the same, except it no longer accepts signal.

const client = new Meilisearch({
  host: 'https://edge.meilisearch.com',
  apiKey: 'your meilisearch API key',
  // `requestConfig` is removed, use `requestInit` instead
  requestInit: {
    headers: {
      "A-Http-Header": "The Value",
    },
  },
});

[!important]

  • TaskClient is no longer exported, use it through the Meilisearch class tasks property (e.g. client.tasks) or Index class (e.g. client.index('index').tasks)
  • Batch, EnqueuedTask, and Task are no longer classes (the types are still exported)
  • Date properties on Batch, EnqueuedTask, and Task are now string. They can be converted to date using i.e. new Date(string)
  • Renamed MeiliSearchTimeOutError to MeiliSearchRequestTimeOutError

🚀 Enhancements

🐛 Bug Fixes

⚙️ Maintenance/misc

Thanks again to @​Barabasbalazs, @​Strift, @​consoleLogIt, and @​flevi29! 🎉

v0.49.0: 🕊️

Compare Source

This version introduces features released on Meilisearch v1.13.0 🎉

✨ New

🐛 Bug Fixes

⚙️ Maintenance/misc

Thanks again to @​flevi29 and @​Strift! 🎉

v0.48.2: 🌻

Compare Source

🐛 Bug Fixes

Thanks again to @​flevi29, @​meili-bors[bot] ! 🎉

v0.48.1: 🌻

Compare Source

🐛 Bug Fixes

Thanks again to @​flevi29, @​meili-bors[bot] ! 🎉

v0.48.0: 🌻

Compare Source

⚠️ Breaking changes

Migration

Replace:

await generateTenantToken("74c9c733-3368-4738-bbe5-1d18a5fecb37", [], {
	apiKey: "0a6e572506c52ab0bd6195921575d23092b7f0c284ab4ac86d12346c33057f99",
	expiresAt: new Date("December 17, 4000 03:24:00"),
});

By:

await generateTenantToken({
	apiKey: "0a6e572506c52ab0bd6195921575d23092b7f0c284ab4ac86d12346c33057f99",
	apiKeyUid: "74c9c733-3368-4738-bbe5-1d18a5fecb37",
	searches: [],
	expiresAt: new Date("December 17, 4000 03:24:00"),
});

⚙️ Maintenance

Thanks again to @​Strift, @​ellnix, and @​flevi29 🎉

v0.47.0: 🌻

Compare Source

This version introduces features released on Meilisearch v1.12.0 🎉

Check out the Meilisearch v1.12.0 changelog for more information.

🚀 Enhancements

Introducing new methods to get one or several batches, respectively getBatch() and getBatches().

// fetch one batch using batch UID
const batch = await client.getBatch(123)

// fetch all batches
const batches = await client.getBatches()

The getTasks() methods now accept a reverse parameter to retrieve tasks in reverse chronological order.

const tasks = await client.getTasks({ reverse: true });

Index settings now allow disabling prefix search and facet search. They're both enabled by default. The SDK now comes with dedicated methods to configure these settings.

// disable prefix search
await client.index('myIndex').updatePrefixSearch('disabled')
// reset prefix search settings
await client.index('myIndex').resetPrefixSearch()

// disable facet search
await client.index('myIndex').updateFacetSearch(false)
// reset facet search settings
await client.index('myIndex').resetFacetSearch()

The _matchesPosition array now contains an indices array the text was matched in an array.

When searching for fantasy in a document that has a searchable genre field with the value genre: ["fantasy", "adventure"], the matches position will be as follow:

{
  genre: [{ start: 0, length: 7, indices: [0] }]
}

Which means:

  • There was a single match in the genre array (array length == 1)
  • The match started as position 0 (the first character, "f")
  • The match has a length of 7 (the entire "fantasy" word)
  • The match was in the first item of the array (indices == [0])

⚙️ Maintenance/misc

Thanks again to @​Barabasbalazs, @​mdubus, @​irevoire, @​curquiza, and @​Strift. 🎉

v0.46.0: 🌻

Compare Source

⚠️ Breaking changes

Old:

import { MeiliSearch } from "meilisearch";

const client = new MeiliSearch({ host: "http://127.0.0.1:7700", apiKey: "masterKey" });
const token = await client.generateTenantToken("e489fe16-3381-431b-bee3-00430192915d");

// ...

New:

import { generateTenantToken } from "meilisearch/token";

const token = await generateTenantToken("e489fe16-3381-431b-bee3-00430192915d", [], { apiKey: "masterKey" });

// ...

🐛 Bug Fixes

🔒 Security

Thanks again to @​Barabasbalazs, @​flevi29, @​mdubus! 🎉

v0.45.0: 🌻

Compare Source

This version introduces features released on Meilisearch v1.11.0 🎉
Check out the changelog of Meilisearch v1.11.0 for more information on the changes.

⚠️ Breaking changes (experimental feature only)
🚀 Enhancements
⚙️ Maintenance/misc

Thanks again to @​Barabasbalazs, @​brunoocasali, @​curquiza, @​mdubus! 🎉

v0.44.1: 🌻

Compare Source

🐛 Bug Fixes

Thanks again to @​flevi29 and @​knd775 for the report! 🎉

v0.44.0: 🌻

Compare Source

⚠️ Breaking changes

  • Add package.json "exports" field (#​1611) @​flevi29
    Could be a breaking change for anyone who was importing anything other than what we have in the "exports" package.json field.

⚙️ Maintenance/misc

Thanks again to @​flevi29, @​meili-bors[bot] ! 🎉

v0.43.0: 🌻

Compare Source

⚠️ Breaking changes

🔒 Security

  • build(deps): bump elliptic from 6.5.4 to 6.5.7 in /playgrounds/javascript (#​1699)
  • build(deps): bump serve-static from 1.14.1 to 1.16.2 in /playgrounds/javascript (#​1700)

⚙️ Maintenance/misc

Thanks again to @​brunoocasali, @​curquiza, @​flevi29, @​meili-bors[bot] ! 🎉

v0.42.0: 🌻

Compare Source

This version introduces features released on Meilisearch v1.10.0 🎉
Check out the changelog of Meilisearch v1.10.0 for more information on the changes.

⚠️ Breaking changes

  • Improve errors (#​1656) @​/flevi29
    More details here
  • Changes related to Hybrid search (experimental) for the REST embedder (#​1692) @​mdubus
    • Removed parameters: query, inputField, inputType, pathToEmbeddings and embeddingObject.
    • Replaced by request and response
    • New parameter: headers

🚀 Enhancements

  • Hybrid search improvements (#​1692) @​mdubus

    • Add url parameter to the OpenAI embedder
    • dimensions is now available as an optional parameter for ollama embedders.
  • Add federated search parameters (#​1689) @​flevi29

client.multiSearch({
    federation: {},
    queries: [
      {
        indexUid: 'movies',
        q: 'batman',
        limit: 5,
      },
      {
        indexUid: 'comics',
        q: 'batman',
        limit: 5,
      },
    ]
  })
index.updateDocumentsByFunction({
    context: { ctx: 'Harry' },
    filter: 'id = 4',
    function: 'doc.comment = `Yer a wizard, ${context.ctx}!`',
  })
)
  • Add language settings (#​1693) @​/flevi29
client.index('INDEX_NAME').updateLocalizedAttributes([
    { attributePatterns: ['jpn'], locales: ['*_ja'] },
];)
client.index('INDEX_NAME').search('進撃の巨人', { locales: ['jpn'] })

⚙️ Maintenance/misc

Thanks again to @​amit-ksh, @​brunoocasali, @​curquiza, @​flevi29, @​mdubus, @​meili-bors[bot] ! 🎉


Configuration

📅 Schedule: Branch creation - "* 0-3 * * 1" in timezone America/New_York, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/meilisearch-0.x branch from 44874f7 to ef4ae73 Compare April 7, 2025 05:45
Copy link

codecov bot commented Apr 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.55%. Comparing base (6818542) to head (019a848).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1786   +/-   ##
=======================================
  Coverage   93.55%   93.55%           
=======================================
  Files        1136     1136           
  Lines       23245    23245           
  Branches     5013     5012    -1     
=======================================
  Hits        21746    21746           
- Misses       1423     1431    +8     
+ Partials       76       68    -8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@renovate renovate bot force-pushed the renovate/meilisearch-0.x branch 14 times, most recently from dca682d to a6c9821 Compare April 14, 2025 00:25
@renovate renovate bot force-pushed the renovate/meilisearch-0.x branch 3 times, most recently from 019a848 to 8d609c0 Compare April 15, 2025 05:50
@renovate renovate bot changed the title fix(deps): update dependency meilisearch to ^0.49.0 fix(deps): update dependency meilisearch to ^0.50.0 Apr 15, 2025
@renovate renovate bot force-pushed the renovate/meilisearch-0.x branch 10 times, most recently from f6e20d0 to 77588a0 Compare April 17, 2025 15:03
@renovate renovate bot force-pushed the renovate/meilisearch-0.x branch 14 times, most recently from 5d4449b to 7c82d9a Compare May 27, 2025 18:12
@renovate renovate bot force-pushed the renovate/meilisearch-0.x branch 14 times, most recently from 75ddf00 to 308a489 Compare June 2, 2025 19:09
@renovate renovate bot force-pushed the renovate/meilisearch-0.x branch from 308a489 to ef48d0c Compare June 3, 2025 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants