@tsed/redis 8.33.0 → 8.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { configuration, logger } from "@tsed/di";
2
1
  import { createClient, createCluster } from "redis";
2
+ import { configuration, logger } from "@tsed/di";
3
3
  import { redisStore } from "../domain/RedisStore.js";
4
4
  export async function createConnection(config) {
5
5
  const { name, cache, ...redisOptions } = config;
@@ -1,5 +1,5 @@
1
- import { TokenProvider } from "@tsed/di";
2
1
  import type { RedisClientOptions, RedisClientType, RedisClusterType } from "redis";
2
+ import { TokenProvider } from "@tsed/di";
3
3
  export type ClusterConfiguration = {
4
4
  nodes: any[];
5
5
  } & Record<string, any>;
@@ -1,6 +1,6 @@
1
- import type { RedisClusterOptions } from "@redis/client";
2
1
  import type { Config, FactoryConfig, Store } from "cache-manager";
3
2
  import type { RedisClientType, RedisClusterType } from "redis";
3
+ import type { RedisClusterOptions } from "@redis/client";
4
4
  export interface RedisClusterConfig {
5
5
  nodes: RedisClusterOptions["rootNodes"][];
6
6
  options?: Record<string, any>;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@tsed/redis",
3
+ "version": "8.35.0",
3
4
  "description": "Redis (node-redis) connection for Ts.ED",
4
- "type": "module",
5
- "version": "8.33.0",
6
5
  "source": "./src/index.ts",
6
+ "type": "module",
7
7
  "main": "./lib/esm/index.js",
8
8
  "module": "./lib/esm/index.js",
9
9
  "typings": "./lib/types/index.d.ts",
@@ -32,11 +32,10 @@
32
32
  "tslib": ">=2.7.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@tsed/barrels": "8.33.0",
36
- "@tsed/core": "8.33.0",
37
- "@tsed/di": "8.33.0",
38
- "@tsed/typescript": "8.33.0",
39
- "eslint": "9.12.0",
35
+ "@tsed/barrels": "8.35.0",
36
+ "@tsed/core": "8.35.0",
37
+ "@tsed/di": "8.35.0",
38
+ "@tsed/typescript": "8.35.0",
40
39
  "redis": "6.0.0",
41
40
  "typescript": "6.0.2",
42
41
  "vitest": "4.1.4"