@luvio/service-cache
Advanced tools
Comparing version 5.7.1 to 5.8.0
import { type KeySet } from '@luvio/service-store/v1'; | ||
import type { NamedService, ServiceDescriptor } from '@luvio/utils'; | ||
import type { Key, NamedStoreService } from '@luvio/service-store/v1'; | ||
@@ -69,3 +68,1 @@ import type { TypeStoreEntry } from './type-store'; | ||
} | ||
export type NamedCacheService<Name extends string = 'cache'> = NamedService<Name, Cache>; | ||
export type CacheControllerServiceDescriptor = ServiceDescriptor<Cache, 'cache', '1.0'>; |
@@ -1,3 +0,9 @@ | ||
export * from './cache'; | ||
export * from './recordable-cache'; | ||
export * from './type-store'; | ||
import { type Cache } from './cache'; | ||
import type { NamedService, ServiceDescriptor } from '@luvio/utils'; | ||
import type { StoreService } from '@luvio/service-store/v1'; | ||
export { RecordableCache } from './recordable-cache'; | ||
export { TypeStore, TypeStoreEntry } from './type-store'; | ||
export { Cache, CacheControlMetadata, CacheEntry } from './cache'; | ||
export type NamedCacheService<Name extends string = 'cache'> = NamedService<Name, Cache>; | ||
export type CacheServiceDescriptor = ServiceDescriptor<Cache, 'cache', '1.0'>; | ||
export declare function buildServiceDescriptor(store: StoreService): CacheServiceDescriptor; |
@@ -90,2 +90,10 @@ /** | ||
export { DefaultCache, RecordableCache }; | ||
function buildServiceDescriptor(store) { | ||
return { | ||
type: 'cache', | ||
version: '1.0', | ||
service: new DefaultCache({ store }), | ||
}; | ||
} | ||
export { RecordableCache, buildServiceDescriptor }; |
import { type KeySet } from '@luvio/service-store/v1'; | ||
import type { NamedService, ServiceDescriptor } from '@luvio/utils'; | ||
import type { Key, NamedStoreService } from '@luvio/service-store/v1'; | ||
@@ -69,3 +68,1 @@ import type { TypeStoreEntry } from './type-store'; | ||
} | ||
export type NamedCacheService<Name extends string = 'cache'> = NamedService<Name, Cache>; | ||
export type CacheControllerServiceDescriptor = ServiceDescriptor<Cache, 'cache', '1.0'>; |
@@ -1,3 +0,9 @@ | ||
export * from './cache'; | ||
export * from './recordable-cache'; | ||
export * from './type-store'; | ||
import { type Cache } from './cache'; | ||
import type { NamedService, ServiceDescriptor } from '@luvio/utils'; | ||
import type { StoreService } from '@luvio/service-store/v1'; | ||
export { RecordableCache } from './recordable-cache'; | ||
export { TypeStore, TypeStoreEntry } from './type-store'; | ||
export { Cache, CacheControlMetadata, CacheEntry } from './cache'; | ||
export type NamedCacheService<Name extends string = 'cache'> = NamedService<Name, Cache>; | ||
export type CacheServiceDescriptor = ServiceDescriptor<Cache, 'cache', '1.0'>; | ||
export declare function buildServiceDescriptor(store: StoreService): CacheServiceDescriptor; |
{ | ||
"name": "@luvio/service-cache", | ||
"version": "5.7.1", | ||
"version": "5.8.0", | ||
"private": false, | ||
@@ -34,4 +34,4 @@ "description": "OneStore Cache Service definition", | ||
"dependencies": { | ||
"@luvio/service-store": "^5.7.1", | ||
"@luvio/utils": "^5.7.1" | ||
"@luvio/service-store": "^5.8.0", | ||
"@luvio/utils": "^5.8.0" | ||
}, | ||
@@ -38,0 +38,0 @@ "bundlesize": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16529
332
8
17
Updated@luvio/service-store@^5.8.0
Updated@luvio/utils@^5.8.0