Skip to content

Commit

Permalink
Merge pull request #162 from frontegg/5.1.1
Browse files Browse the repository at this point in the history
release 5.1.1
  • Loading branch information
eran-frontegg authored Aug 6, 2023
2 parents 8e0524a + cc61fb6 commit 81c6097
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
Binary file added .DS_Store
Binary file not shown.
7 changes: 7 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [5.1.1-alpha.1](https://github.com/frontegg/nodejs-sdk/compare/5.1.0...5.1.1-alpha.1) (2023-07-30)


### Bug Fixes

* **redis:** change required fields for redis configuration ([c3056c0](https://github.com/frontegg/nodejs-sdk/commit/c3056c080d6ad9ca31b0142bb39985bcb6a830a9))

# [5.1.0](https://github.com/frontegg/nodejs-sdk/compare/5.0.0...5.1.0) (2023-07-30)


Expand Down
4 changes: 2 additions & 2 deletions src/cache/types.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export interface IIORedisCacheOptions {
host: string;
password: string;
password?: string;
port: number;
db: number;
db?: number;
}

export interface IRedisCacheOptions {
Expand Down
2 changes: 1 addition & 1 deletion src/components/frontegg-context/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class FronteggContext {
private validateIORedisOptions(redisOptions: IIORedisCacheOptions): void {
PackageUtils.loadPackage('ioredis');

const requiredProperties: (keyof IIORedisCacheOptions)[] = ['host', 'password', 'port', 'db'];
const requiredProperties: (keyof IIORedisCacheOptions)[] = ['host', 'port'];
requiredProperties.forEach((requiredProperty) => {
if (redisOptions[requiredProperty] === undefined) {
throw new Error(`${requiredProperty} is missing from ioredis cache options`);
Expand Down

0 comments on commit 81c6097

Please sign in to comment.