Skip to content

Releases: meilisearch/meilisearch-js

v0.45.0 🌻

28 Oct 13:58
e224f5c
Compare
Choose a tag to compare

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 🌻

04 Oct 10:25
bc97969
Compare
Choose a tag to compare

🐛 Bug Fixes

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

v0.44.0 🌻

03 Oct 12:42
6990387
Compare
Choose a tag to compare

⚠️ 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 🌻

02 Oct 14:45
3b7e7e4
Compare
Choose a tag to compare

⚠️ 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 🌻

26 Aug 13:45
bb4f53e
Compare
Choose a tag to compare

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,
      },
    ]
  })
  • Add capabilities to update documents by function (#1691) @flevi29
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] ! 🎉

v0.41.0 🌻

01 Jul 16:11
01f51b4
Compare
Choose a tag to compare

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

🚀 Enhancements

client.index('movies').search('interstellar', { matchingStrategy: MatchingStrategies.FREQUENCY });
client.index('movies').search('badman', { rankingScoreThreshold: 0.2 });
client.index('movies').searchGet('badman', { rankingScoreThreshold: 0.2 });
client.index('movies').search('', { distinct: 'genre' });
client.index('movies').searchSimilarDocuments({ id: 'target-document-id' });
client.index('movies').getDocuments({ retrieveVectors: true });

🔒 Security

  • build(deps): bump ws from 5.2.3 to 5.2.4 in /playgrounds/javascript (#1672)

⚙️ Maintenance/misc

Thanks again to @brunoocasali, @curquiza, @flevi29, @mdubus, and @the-sinner! 🎉

v0.40.0 🌻

15 May 11:19
cd61a8c
Compare
Choose a tag to compare

💥 Breaking Changes

  • Fix the issue introduced in the v0.39 that affected vite apps #1652 @brunoocasali
  • Now to use the generateTenantToken you should use it with await:
    before:
    const token = client.generateTenantToken(apiKeyUid, searchRules, {
        apiKey: apiKey,
        expiresAt: expiresAt,
      })
    after:
    const token = await client.generateTenantToken(apiKeyUid, searchRules, {
        apiKey: apiKey,
        expiresAt: expiresAt,
      })

⚙️ Maintenance/misc

Thanks again to @brunoocasali, @mdubus! 🎉

v0.39.0 🌻

06 May 13:20
4475864
Compare
Choose a tag to compare

🚀 Enhancements

  • feat: hybrid search improvements for v1.8.x (#1647) @mdubus
  • Add null to Embedder type (#1646) @amit-ksh
  • Add searchCutoffMs index setting (#1643, #1645) @amit-ksh
    client.index('movies').getSearchCutoffMs()
    client.index('movies').updateSearchCutoffMs(150)
    client.index('movies').resetSearchCutoffMs()

⚠️ if you're using vite to build your front-end app, you must add this to your configuration (see more info here #1649)

export default defineConfig({
  plugins: [vue()],
  build: {
    rollupOptions: {
      external: ['crypto'], // this is the important part
    },
  },
})

Otherwise, you'll face errors like Module "crypto" has been externalized for browser compatibility.

⚙️ Maintenance/misc

  • Update ESLint, Prettier, TypeScript and fix/improve their configuration files (#1616) @flevi29
  • Fix code style after configuration changes (#1638) @brunoocasali

Thanks again to @amit-ksh, @brunoocasali, @curquiza, @flevi29, @mdubus! 🎉

v0.38.0 🌻

11 Mar 12:39
d891f15
Compare
Choose a tag to compare

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

⚠️ If you want to adopt new features of this release, update the Meilisearch server to the appropriate version.

⚠️ Breaking changes

  • Update Node.js versions that are used in tests (#1620) @flevi29
  • scoreDetails feature is not experimental anymore. You can directly use showRankingScoreDetails during a search without activating the experimental feature 🎉

🚀 Enhancements

v0.38.0-v1.7.0-pre-release.0 🧪

19 Feb 15:38
Compare
Choose a tag to compare
Pre-release

🧪 This is a beta version, preparing for Meilisearch v1.7.0, based on v1.7.0-rc.1

This version introduces features released on Meilisearch v1.7.0-rc.1 🎉
Check out the changelog of Meilisearch v1.7.0-rc.1 for more information on the changes.

⚠️ If you want to adopt new features of this release, update the Meilisearch server to the appropriate version.

⚠️ Breaking changes

  • Update Node.js versions that are used in tests (#1620) @flevi29

🚀 Enhancements

Thanks again to @curquiza, @flevi29, @reijovosu and @nicolasvienot! 🎉