@candulabs/core
Advanced tools
Comparing version 0.8.12 to 0.8.13
@@ -6,2 +6,18 @@ # Change Log | ||
## [0.8.13](https://github.com/candulabs/candu-sdk/tree/master/packages/candu-core/compare/v0.8.13-alpha.0...v0.8.13) (2021-10-20) | ||
**Note:** Version bump only for package @candulabs/core | ||
## 0.8.13-alpha.0 (2021-10-20) | ||
**Note:** Version bump only for package @candulabs/core | ||
## [0.8.12](https://github.com/candulabs/candu-sdk/tree/master/packages/candu-core/compare/v0.8.12-alpha.1...v0.8.12) (2021-10-19) | ||
@@ -8,0 +24,0 @@ |
import { RootStore } from '../store'; | ||
import { CacheDocument } from './stores'; | ||
import { ContentProps } from '../inputValidation'; | ||
import { ClientToken, SegmentId, Slug } from '../models'; | ||
interface ContentResourceFetch { | ||
clientToken: ClientToken; | ||
slug: Slug; | ||
segmentIds?: SegmentId[]; | ||
rootStore: RootStore; | ||
cacheResult?: CacheDocument; | ||
} | ||
export declare const fetchContentResource: ({ clientToken, slug, segmentIds, rootStore, cacheResult, }: ContentResourceFetch) => void; | ||
export declare function content(props: ContentProps, rootStore: RootStore): void; | ||
export {}; |
@@ -1,12 +0,5 @@ | ||
/// <reference types="lodash" /> | ||
import { FetchState } from '../../store'; | ||
import { ContentDocument, Slug } from '../../models'; | ||
import { ContentDocument } from '../../models'; | ||
declare type ContentState = Record<string, FetchState<ContentDocument>>; | ||
export interface CacheDocument extends ContentDocument { | ||
slug: Slug; | ||
cache: boolean; | ||
segmentSlugId: string; | ||
} | ||
export declare const mapToSlug: ((documents: CacheDocument[]) => Record<string, CacheDocument>) & import("lodash").MemoizedFunction; | ||
export declare const contentFlux: import("../../store").Flux<ContentState>; | ||
export {}; |
interface Store { | ||
name: string; | ||
options: IDBObjectStoreParameters; | ||
indexes: Partial<IDBIndex>[]; | ||
} | ||
@@ -13,5 +12,8 @@ declare type IndexedDBStores = Record<string, Store>; | ||
* We must ensure we update STORES_VERSION when adding to STORES | ||
* | ||
* WARNING: The only type of upgrade we currently support is adding new stores | ||
* Modifications to options are unsupported | ||
*/ | ||
export declare const STORES_VERSION = 4; | ||
export declare const STORES_VERSION = 2; | ||
export declare const STORES: IndexedDBStores; | ||
export {}; |
@@ -10,8 +10,7 @@ import { DBValue } from './KeyValue'; | ||
private openDB; | ||
private createIndexes; | ||
private getOptions; | ||
private hasKeyPath; | ||
save(value: Record<string, any>): void; | ||
load(key: string, callback: (result: T) => void): void; | ||
loadAll(callback: (result: T[]) => void): void; | ||
load(key: string, callback: Function): void; | ||
loadAll(callback: Function): void; | ||
} |
@@ -12,3 +12,3 @@ { | ||
}, | ||
"version": "0.8.12", | ||
"version": "0.8.13", | ||
"main": "dist/index.js", | ||
@@ -30,3 +30,3 @@ "module": "dist/index.es.js", | ||
"dependencies": { | ||
"@candulabs/eventing": "^0.8.12", | ||
"@candulabs/eventing": "^0.8.13", | ||
"dataloader": "^2.0.0", | ||
@@ -37,3 +37,3 @@ "preact": "10.5.13", | ||
}, | ||
"gitHead": "683797944709075696db7481d4288db32a9e51a7" | ||
"gitHead": "2a30fa26eeb69f0eb21a7deb96b9cc8ee049087f" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
604106
205
3935
Updated@candulabs/eventing@^0.8.13