Skip to content
Closed
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
7 changes: 7 additions & 0 deletions .changeset/bright-rabbits-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@meilisearch/autocomplete-client": minor
"@meilisearch/instant-meilisearch": minor
"eslint-config-meilisearch": patch
---

Change tester from Jest to Vitest.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ yarn --dev
Each PR should pass the tests and the linter to be accepted.

```bash
# Tests with Jest
# Tests with Vitest
docker pull getmeili/meilisearch:latest # Fetch the latest version of Meilisearch image from Docker Hub
docker run -p 7700:7700 getmeili/meilisearch:latest meilisearch --master-key=masterKey --no-analytics
# Integration tests
Expand Down
61 changes: 31 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"name": "root",
"private": true,
"license": "MIT",
"repository": {
Expand All @@ -10,43 +9,45 @@
"packages/*",
"playgrounds/*"
],
"type": "module",
"scripts": {
"playground:geosearch": "turbo run dev --filter=@meilisearch/geo-playground --parallel",
"playground:vanilla": "turbo run dev --filter=@meilisearch/vanilla-playground --parallel",
"playground:vue3": "turbo run dev --filter=@meilisearch/vue3-ts-playground --parallel",
"playground:react": "turbo run dev --filter=@meilisearch/react-playground --parallel",
"playground:local-react": "turbo run dev --filter=@meilisearch/local-react-playground --parallel",
"playground:node": "turbo run dev --filter=@meilisearch/node-playground --parallel",
"playground:autocomplete": "turbo run dev --filter=@meilisearch/autocomplete-playground --parallel",
"test:e2e": "turbo run test:e2e",
"test:e2e:watch": "turbo run test:e2e:watch",
"playground:geosearch": "turbo @meilisearch/geo-playground#dev",
"playground:vanilla": "turbo @meilisearch/vanilla-playground#dev",
"playground:vue3": "turbo @meilisearch/vue3-ts-playground#dev",
"playground:react": "turbo @meilisearch/react-playground#dev",
"playground:local-react": "turbo @meilisearch/local-react-playground#dev",
"playground:node": "turbo @meilisearch/node-playground#dev",
"playground:autocomplete": "turbo @meilisearch/autocomplete-playground#dev",
"test:e2e": "turbo test:e2e",
"test:e2e:watch": "turbo test:e2e:watch",
"lint": "turbo lint",
"lint:fix": "turbo lint:fix",
"build": "turbo run build",
"test": "turbo test",
"test:watch": "turbo run test:watch",
"instant-meilisearch:test:watch": "yarn --cwd ./packages/instant-meilisearch test:watch",
"autocomplete:test:watch": "yarn --cwd ./packages/autocomplete-client test:watch",
"test:types": "turbo run test:types",
"build": "turbo build",
"test": "yarn build && vitest run",
"test:watch": "yarn build && vitest",
"instant-meilisearch:test:watch": "vitest --project \"@meilisearch/instant-meilisearch\"",
"autocomplete:test:watch": "vitest --project \"@meilisearch/autocomplete-client\"",
"test:types": "yarn build && tsc --noEmit",
"version-packages": "changeset version && turbo version",
"release": "yarn build && changeset publish"
},
"devDependencies": {
"@testing-library/dom": "^9.2.0",
"@testing-library/jest-dom": "^5.16.5",
"@types/jest": "^29.5.1",
"@types/jest-diff": "^24.3.0",
"parcel": "^2.12.0",
"turbo": "^2.1.3"
},
"dependencies": {
"@changesets/cli": "^2.26.1",
"instantsearch.css": "^8.0.0"
"instantsearch.css": "^8.5.1"
},
"alias": {
"node:crypto": false,
"node:buffer": false,
"node:process": false
"devDependencies": {
"prettier": "^3.4.2",
"vite": "^6.0.9",
"@vitest/coverage-v8": "^3.0.2",
"concurrently": "^9.1.2",
"vitest": "^3.0.2",
"cypress": "^8.6.0",
"turbo": "^2.3.3",
"algoliasearch-helper": "^3.23.0",
"@changesets/cli": "^2.26.1",
"typescript": "^5.7.3",
"@algolia/client-search": "^5.19.0",
"algoliasearch": "^5.19.0",
"search-insights": "^2.17.3"
},
"packageManager": "[email protected]"
}
12 changes: 0 additions & 12 deletions packages/autocomplete-client/.babelrc

This file was deleted.

2 changes: 1 addition & 1 deletion packages/autocomplete-client/__tests__/test.utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { meilisearchAutocompleteClient } from '../src'
import { meilisearchAutocompleteClient } from '../src/index.js'
import { MeiliSearch } from 'meilisearch'

const dataset = [
Expand Down
34 changes: 0 additions & 34 deletions packages/autocomplete-client/jest.config.js

This file was deleted.

48 changes: 12 additions & 36 deletions packages/autocomplete-client/package.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,27 @@
{
"name": "@meilisearch/autocomplete-client",
"version": "0.5.0",
"private": false,
"description": "The search client to use Meilisearch with autocomplete.js.",
"homepage": "https://github.com/meilisearch/meilisearch-js-plugins/tree/main/packages/autocomplete-client",
"publishConfig": {
"access": "public"
},
"scripts": {
"clear_jest": "jest --clearCache",
"cleanup": "shx rm -rf dist/",
"test:watch": "yarn test --watchAll",
"test": "jest --runInBand --selectProjects dom --selectProjects node",
"build": "yarn cleanup && rollup -c rollup.config.js && rollup --environment NODE_ENV:production -c rollup.config.js",
"dev": "rollup -c rollup.config.js --watch",
"build": "vite build && tsc -p tsconfig.json",
"lint": "eslint --ext .js,.ts,.tsx .",
"lint:fix": "eslint --ext .js,.ts,.tsx . --fix",
"test:types": "yarn tsc",
"version": "node scripts/update_version.js"
"version": "node scripts/update_version.cjs"
},
"main": "./dist/autocomplete-client.umd.js",
"module": "./dist/autocomplete-client.esm.js",
"browser": "./dist/autocomplete-client.umd.js",
"cjs": "./dist/autocomplete-client.cjs.js",
"source": "src/index.ts",
"typings": "./dist/types/index.d.ts",
"type": "module",
"types": "./dist/types/index.d.ts",
"main": "./dist/umd/index.min.js",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.js",
"default": "./dist/umd/index.min.js"
}
},
"sideEffects": false,
"bugs": {
"url": "https://github.com/meilisearch/meilisearch-js-plugins/issues"
Expand All @@ -51,28 +47,8 @@
},
"devDependencies": {
"@algolia/autocomplete-js": "^1.7.4",
"@babel/cli": "^7.22.9",
"@babel/core": "^7.20.5",
"@babel/preset-env": "^7.20.2",
"@rollup/plugin-commonjs": "^17.1.0",
"@rollup/plugin-node-resolve": "^11.2.0",
"@types/jest": "^27.0.2",
"babel-jest": "^27.2.2",
"concurrently": "^7.1.0",
"cssnano": "^4.1.10",
"eslint-config-meilisearch": "*",
"instantsearch.js": "^4.56.2",
"jest": "^27.2.2",
"jest-watch-typeahead": "^0.6.3",
"regenerator-runtime": "^0.13.7",
"rollup": "^2.79.2",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-node-polyfills": "^0.2.1",
"rollup-plugin-terser": "^7.0.0",
"rollup-plugin-typescript2": "^0.32.1",
"shx": "^0.3.4",
"ts-jest": "^27.0.7",
"tslib": "^2.6.1",
"typescript": "^4.9.3"
"instantsearch.js": "^4.56.2"
}
}
91 changes: 0 additions & 91 deletions packages/autocomplete-client/rollup.config.js

This file was deleted.

65 changes: 0 additions & 65 deletions packages/autocomplete-client/scripts/build.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PACKAGE_VERSION } from '../package-version'
import { createSearchClient } from './createSearchClient'
import { PACKAGE_VERSION } from '../package-version.js'
import { createSearchClient } from './createSearchClient.js'

/**
* Create searchClient instance for autocomplete
Expand Down
4 changes: 2 additions & 2 deletions packages/autocomplete-client/src/client/createSearchClient.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { instantMeiliSearch } from '@meilisearch/instant-meilisearch'
import { SearchClient } from '../types/SearchClient'
import { ClientConfig } from '../types/ClientConfig'
import type { SearchClient } from '../types/SearchClient.js'
import type { ClientConfig } from '../types/ClientConfig.js'

export const concatUserAgents = (clientAgents: string[]): string[] => {
return clientAgents.concat(clientAgents.filter((agent) => agent))
Expand Down
Loading
Loading