yinzerflow 0.5.4 → 0.5.6

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.
Files changed (2) hide show
  1. package/index.d.ts +2 -2
  2. package/package.json +3 -3
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Redis } from 'ioredis';
2
- import { RedisClientType } from 'redis';
2
+ import { createClient } from 'redis';
3
3
 
4
4
  /**
5
5
  * Generic types for handler callbacks that define the structure of request data
@@ -1647,7 +1647,7 @@ export interface BaseStoreConfig {
1647
1647
  /** Type of the store @default 'memory' */
1648
1648
  type: RateLimitStoreType;
1649
1649
  }
1650
- export type RedisClient = Redis | RedisClientType;
1650
+ export type RedisClient = Redis | ReturnType<typeof createClient>;
1651
1651
  export interface MemoryStoreConfig extends BaseStoreConfig {
1652
1652
  type: "memory";
1653
1653
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yinzerflow",
3
- "version": "0.5.4",
3
+ "version": "0.5.6",
4
4
  "author": "Patrick Rizzardi <patrick@redact.digital> (https://redact.digital)",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/yinzers/YinzerFlow/blob/main/docs/start-here.md",
@@ -57,7 +57,7 @@
57
57
  },
58
58
  "peerDependencies": {
59
59
  "typescript": "^5.0.0",
60
- "redis": "^4.7.0",
61
- "ioredis": "^5.4.0"
60
+ "redis": "^5.0.0",
61
+ "ioredis": "^5.0.0"
62
62
  }
63
63
  }