@travetto/model-redis 7.0.3 → 7.0.5

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/README.md CHANGED
@@ -25,7 +25,7 @@ Out of the box, by installing the module, everything should be wired up by defau
25
25
  **Code: Wiring up a custom Model Source**
26
26
  ```typescript
27
27
  import { InjectableFactory } from '@travetto/di';
28
- import { RedisModelConfig, RedisModelService } from '@travetto/model-redis';
28
+ import { type RedisModelConfig, RedisModelService } from '@travetto/model-redis';
29
29
 
30
30
  export class Init {
31
31
  @InjectableFactory({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model-redis",
3
- "version": "7.0.3",
3
+ "version": "7.0.5",
4
4
  "type": "module",
5
5
  "description": "Redis backing for the travetto model module.",
6
6
  "keywords": [
@@ -27,9 +27,16 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@redis/client": "^5.10.0",
30
- "@travetto/cli": "^7.0.3",
31
- "@travetto/config": "^7.0.3",
32
- "@travetto/model": "^7.0.3"
30
+ "@travetto/config": "^7.0.5",
31
+ "@travetto/model": "^7.0.5"
32
+ },
33
+ "peerDependencies": {
34
+ "@travetto/cli": "^7.0.6"
35
+ },
36
+ "peerDependenciesMeta": {
37
+ "@travetto/cli": {
38
+ "optional": true
39
+ }
33
40
  },
34
41
  "travetto": {
35
42
  "displayName": "Redis Model Support"
package/src/service.ts CHANGED
@@ -2,13 +2,13 @@ import { createClient } from '@redis/client';
2
2
 
3
3
  import { ShutdownManager, type Class, type DeepPartial } from '@travetto/runtime';
4
4
  import {
5
- ModelCrudSupport, ModelExpirySupport, ModelRegistryIndex, ModelType, ModelStorageSupport,
6
- NotFoundError, ExistsError, ModelIndexedSupport, OptionalId,
5
+ type ModelCrudSupport, type ModelExpirySupport, ModelRegistryIndex, type ModelType, type ModelStorageSupport,
6
+ NotFoundError, ExistsError, type ModelIndexedSupport, type OptionalId,
7
7
  ModelCrudUtil, ModelExpiryUtil, ModelIndexedUtil, ModelStorageUtil,
8
8
  } from '@travetto/model';
9
9
  import { Injectable } from '@travetto/di';
10
10
 
11
- import { RedisModelConfig } from './config.ts';
11
+ import type { RedisModelConfig } from './config.ts';
12
12
 
13
13
  type RedisScan = { key: string } | { match: string };
14
14
  type RedisClient = ReturnType<typeof createClient>;