prisma-redis-middleware
Advanced tools
Comparing version 4.6.1 to 4.7.0
@@ -14,2 +14,6 @@ import type Redis from "ioredis"; | ||
export declare type FetchFromPrisma = (params: MiddlewareParams) => Promise<Result>; | ||
export declare type RedisMemoryStorage = { | ||
type: "redis"; | ||
options?: RedisMemoryOptions; | ||
}; | ||
export declare type RedisMemoryOptions = { | ||
@@ -22,2 +26,6 @@ client: Redis; | ||
}; | ||
export declare type MemoryStorage = { | ||
type: "memory"; | ||
options?: MemoryStorageOptions; | ||
}; | ||
export declare type MemoryStorageOptions = { | ||
@@ -37,9 +45,3 @@ size?: number; | ||
}[]; | ||
storage?: { | ||
type: "redis"; | ||
options?: RedisMemoryOptions; | ||
} | { | ||
type: "memory"; | ||
options?: MemoryStorageOptions; | ||
}; | ||
storage?: RedisMemoryStorage | MemoryStorage; | ||
cacheTime?: number; | ||
@@ -46,0 +48,0 @@ excludeModels?: string[] | Prisma.ModelName[]; |
{ | ||
"name": "prisma-redis-middleware", | ||
"author": "A-J Roos <asjas@hey.com>", | ||
"version": "4.6.1", | ||
"version": "4.7.0", | ||
"description": "Prisma Middleware for caching results of queries in Redis", | ||
@@ -32,23 +32,23 @@ "license": "Hippocratic-3.0", | ||
"dependencies": { | ||
"async-cache-dedupe": "1.9.0", | ||
"ioredis": "5.3.1" | ||
"async-cache-dedupe": "1.10.2", | ||
"ioredis": "5.3.2" | ||
}, | ||
"devDependencies": { | ||
"@ianvs/prettier-plugin-sort-imports": "3.7.1", | ||
"@prisma/client": "4.10.1", | ||
"@ianvs/prettier-plugin-sort-imports": "3.7.2", | ||
"@prisma/client": "4.13.0", | ||
"@size-limit/preset-small-lib": "8.2.4", | ||
"@types/ioredis-mock": "8.2.1", | ||
"@vitest/coverage-c8": "0.28.5", | ||
"@vitest/coverage-c8": "0.30.1", | ||
"c8": "7.13.0", | ||
"husky": "8.0.3", | ||
"ioredis-mock": "8.2.6", | ||
"lint-staged": "13.1.2", | ||
"ioredis-mock": "8.7.0", | ||
"lint-staged": "13.2.2", | ||
"npm-run-all": "4.1.5", | ||
"prettier": "2.8.4", | ||
"rimraf": "4.1.2", | ||
"prettier": "2.8.8", | ||
"rimraf": "5.0.0", | ||
"size-limit": "8.2.4", | ||
"tsdx": "0.14.1", | ||
"tslib": "2.5.0", | ||
"typescript": "4.9.5", | ||
"vitest": "0.28.5" | ||
"typescript": "5.0.4", | ||
"vitest": "0.30.1" | ||
}, | ||
@@ -55,0 +55,0 @@ "husky": { |
@@ -48,2 +48,7 @@ import type Redis from "ioredis"; | ||
export type RedisMemoryStorage = { | ||
type: "redis"; | ||
options?: RedisMemoryOptions; | ||
} | ||
export type RedisMemoryOptions = { | ||
@@ -55,2 +60,7 @@ client: Redis; | ||
export type MemoryStorage = { | ||
type: "memory"; | ||
options?: MemoryStorageOptions; | ||
} | ||
export type MemoryStorageOptions = { | ||
@@ -72,11 +82,3 @@ size?: number; | ||
}[]; | ||
storage?: | ||
| { | ||
type: "redis"; | ||
options?: RedisMemoryOptions; | ||
} | ||
| { | ||
type: "memory"; | ||
options?: MemoryStorageOptions; | ||
}; | ||
storage?: RedisMemoryStorage | MemoryStorage; | ||
cacheTime?: number; | ||
@@ -83,0 +85,0 @@ excludeModels?: string[] | Prisma.ModelName[]; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
145328
1502
+ Addedasync-cache-dedupe@1.10.2(transitive)
+ Addedioredis@5.3.2(transitive)
- Removedasync-cache-dedupe@1.9.0(transitive)
- Removedioredis@5.3.1(transitive)
Updatedasync-cache-dedupe@1.10.2
Updatedioredis@5.3.2