Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
feat(backend:cache): update Redis packages to latest versions supporting Redis 7.x and 8.x, adjust code and improve cache handling
johavendaaedf3676c5
diff --git a/backend/package.json b/backend/package.jsonindex d950c5c7..93dddcd7 100755--- a/backend/package.json+++ b/backend/package.json@@ -83,7 +83,7 @@"optionalDependencies": {"@socket.io/redis-adapter": "^8.3.0","ldapts": "^8.0.0",- "redis": "^4.7.0"+ "redis": "^5.8.3"},"devDependencies": {"@eslint/js": "^9.18.0",diff --git a/backend/src/app.bootstrap.ts b/backend/src/app.bootstrap.tsindex cdb02a7b..f530a449 100644--- a/backend/src/app.bootstrap.ts+++ b/backend/src/app.bootstrap.ts@@ -33,6 +33,9 @@ export async function appBootstrap(): Promise<NestFastifyApplication> {bufferLogs: true})+ /* NestJS starts listening for shutdown hooks */+ app.enableShutdownHooks()+/* Fastify instance */const fastifyInstance = fastifyAdapter.getInstance()diff --git a/backend/src/infrastructure/cache/adapters/mysql-cache.adapter.ts b/backend/src/infrastructure/cache/adapters/mysql-cache.adapter.tsindex 2bf194d3..e3a3ffb6 100644--- a/backend/src/infrastructure/cache/adapters/mysql-cache.adapter.ts+++ b/backend/src/infrastructure/cache/adapters/mysql-cache.adapter.ts@@ -4,7 +4,7 @@* See the LICENSE file for licensing details*/-import { Inject, Injectable, Logger } from '@nestjs/common'+import { Inject, Injectable, Logger, OnModuleDestroy, OnModuleInit } from '@nestjs/common'import { SchedulerRegistry } from '@nestjs/schedule'import { CronJob } from 'cron'import { and, between, eq, exists, inArray, like, notBetween, SQL } from 'drizzle-orm'@@ -14,12 +14,13 @@ import { configuration } from '../../../configuration/config.environment'import { DB_TOKEN_PROVIDER } from '../../database/constants'import { DBSchema } from '../../database/interfaces/database.interface'import { dbCheckAffectedRows } from '../../database/utils'+import { SCHEDULER_ENV, SCHEDULER_STATE } from '../../scheduler/scheduler.constants'import { MysqlCache } from '../schemas/mysql-cache.interface'import { cache } from '../schemas/mysql-cache.schema'import { Cache } from '../services/cache.service'@Injectable()-export class MysqlCacheAdapter implements Cache {+export class MysqlCacheAdapter implements Cache, OnModuleInit, OnModuleDestroy {/* Useful SQL commands to stats the schedulerSHOW VARIABLES LIKE 'event_scheduler';SHOW EVENTS;@@ -34,12 +35,10 @@ export class MysqlCacheAdapter implements Cache {constructor(@Inject(DB_TOKEN_PROVIDER) private readonly db: DBSchema,private readonly scheduler: SchedulerRegistry- ) {- this.initScheduler().catch((e: Error) => this.logger.error(e))- }+ ) {}- async initScheduler(): Promise<void> {- if (!cluster.worker || cluster.worker.id === 1) {+ async onModuleInit(): Promise<void> {+ if (cluster.isWorker && process.env[SCHEDULER_ENV] === SCHEDULER_STATE.ENABLED) {try {await this.db.execute(`SET GLOBAL event_scheduler = ON;`)await this.db.execute(`DROP EVENT IF EXISTS ${this.scheduledJobName};`)@@ -57,6 +56,12 @@ export class MysqlCacheAdapter implements Cache {}}+ async onModuleDestroy(): Promise<void> {+ if (this.scheduledJob) {+ await this.scheduledJob.stop()+ }+ }+async keys(pattern: string): Promise<string[]> {const ks = await this.db.select({ key: cache.key })@@ -97,7 +102,7 @@ export class MysqlCacheAdapter implements Cache {return vs.map((v: { value: any }) => v.value)}- async set(key: any, data: any, ttl?: number): Promise<boolean> {+ async set(key: string, data: unknown, ttl?: number): Promise<boolean> {data = this.serialize(data)const exp = this.getTTL(ttl)try {@@ -129,10 +134,6 @@ export class MysqlCacheAdapter implements Cache {return createSlug(args.join(' '))}- async quit(): Promise<void> {- this.logger.verbose(`${this.quit.name}`)- }-private readonly whereNotExpired: () => SQL = () => notBetween(cache.expiration, 0, currentTimeStamp())private readonly whereExpired: () => SQL = () => between(cache.expiration, 0, currentTimeStamp())diff --git a/backend/src/infrastructure/cache/adapters/redis-cache.adapter.ts b/backend/src/infrastructure/cache/adapters/redis-cache.adapter.tsindex 59941dd8..8f92aa6e 100644--- a/backend/src/infrastructure/cache/adapters/redis-cache.adapter.ts+++ b/backend/src/infrastructure/cache/adapters/redis-cache.adapter.ts@@ -4,7 +4,7 @@* See the LICENSE file for licensing details*/-import { Injectable, Logger } from '@nestjs/common'+import { Injectable, Logger, OnModuleInit } from '@nestjs/common'import { RedisClientOptions } from '@redis/client'import { createClient, RedisClientType } from 'redis'import { createSlug } from '../../../common/shared'@@ -12,32 +12,30 @@ import { configuration } from '../../../configuration/config.environment'import { Cache } from '../services/cache.service'@Injectable()-export class RedisCacheAdapter implements Cache {+export class RedisCacheAdapter implements Cache, OnModuleInit {defaultTTL: number = configuration.cache.ttlinfiniteExpiration = -1private readonly logger = new Logger(Cache.name.toUpperCase())private readonly client: RedisClientType- private readonly reconnectOptions = { maxAttempts: 3, minConnectDelay: 6000, maxConnectDelay: 30000 }- private readonly reconnectStrategy = (attempts: number): number => {- if (attempts > this.reconnectOptions.maxAttempts) {- this.logger.error('Too many retries on Redis server. Exiting')- process.exit()- } else {- const wait: number = Math.min(this.reconnectOptions.minConnectDelay * Math.pow(2, attempts), this.reconnectOptions.maxConnectDelay)- this.logger.warn(`Retrying connection to Redis server in ${wait / 1000}s`)- return wait- }- }+ private readonly reconnectOptions = { maxAttempts: 3, minConnectDelay: 1000, maxConnectDelay: 2000 }constructor() {this.client = createClient({url: configuration.cache.redis,socket: { noDelay: true, reconnectStrategy: this.reconnectStrategy }} satisfies RedisClientOptions)- this.client.connect().then(() => {- this.client.on('error', (e: Error) => this.logger.error(e.message || e))- this.client.on('ready', () => this.logger.log(`Connected to Redis Server at ${this.client.options.url}`))- })+ }++ async onModuleInit() {+ this.client.on('error', (e: Error) => this.logger.error(e.message || e))+ this.client.on('ready', () => this.logger.log(`Connected to Redis Server at ${this.client.options.url}`))+ this.client.connect().catch((e: Error) => this.logger.error(e))+ }++ async onModuleDestroy() {+ if (this.client?.isOpen) {+ await this.client.close()+ }}async has(key: string): Promise<boolean> {@@ -46,8 +44,8 @@ export class RedisCacheAdapter implements Cache {async keys(pattern: string): Promise<string[]> {const matches: string[] = []- for await (const key of this.client.scanIterator({ MATCH: pattern, COUNT: 100 })) {- matches.push(key)+ for await (const keys of this.client.scanIterator({ MATCH: pattern, COUNT: 100 })) {+ matches.push(...keys)}return matches}@@ -60,9 +58,9 @@ export class RedisCacheAdapter implements Cache {return (await this.client.mGet(keys)).map((v) => this.deserialize(v))}- async set(key: any, data: any, ttl?: number): Promise<boolean> {+ async set(key: string, data: unknown, ttl?: number): Promise<boolean> {const exp = this.getTTL(ttl)- return (await this.client.set(key, this.serialize(data), { EX: exp === -1 ? undefined : exp })) === 'OK'+ return (await this.client.set(key, this.serialize(data), { expiration: { type: 'EX', value: exp === -1 ? undefined : exp } })) === 'OK'}async del(key: any): Promise<boolean> {@@ -74,23 +72,29 @@ export class RedisCacheAdapter implements Cache {for (const key of keys) {multi.unlink(key)}- const results = await multi.exec()- return results.indexOf(1) > -1+ const res = await multi.exec()+ return Array.isArray(res) && res.some((r) => typeof r === 'number' && r > 0)}genSlugKey(...args: any[]): string {return createSlug(args.join(' '))}- async quit(): Promise<void> {- await this.client.disconnect()- this.logger.verbose(`${this.quit.name}`)+ private readonly reconnectStrategy = (attempts: number): number => {+ if (attempts > this.reconnectOptions.maxAttempts) {+ this.logger.error('Too many retries on Redis server. Exiting')+ process.exit()+ } else {+ const wait: number = Math.min(this.reconnectOptions.minConnectDelay * Math.pow(2, attempts), this.reconnectOptions.maxConnectDelay)+ this.logger.warn(`Retrying connection to Redis server in ${wait / 1000}s`)+ return wait+ }}private getTTL(ttl: number): number {/* ttl (seconds):- - 0 : infinite expiration- - undefined : default ttl+ - 0: infinite expiration+ - undefined: default ttl*/return ttl ? ttl : ttl === 0 ? this.infiniteExpiration : this.defaultTTL}diff --git a/backend/src/infrastructure/cache/cache.e2e-spec.ts b/backend/src/infrastructure/cache/cache.e2e-spec.tsindex ad225d3c..e713d3ad 100644--- a/backend/src/infrastructure/cache/cache.e2e-spec.ts+++ b/backend/src/infrastructure/cache/cache.e2e-spec.ts@@ -22,6 +22,7 @@ describe(Cache.name, () => {module.useLogger(['fatal'])cache = module.get<Cache>(Cache)+ cache.onModuleInit()})afterAll(async () => {diff --git a/backend/src/infrastructure/cache/cache.module.ts b/backend/src/infrastructure/cache/cache.module.tsindex 1ed564cf..aa68e739 100644--- a/backend/src/infrastructure/cache/cache.module.ts+++ b/backend/src/infrastructure/cache/cache.module.ts@@ -4,7 +4,7 @@* See the LICENSE file for licensing details*/-import { BeforeApplicationShutdown, Global, Module } from '@nestjs/common'+import { Global, Module } from '@nestjs/common'import { SchedulerRegistry } from '@nestjs/schedule'import { configuration } from '../../configuration/config.environment'import { MysqlCacheAdapter } from './adapters/mysql-cache.adapter'@@ -22,10 +22,4 @@ import { Cache } from './services/cache.service'],exports: [Cache]})-export class CacheModule implements BeforeApplicationShutdown {- constructor(private readonly cache: Cache) {}-- async beforeApplicationShutdown() {- await this.cache.quit()- }-}+export class CacheModule {}diff --git a/backend/src/infrastructure/cache/services/cache.service.ts b/backend/src/infrastructure/cache/services/cache.service.tsindex 01e903b6..53116fc8 100644--- a/backend/src/infrastructure/cache/services/cache.service.ts+++ b/backend/src/infrastructure/cache/services/cache.service.ts@@ -4,11 +4,16 @@* See the LICENSE file for licensing details*/-export abstract class Cache {- abstract defaultTTL: number+import { OnModuleDestroy, OnModuleInit } from '@nestjs/common'+export abstract class Cache implements OnModuleInit, OnModuleDestroy {+ abstract defaultTTL: numberabstract infiniteExpiration: number+ abstract onModuleInit(): void++ abstract onModuleDestroy(): void+abstract has(key: string): Promise<boolean>/*@@ -24,13 +29,11 @@ export abstract class Cache {- 0: infinite expiration- undefined: default ttl*/- abstract set(key: string, data: any, ttl?: number): Promise<boolean>+ abstract set(key: string, data: unknown, ttl?: number): Promise<boolean>abstract del(key: string): Promise<boolean>abstract mdel(keys: string[]): Promise<boolean>abstract genSlugKey(...args: any[]): string-- abstract quit(): Promise<void>}diff --git a/backend/src/infrastructure/scheduler/scheduler.module.ts b/backend/src/infrastructure/scheduler/scheduler.module.tsindex be9eace9..8978fd8a 100644--- a/backend/src/infrastructure/scheduler/scheduler.module.ts+++ b/backend/src/infrastructure/scheduler/scheduler.module.ts@@ -19,7 +19,7 @@ export class SchedulerModule {imports: [NestScheduleModule.forRoot()]}} else {- // do not initialize the ScheduleModule dependency, all calls to Interval, Cron ... will be ignored+ // do not initialize the ScheduleModule dependency; all calls to Interval, Cron ... will be ignoredreturn { module: SchedulerModule }}}diff --git a/package-lock.json b/package-lock.jsonindex 519a7fe6..30ca65b9 100644--- a/package-lock.json+++ b/package-lock.json@@ -139,7 +139,7 @@"optionalDependencies": {"@socket.io/redis-adapter": "^8.3.0","ldapts": "^8.0.0",- "redis": "^4.7.0"+ "redis": "^5.8.3"}},"frontend": {@@ -1182,6 +1182,27 @@"node": "^18.17.0 || >=20.5.0"}},+ "node_modules/@angular/cli/node_modules/resolve": {+ "version": "1.22.10",+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz",+ "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-core-module": "^2.16.0",+ "path-parse": "^1.0.7",+ "supports-preserve-symlinks-flag": "^1.0.0"+ },+ "bin": {+ "resolve": "bin/resolve"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/@angular/cli/node_modules/semver": {"version": "7.7.2","resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz",@@ -8898,68 +8919,68 @@}},"node_modules/@redis/bloom": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/@redis/bloom/-/bloom-1.2.0.tgz",- "integrity": "sha512-HG2DFjYKbpNmVXsa0keLHp/3leGJz1mjh09f2RLGGLQZzSHpkmZWuwJbAvo3QcRY8p80m5+ZdXZdYOSBLlp7Cg==",+ "version": "5.8.3",+ "resolved": "https://registry.npmjs.org/@redis/bloom/-/bloom-5.8.3.tgz",+ "integrity": "sha512-1eldTzHvdW3Oi0TReb8m1yiFt8ZwyF6rv1NpZyG5R4TpCwuAdKQetBKoCw7D96tNFgsVVd6eL+NaGZZCqhRg4g==","license": "MIT","optional": true,+ "engines": {+ "node": ">= 18"+ },"peerDependencies": {- "@redis/client": "^1.0.0"+ "@redis/client": "^5.8.3"}},"node_modules/@redis/client": {- "version": "1.6.1",- "resolved": "https://registry.npmjs.org/@redis/client/-/client-1.6.1.tgz",- "integrity": "sha512-/KCsg3xSlR+nCK8/8ZYSknYxvXHwubJrU82F3Lm1Fp6789VQ0/3RJKfsmRXjqfaTA++23CvC3hqmqe/2GEt6Kw==",+ "version": "5.8.3",+ "resolved": "https://registry.npmjs.org/@redis/client/-/client-5.8.3.tgz",+ "integrity": "sha512-MZVUE+l7LmMIYlIjubPosruJ9ltSLGFmJqsXApTqPLyHLjsJUSAbAJb/A3N34fEqean4ddiDkdWzNu4ZKPvRUg==","license": "MIT","optional": true,"dependencies": {- "cluster-key-slot": "1.1.2",- "generic-pool": "3.9.0",- "yallist": "4.0.0"+ "cluster-key-slot": "1.1.2"},"engines": {- "node": ">=14"- }- },- "node_modules/@redis/graph": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/@redis/graph/-/graph-1.1.1.tgz",- "integrity": "sha512-FEMTcTHZozZciLRl6GiiIB4zGm5z5F3F6a6FZCyrfxdKOhFlGkiAqlexWMBzCi4DcRoyiOsuLfW+cjlGWyExOw==",- "license": "MIT",- "optional": true,- "peerDependencies": {- "@redis/client": "^1.0.0"+ "node": ">= 18"}},"node_modules/@redis/json": {- "version": "1.0.7",- "resolved": "https://registry.npmjs.org/@redis/json/-/json-1.0.7.tgz",- "integrity": "sha512-6UyXfjVaTBTJtKNG4/9Z8PSpKE6XgSyEb8iwaqDcy+uKrd/DGYHTWkUdnQDyzm727V7p21WUMhsqz5oy65kPcQ==",+ "version": "5.8.3",+ "resolved": "https://registry.npmjs.org/@redis/json/-/json-5.8.3.tgz",+ "integrity": "sha512-DRR09fy/u8gynHGJ4gzXYeM7D8nlS6EMv5o+h20ndTJiAc7RGR01fdk2FNjnn1Nz5PjgGGownF+s72bYG4nZKQ==","license": "MIT","optional": true,+ "engines": {+ "node": ">= 18"+ },"peerDependencies": {- "@redis/client": "^1.0.0"+ "@redis/client": "^5.8.3"}},"node_modules/@redis/search": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/@redis/search/-/search-1.2.0.tgz",- "integrity": "sha512-tYoDBbtqOVigEDMAcTGsRlMycIIjwMCgD8eR2t0NANeQmgK/lvxNAvYyb6bZDD4frHRhIHkJu2TBRvB0ERkOmw==",+ "version": "5.8.3",+ "resolved": "https://registry.npmjs.org/@redis/search/-/search-5.8.3.tgz",+ "integrity": "sha512-EMIvEeGRR2I0BJEz4PV88DyCuPmMT1rDtznlsHY3cKSDcc9vj0Q411jUnX0iU2vVowUgWn/cpySKjpXdZ8m+5g==","license": "MIT","optional": true,+ "engines": {+ "node": ">= 18"+ },"peerDependencies": {- "@redis/client": "^1.0.0"+ "@redis/client": "^5.8.3"}},"node_modules/@redis/time-series": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/@redis/time-series/-/time-series-1.1.0.tgz",- "integrity": "sha512-c1Q99M5ljsIuc4YdaCwfUEXsofakb9c8+Zse2qxTadu8TalLXuAESzLvFAvNVbkmSlvlzIQOLpBCmWI9wTOt+g==",+ "version": "5.8.3",+ "resolved": "https://registry.npmjs.org/@redis/time-series/-/time-series-5.8.3.tgz",+ "integrity": "sha512-5Jwy3ilsUYQjzpE7WZ1lEeG1RkqQ5kHtwV1p8yxXHSEmyUbC/T/AVgyjMcm52Olj/Ov/mhDKjx6ndYUi14bXsw==","license": "MIT","optional": true,+ "engines": {+ "node": ">= 18"+ },"peerDependencies": {- "@redis/client": "^1.0.0"+ "@redis/client": "^5.8.3"}},"node_modules/@rollup/rollup-android-arm-eabi": {@@ -11226,17 +11247,17 @@}},"node_modules/@typescript-eslint/eslint-plugin": {- "version": "8.46.1",- "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.46.1.tgz",- "integrity": "sha512-rUsLh8PXmBjdiPY+Emjz9NX2yHvhS11v0SR6xNJkm5GM1MO9ea/1GoDKlHHZGrOJclL/cZ2i/vRUYVtjRhrHVQ==",+ "version": "8.46.2",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.46.2.tgz",+ "integrity": "sha512-ZGBMToy857/NIPaaCucIUQgqueOiq7HeAKkhlvqVV4lm089zUFW6ikRySx2v+cAhKeUCPuWVHeimyk6Dw1iY3w==","dev": true,"license": "MIT","dependencies": {"@eslint-community/regexpp": "^4.10.0",- "@typescript-eslint/scope-manager": "8.46.1",- "@typescript-eslint/type-utils": "8.46.1",- "@typescript-eslint/utils": "8.46.1",- "@typescript-eslint/visitor-keys": "8.46.1",+ "@typescript-eslint/scope-manager": "8.46.2",+ "@typescript-eslint/type-utils": "8.46.2",+ "@typescript-eslint/utils": "8.46.2",+ "@typescript-eslint/visitor-keys": "8.46.2","graphemer": "^1.4.0","ignore": "^7.0.0","natural-compare": "^1.4.0",@@ -11250,22 +11271,22 @@"url": "https://opencollective.com/typescript-eslint"},"peerDependencies": {- "@typescript-eslint/parser": "^8.46.1",+ "@typescript-eslint/parser": "^8.46.2","eslint": "^8.57.0 || ^9.0.0","typescript": ">=4.8.4 <6.0.0"}},"node_modules/@typescript-eslint/parser": {- "version": "8.46.1",- "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.46.1.tgz",- "integrity": "sha512-6JSSaBZmsKvEkbRUkf7Zj7dru/8ZCrJxAqArcLaVMee5907JdtEbKGsZ7zNiIm/UAkpGUkaSMZEXShnN2D1HZA==",+ "version": "8.46.2",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.46.2.tgz",+ "integrity": "sha512-BnOroVl1SgrPLywqxyqdJ4l3S2MsKVLDVxZvjI1Eoe8ev2r3kGDo+PcMihNmDE+6/KjkTubSJnmqGZZjQSBq/g==","dev": true,"license": "MIT","dependencies": {- "@typescript-eslint/scope-manager": "8.46.1",- "@typescript-eslint/types": "8.46.1",- "@typescript-eslint/typescript-estree": "8.46.1",- "@typescript-eslint/visitor-keys": "8.46.1",+ "@typescript-eslint/scope-manager": "8.46.2",+ "@typescript-eslint/types": "8.46.2",+ "@typescript-eslint/typescript-estree": "8.46.2",+ "@typescript-eslint/visitor-keys": "8.46.2","debug": "^4.3.4"},"engines": {@@ -11281,14 +11302,14 @@}},"node_modules/@typescript-eslint/project-service": {- "version": "8.46.1",- "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.46.1.tgz",- "integrity": "sha512-FOIaFVMHzRskXr5J4Jp8lFVV0gz5ngv3RHmn+E4HYxSJ3DgDzU7fVI1/M7Ijh1zf6S7HIoaIOtln1H5y8V+9Zg==",+ "version": "8.46.2",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.46.2.tgz",+ "integrity": "sha512-PULOLZ9iqwI7hXcmL4fVfIsBi6AN9YxRc0frbvmg8f+4hQAjQ5GYNKK0DIArNo+rOKmR/iBYwkpBmnIwin4wBg==","dev": true,"license": "MIT","dependencies": {- "@typescript-eslint/tsconfig-utils": "^8.46.1",- "@typescript-eslint/types": "^8.46.1",+ "@typescript-eslint/tsconfig-utils": "^8.46.2",+ "@typescript-eslint/types": "^8.46.2","debug": "^4.3.4"},"engines": {@@ -11303,14 +11324,14 @@}},"node_modules/@typescript-eslint/scope-manager": {- "version": "8.46.1",- "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.46.1.tgz",- "integrity": "sha512-weL9Gg3/5F0pVQKiF8eOXFZp8emqWzZsOJuWRUNtHT+UNV2xSJegmpCNQHy37aEQIbToTq7RHKhWvOsmbM680A==",+ "version": "8.46.2",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.46.2.tgz",+ "integrity": "sha512-LF4b/NmGvdWEHD2H4MsHD8ny6JpiVNDzrSZr3CsckEgCbAGZbYM4Cqxvi9L+WqDMT+51Ozy7lt2M+d0JLEuBqA==","dev": true,"license": "MIT","dependencies": {- "@typescript-eslint/types": "8.46.1",- "@typescript-eslint/visitor-keys": "8.46.1"+ "@typescript-eslint/types": "8.46.2",+ "@typescript-eslint/visitor-keys": "8.46.2"},"engines": {"node": "^18.18.0 || ^20.9.0 || >=21.1.0"@@ -11321,9 +11342,9 @@}},"node_modules/@typescript-eslint/tsconfig-utils": {- "version": "8.46.1",- "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.46.1.tgz",- "integrity": "sha512-X88+J/CwFvlJB+mK09VFqx5FE4H5cXD+H/Bdza2aEWkSb8hnWIQorNcscRl4IEo1Cz9VI/+/r/jnGWkbWPx54g==",+ "version": "8.46.2",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.46.2.tgz",+ "integrity": "sha512-a7QH6fw4S57+F5y2FIxxSDyi5M4UfGF+Jl1bCGd7+L4KsaUY80GsiF/t0UoRFDHAguKlBaACWJRmdrc6Xfkkag==","dev": true,"license": "MIT","engines": {@@ -11338,15 +11359,15 @@}},"node_modules/@typescript-eslint/type-utils": {- "version": "8.46.1",- "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.46.1.tgz",- "integrity": "sha512-+BlmiHIiqufBxkVnOtFwjah/vrkF4MtKKvpXrKSPLCkCtAp8H01/VV43sfqA98Od7nJpDcFnkwgyfQbOG0AMvw==",+ "version": "8.46.2",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.46.2.tgz",+ "integrity": "sha512-HbPM4LbaAAt/DjxXaG9yiS9brOOz6fabal4uvUmaUYe6l3K1phQDMQKBRUrr06BQkxkvIZVVHttqiybM9nJsLA==","dev": true,"license": "MIT","dependencies": {- "@typescript-eslint/types": "8.46.1",- "@typescript-eslint/typescript-estree": "8.46.1",- "@typescript-eslint/utils": "8.46.1",+ "@typescript-eslint/types": "8.46.2",+ "@typescript-eslint/typescript-estree": "8.46.2",+ "@typescript-eslint/utils": "8.46.2","debug": "^4.3.4","ts-api-utils": "^2.1.0"},@@ -11363,9 +11384,9 @@}},"node_modules/@typescript-eslint/types": {- "version": "8.46.1",- "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.46.1.tgz",- "integrity": "sha512-C+soprGBHwWBdkDpbaRC4paGBrkIXxVlNohadL5o0kfhsXqOC6GYH2S/Obmig+I0HTDl8wMaRySwrfrXVP8/pQ==",+ "version": "8.46.2",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.46.2.tgz",+ "integrity": "sha512-lNCWCbq7rpg7qDsQrd3D6NyWYu+gkTENkG5IKYhUIcxSb59SQC/hEQ+MrG4sTgBVghTonNWq42bA/d4yYumldQ==","dev": true,"license": "MIT","engines": {@@ -11377,16 +11398,16 @@}},"node_modules/@typescript-eslint/typescript-estree": {- "version": "8.46.1",- "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.46.1.tgz",- "integrity": "sha512-uIifjT4s8cQKFQ8ZBXXyoUODtRoAd7F7+G8MKmtzj17+1UbdzFl52AzRyZRyKqPHhgzvXunnSckVu36flGy8cg==",+ "version": "8.46.2",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.46.2.tgz",+ "integrity": "sha512-f7rW7LJ2b7Uh2EiQ+7sza6RDZnajbNbemn54Ob6fRwQbgcIn+GWfyuHDHRYgRoZu1P4AayVScrRW+YfbTvPQoQ==","dev": true,"license": "MIT","dependencies": {- "@typescript-eslint/project-service": "8.46.1",- "@typescript-eslint/tsconfig-utils": "8.46.1",- "@typescript-eslint/types": "8.46.1",- "@typescript-eslint/visitor-keys": "8.46.1",+ "@typescript-eslint/project-service": "8.46.2",+ "@typescript-eslint/tsconfig-utils": "8.46.2",+ "@typescript-eslint/types": "8.46.2",+ "@typescript-eslint/visitor-keys": "8.46.2","debug": "^4.3.4","fast-glob": "^3.3.2","is-glob": "^4.0.3",@@ -11432,16 +11453,16 @@}},"node_modules/@typescript-eslint/utils": {- "version": "8.46.1",- "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.46.1.tgz",- "integrity": "sha512-vkYUy6LdZS7q1v/Gxb2Zs7zziuXN0wxqsetJdeZdRe/f5dwJFglmuvZBfTUivCtjH725C1jWCDfpadadD95EDQ==",+ "version": "8.46.2",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.46.2.tgz",+ "integrity": "sha512-sExxzucx0Tud5tE0XqR0lT0psBQvEpnpiul9XbGUB1QwpWJJAps1O/Z7hJxLGiZLBKMCutjTzDgmd1muEhBnVg==","dev": true,"license": "MIT","dependencies": {"@eslint-community/eslint-utils": "^4.7.0",- "@typescript-eslint/scope-manager": "8.46.1",- "@typescript-eslint/types": "8.46.1",- "@typescript-eslint/typescript-estree": "8.46.1"+ "@typescript-eslint/scope-manager": "8.46.2",+ "@typescript-eslint/types": "8.46.2",+ "@typescript-eslint/typescript-estree": "8.46.2"},"engines": {"node": "^18.18.0 || ^20.9.0 || >=21.1.0"@@ -11456,13 +11477,13 @@}},"node_modules/@typescript-eslint/visitor-keys": {- "version": "8.46.1",- "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.46.1.tgz",- "integrity": "sha512-ptkmIf2iDkNUjdeu2bQqhFPV1m6qTnFFjg7PPDjxKWaMaP0Z6I9l30Jr3g5QqbZGdw8YdYvLp+XnqnWWZOg/NA==",+ "version": "8.46.2",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.46.2.tgz",+ "integrity": "sha512-tUFMXI4gxzzMXt4xpGJEsBsTox0XbNQ1y94EwlD/CuZwFcQP79xfQqMhau9HsRc/J0cAPA/HZt1dZPtGn9V/7w==","dev": true,"license": "MIT","dependencies": {- "@typescript-eslint/types": "8.46.1",+ "@typescript-eslint/types": "8.46.2","eslint-visitor-keys": "^4.2.1"},"engines": {@@ -17580,16 +17601,6 @@"is-property": "^1.0.2"}},- "node_modules/generic-pool": {- "version": "3.9.0",- "resolved": "https://registry.npmjs.org/generic-pool/-/generic-pool-3.9.0.tgz",- "integrity": "sha512-hymDOu5B53XvN4QT9dBmZxPX4CWhBPPLguTZ9MMFeFa/Kg0xWVfylOVNlJji/E7yTZWFd/q9GO5TxDLq156D7g==",- "license": "MIT",- "optional": true,- "engines": {- "node": ">= 4"- }- },"node_modules/gensync": {"version": "1.0.0-beta.2","resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",@@ -25155,21 +25166,20 @@}},"node_modules/redis": {- "version": "4.7.1",- "resolved": "https://registry.npmjs.org/redis/-/redis-4.7.1.tgz",- "integrity": "sha512-S1bJDnqLftzHXHP8JsT5II/CtHWQrASX5K96REjWjlmWKrviSOLWmM7QnRLstAWsu1VBBV1ffV6DzCvxNP0UJQ==",+ "version": "5.8.3",+ "resolved": "https://registry.npmjs.org/redis/-/redis-5.8.3.tgz",+ "integrity": "sha512-MfSrfV6+tEfTw8c4W0yFp6XWX8Il4laGU7Bx4kvW4uiYM1AuZ3KGqEGt1LdQHeD1nEyLpIWetZ/SpY3kkbgrYw==","license": "MIT","optional": true,- "workspaces": [- "./packages/*"- ],"dependencies": {- "@redis/bloom": "1.2.0",- "@redis/client": "1.6.1",- "@redis/graph": "1.1.1",- "@redis/json": "1.0.7",- "@redis/search": "1.2.0",- "@redis/time-series": "1.1.0"+ "@redis/bloom": "5.8.3",+ "@redis/client": "5.8.3",+ "@redis/json": "5.8.3",+ "@redis/search": "5.8.3",+ "@redis/time-series": "5.8.3"+ },+ "engines": {+ "node": ">= 18"}},"node_modules/reflect-metadata": {@@ -25226,13 +25236,13 @@}},"node_modules/resolve": {- "version": "1.22.10",- "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz",- "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==",+ "version": "1.22.11",+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz",+ "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==","dev": true,"license": "MIT","dependencies": {- "is-core-module": "^2.16.0",+ "is-core-module": "^2.16.1","path-parse": "^1.0.7","supports-preserve-symlinks-flag": "^1.0.0"},@@ -27812,16 +27822,16 @@}},"node_modules/typescript-eslint": {- "version": "8.46.1",- "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.46.1.tgz",- "integrity": "sha512-VHgijW803JafdSsDO8I761r3SHrgk4T00IdyQ+/UsthtgPRsBWQLqoSxOolxTpxRKi1kGXK0bSz4CoAc9ObqJA==",+ "version": "8.46.2",+ "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.46.2.tgz",+ "integrity": "sha512-vbw8bOmiuYNdzzV3lsiWv6sRwjyuKJMQqWulBOU7M0RrxedXledX8G8kBbQeiOYDnTfiXz0Y4081E1QMNB6iQg==","dev": true,"license": "MIT","dependencies": {- "@typescript-eslint/eslint-plugin": "8.46.1",- "@typescript-eslint/parser": "8.46.1",- "@typescript-eslint/typescript-estree": "8.46.1",- "@typescript-eslint/utils": "8.46.1"+ "@typescript-eslint/eslint-plugin": "8.46.2",+ "@typescript-eslint/parser": "8.46.2",+ "@typescript-eslint/typescript-estree": "8.46.2",+ "@typescript-eslint/utils": "8.46.2"},"engines": {"node": "^18.18.0 || ^20.9.0 || >=21.1.0"@@ -28729,7 +28739,7 @@"version": "4.0.0","resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz","integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",- "devOptional": true,+ "dev": true,"license": "ISC"},"node_modules/yaml": {