@adaptivestone/framework 5.0.0-alpha.2 → 5.0.0-alpha.4

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ### 5.0.0-alpha.4
2
+
3
+ [UPDATE] Update rate-limiter-flexible to v5
4
+ [CHANGE] Cache update redis.setEX to redis.set(..,..,{EX:xx}) as setEX deprecated
5
+
6
+ ### 5.0.0-alpha.3
7
+
8
+ [UPDATE] deps update
9
+ [FIX] Migration commands apply
10
+
1
11
  ### 5.0.0-alpha.2
2
12
 
3
13
  [UPDATE] deps update
@@ -36,7 +36,7 @@ class Migrate extends AbstractCommand {
36
36
  for (const migration of migrations) {
37
37
  this.logger.info(`=== Start migration ${migration.file} ===`);
38
38
  // eslint-disable-next-line no-await-in-loop
39
- const MigrationCommand = await import(migration.path);
39
+ const { default: MigrationCommand } = await import(migration.path);
40
40
  const migrationCommand = new MigrationCommand(this.app);
41
41
  // eslint-disable-next-line no-await-in-loop
42
42
  await migrationCommand.up();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptivestone/framework",
3
- "version": "5.0.0-alpha.2",
3
+ "version": "5.0.0-alpha.4",
4
4
  "description": "Adaptive stone node js framework",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -45,7 +45,7 @@
45
45
  "nodemailer-sendmail-transport": "^1.0.2",
46
46
  "nodemailer-stub-transport": "^1.1.0",
47
47
  "pug": "^3.0.2",
48
- "rate-limiter-flexible": "^4.0.0",
48
+ "rate-limiter-flexible": "^5.0.0",
49
49
  "redis": "^4.3.1",
50
50
  "winston": "^3.3.3",
51
51
  "winston-transport-sentry-node": "^2.0.0",
@@ -69,12 +69,14 @@ class Cache extends Base {
69
69
  return Promise.reject(e);
70
70
  }
71
71
 
72
- this.redisClient.setEx(
72
+ this.redisClient.set(
73
73
  key,
74
- storeTime,
75
74
  JSON.stringify(result, (jsonkey, value) =>
76
75
  typeof value === 'bigint' ? `${value}n` : value,
77
76
  ),
77
+ {
78
+ EX: storeTime,
79
+ },
78
80
  );
79
81
  } else {
80
82
  this.logger.verbose(