From ca015710cfb0631f0efc06d8bb584af00acfe68d Mon Sep 17 00:00:00 2001 From: Michele Riva Date: Tue, 12 Jul 2022 11:02:53 +0200 Subject: [PATCH] chore(lyra): prepares for release 0.0.1-beta-8 --- package.json | 4 ++-- packages/examples/with-react/vite.config.ts | 3 +++ packages/lyra/package.json | 2 +- packages/lyra/src/lyra.ts | 5 ++++- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index f2fc86648..7eaaff1d9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lyra", - "version": "1.0.0", + "version": "1.1.0", "description": "", "main": "index.js", "workspaces": [ @@ -51,4 +51,4 @@ ] } } -} \ No newline at end of file +} diff --git a/packages/examples/with-react/vite.config.ts b/packages/examples/with-react/vite.config.ts index abda845e0..90072152b 100644 --- a/packages/examples/with-react/vite.config.ts +++ b/packages/examples/with-react/vite.config.ts @@ -5,4 +5,7 @@ import Unocss from "unocss/vite"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react(), Unocss({})], + build: { + target: ["es2020"], + }, }); diff --git a/packages/lyra/package.json b/packages/lyra/package.json index 28ed56ae6..e2b038cd6 100644 --- a/packages/lyra/package.json +++ b/packages/lyra/package.json @@ -1,7 +1,7 @@ { "name": "@nearform/lyra", "description": "Fast, in-memory, full-text search engine", - "version": "0.0.1-beta-7", + "version": "0.0.1-beta-8", "author": { "name": "Michele Riva", "email": "ciao@micheleriva.it", diff --git a/packages/lyra/src/lyra.ts b/packages/lyra/src/lyra.ts index a328d3b56..ca3a00f6d 100644 --- a/packages/lyra/src/lyra.ts +++ b/packages/lyra/src/lyra.ts @@ -81,7 +81,10 @@ export class Lyra { } } - async search(params: SearchParams, language: Language = this.defaultLanguage): SearchResult { + async search( + params: SearchParams, + language: Language = this.defaultLanguage + ): SearchResult { const tokens = tokenize(params.term, language).values(); const indices = this.getIndices(params.properties); const { limit = 10, offset = 0 } = params;