@travetto/cache 7.0.4 → 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
@@ -124,7 +124,7 @@ By design, the [CacheService](https://github.com/travetto/travetto/tree/main/mod
124
124
  **Code: Registering a Custom Model Source**
125
125
  ```typescript
126
126
  import { InjectableFactory } from '@travetto/di';
127
- import { ModelExpirySupport } from '@travetto/model';
127
+ import type { ModelExpirySupport } from '@travetto/model';
128
128
  import { MemoryModelService } from '@travetto/model-memory';
129
129
  import { CacheModelSymbol } from '@travetto/cache';
130
130
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/cache",
3
- "version": "7.0.4",
3
+ "version": "7.0.5",
4
4
  "type": "module",
5
5
  "description": "Caching functionality with decorators for declarative use.",
6
6
  "keywords": [
@@ -26,12 +26,12 @@
26
26
  "directory": "module/cache"
27
27
  },
28
28
  "dependencies": {
29
- "@travetto/di": "^7.0.4",
30
- "@travetto/model": "^7.0.4"
29
+ "@travetto/di": "^7.0.5",
30
+ "@travetto/model": "^7.0.5"
31
31
  },
32
32
  "peerDependencies": {
33
- "@travetto/test": "^7.0.4",
34
- "@travetto/transformer": "^7.0.3"
33
+ "@travetto/test": "^7.0.5",
34
+ "@travetto/transformer": "^7.0.4"
35
35
  },
36
36
  "peerDependenciesMeta": {
37
37
  "@travetto/transformer": {
package/src/decorator.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { castTo, MethodDescriptor, TimeSpan, TimeUtil } from '@travetto/runtime';
1
+ import { castTo, type MethodDescriptor, type TimeSpan, TimeUtil } from '@travetto/runtime';
2
2
 
3
- import { CacheService } from './service.ts';
4
- import { CoreCacheConfig, CacheConfig, CacheAware, CacheConfigSymbol, EvictConfigSymbol } from './types.ts';
3
+ import type { CacheService } from './service.ts';
4
+ import { type CoreCacheConfig, type CacheConfig, type CacheAware, CacheConfigSymbol, EvictConfigSymbol } from './types.ts';
5
5
 
6
6
  /**
7
7
  * Indicates a method is intended to cache. The return type must be properly serializable
package/src/service.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { ExpiresAt, Index, Model, ModelExpirySupport, NotFoundError, ModelStorageUtil, ModelIndexedUtil } from '@travetto/model';
1
+ import { ExpiresAt, Index, Model, type ModelExpirySupport, NotFoundError, ModelStorageUtil, ModelIndexedUtil } from '@travetto/model';
2
2
  import { Text } from '@travetto/schema';
3
3
  import { Inject, Injectable } from '@travetto/di';
4
4
  import { AppError, JSONUtil, TimeUtil } from '@travetto/runtime';
5
5
 
6
6
  import { CacheError } from './error.ts';
7
7
  import { CacheUtil } from './util.ts';
8
- import { CacheAware, CacheConfigSymbol, CacheModelSymbol, EvictConfigSymbol } from './types.ts';
8
+ import { type CacheAware, CacheConfigSymbol, CacheModelSymbol, EvictConfigSymbol } from './types.ts';
9
9
 
10
10
  const INFINITE_MAX_AGE = TimeUtil.asMillis(10, 'y');
11
11
 
package/src/types.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { TypedFunction } from '@travetto/runtime';
1
+ import type { TypedFunction } from '@travetto/runtime';
2
2
 
3
3
  export const CacheConfigSymbol: unique symbol = Symbol.for('@travetto/cache:cache');
4
4
  export const EvictConfigSymbol: unique symbol = Symbol.for('@travetto/cache:evict');
package/src/util.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { BinaryUtil, JSONUtil } from '@travetto/runtime';
2
2
 
3
- import { CoreCacheConfig } from './types.ts';
3
+ import type { CoreCacheConfig } from './types.ts';
4
4
 
5
5
  /**
6
6
  * Standard cache utilities
@@ -2,16 +2,16 @@ import assert from 'node:assert';
2
2
  import timers from 'node:timers/promises';
3
3
 
4
4
  import { Suite, Test } from '@travetto/test';
5
- import { ModelExpirySupport, ModelIndexedUtil } from '@travetto/model';
5
+ import { type ModelExpirySupport, ModelIndexedUtil } from '@travetto/model';
6
6
  import { Inject, Injectable } from '@travetto/di';
7
- import { castTo, Class } from '@travetto/runtime';
7
+ import { castTo, type Class } from '@travetto/runtime';
8
8
  import { Schema } from '@travetto/schema';
9
9
 
10
10
  import { InjectableSuite } from '@travetto/di/support/test/suite.ts';
11
11
  import { ModelSuite } from '@travetto/model/support/test/suite.ts';
12
12
 
13
13
  import { Cache, EvictCache } from '../../src/decorator.ts';
14
- import { CacheService } from '../../src/service.ts';
14
+ import type { CacheService } from '../../src/service.ts';
15
15
  import { CacheModelSymbol } from '../../src/types.ts';
16
16
 
17
17
  @Schema()