@travetto/cache 5.0.0-rc.1 → 5.0.0-rc.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/cache",
3
- "version": "5.0.0-rc.1",
3
+ "version": "5.0.0-rc.2",
4
4
  "description": "Caching functionality with decorators for declarative use.",
5
5
  "keywords": [
6
6
  "typescript",
@@ -25,12 +25,12 @@
25
25
  "directory": "module/cache"
26
26
  },
27
27
  "dependencies": {
28
- "@travetto/di": "^5.0.0-rc.1",
29
- "@travetto/model": "^5.0.0-rc.1"
28
+ "@travetto/di": "^5.0.0-rc.2",
29
+ "@travetto/model": "^5.0.0-rc.2"
30
30
  },
31
31
  "peerDependencies": {
32
- "@travetto/test": "^5.0.0-rc.1",
33
- "@travetto/transformer": "^5.0.0-rc.1"
32
+ "@travetto/test": "^5.0.0-rc.2",
33
+ "@travetto/transformer": "^5.0.0-rc.2"
34
34
  },
35
35
  "peerDependenciesMeta": {
36
36
  "@travetto/transformer": {
package/src/decorator.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { TimeSpan, TimeUtil } from '@travetto/base';
1
+ import { TimeSpan, TimeUtil } from '@travetto/runtime';
2
2
 
3
3
  import { CacheService } from './service';
4
4
  import { CoreCacheConfig, CacheConfig } from './types';
package/src/error.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AppError } from '@travetto/base';
1
+ import { AppError } from '@travetto/runtime';
2
2
 
3
3
  /** Cache Error Class */
4
4
  export class CacheError extends AppError { }
package/src/service.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ExpiresAt, Index, Model, ModelExpirySupport, NotFoundError } from '@travetto/model';
2
2
  import { Text } from '@travetto/schema';
3
3
  import { Inject, Injectable } from '@travetto/di';
4
- import { AppError, Env, TimeUtil } from '@travetto/base';
4
+ import { AppError, Runtime, TimeUtil } from '@travetto/runtime';
5
5
  import { isIndexedSupported, isStorageSupported } from '@travetto/model/src/internal/service/common';
6
6
 
7
7
  import { CacheError } from './error';
@@ -41,7 +41,7 @@ export class CacheService {
41
41
  }
42
42
 
43
43
  async postConstruct(): Promise<void> {
44
- if (isStorageSupported(this.#modelService) && (Env.dynamic || this.#modelService.config?.autoCreate)) {
44
+ if (isStorageSupported(this.#modelService) && (Runtime.dynamic || this.#modelService.config?.autoCreate)) {
45
45
  await this.#modelService.createModel?.(CacheRecord);
46
46
  }
47
47
  }
package/src/util.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Util } from '@travetto/base';
1
+ import { Util } from '@travetto/runtime';
2
2
 
3
3
  import { CoreCacheConfig } from './types';
4
4
 
@@ -7,7 +7,7 @@ import { Inject, Injectable } from '@travetto/di';
7
7
  import { InjectableSuite } from '@travetto/di/support/test/suite';
8
8
  import { ModelSuite } from '@travetto/model/support/test/suite';
9
9
  import { isIndexedSupported } from '@travetto/model/src/internal/service/common';
10
- import { Class } from '@travetto/base';
10
+ import { Class } from '@travetto/runtime';
11
11
  import { Schema } from '@travetto/schema';
12
12
 
13
13
  import { Cache, EvictCache } from '../../src/decorator';