1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-20 17:35:31 +02:00

deps: Update dependencies (#17304)

* update deps

* update dependencies (major)

* fix: migrate meilisearch

* fix: migrate color-convert types

* fix cypress?

* rollback ts v5 as it is not supported by cypress

* fix fake-timers
This commit is contained in:
かっこかり
2026-04-12 00:57:16 +09:00
committed by GitHub
parent cdf0438154
commit 4d6256e91d
29 changed files with 2835 additions and 1935 deletions

View File

@@ -17,7 +17,7 @@ import { CacheService } from '@/core/CacheService.js';
import { QueryService } from '@/core/QueryService.js';
import { IdService } from '@/core/IdService.js';
import { LoggerService } from '@/core/LoggerService.js';
import type { Index, MeiliSearch } from 'meilisearch';
import type { Index, Meilisearch } from 'meilisearch';
type K = string;
type V = string | number | boolean;
@@ -85,7 +85,7 @@ export class SearchService {
private config: Config,
@Inject(DI.meilisearch)
private meilisearch: MeiliSearch | null,
private meilisearch: Meilisearch | null,
@Inject(DI.notesRepository)
private notesRepository: NotesRepository,
@@ -187,7 +187,7 @@ export class SearchService {
return this.searchNoteByLike(q, me, opts, pagination);
}
case 'meilisearch': {
return this.searchNoteByMeiliSearch(q, me, opts, pagination);
return this.searchNoteByMeilisearch(q, me, opts, pagination);
}
default: {
const _: never = this.provider;
@@ -239,14 +239,14 @@ export class SearchService {
}
@bindThis
private async searchNoteByMeiliSearch(
private async searchNoteByMeilisearch(
q: string,
me: MiUser | null,
opts: SearchOpts,
pagination: SearchPagination,
): Promise<MiNote[]> {
if (!this.meilisearch || !this.meilisearchNoteIndex) {
throw new Error('MeiliSearch is not available');
throw new Error('Meilisearch is not available');
}
const filter: Q = {