Skip to content

Commit

Permalink
fix(deps): bump with-simple-caching dep version
Browse files Browse the repository at this point in the history
  • Loading branch information
uladkasach committed Nov 28, 2022
1 parent b47c569 commit 1e2aa97
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 17 deletions.
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@
"@types/sha.js": "^2.4.0",
"sha.js": "^2.4.11",
"type-fns": "^0.6.0",
"with-simple-caching": "^0.10.1"
"with-simple-caching": "^0.11.0"
}
}
4 changes: 2 additions & 2 deletions src/RemoteStateCacheContext.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LogicWithExtendableCaching } from 'with-simple-caching';
import { LogicWithExtendableCachingAsync } from 'with-simple-caching';
import { RemoteStateCache } from '.';
import { WithRemoteStateQueryCachingOptions } from './RemoteStateQueryCachingOptions';

Expand All @@ -19,7 +19,7 @@ export interface RemoteStateCacheContextQueryRegistration<L extends (...args: an
/**
* the query with extended caching which can be used
*/
query: LogicWithExtendableCaching<L, C>;
query: LogicWithExtendableCachingAsync<L, C>;

/**
* the remote-state caching options this query was registered with
Expand Down
9 changes: 5 additions & 4 deletions src/createRemoteStateCachingContext.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { isAFunction, PickOne } from 'type-fns';
import {
WithSimpleCachingOptions,
LogicWithExtendableCaching,
withExtendableCaching,
LogicWithExtendableCachingAsync,
withExtendableCachingAsync,
KeySerializationMethod,
WithSimpleCachingCacheOption,
WithSimpleCachingAsyncOptions,
Expand Down Expand Up @@ -92,7 +92,8 @@ export type QueryWithRemoteStateCachingAddTriggerMethod<Q extends (...args: any[
/**
* the shape of a query extended with remote state caching
*/
export interface QueryWithRemoteStateCaching<L extends (...args: any) => any, C extends RemoteStateCache> extends LogicWithExtendableCaching<L, C> {
export interface QueryWithRemoteStateCaching<L extends (...args: any) => any, C extends RemoteStateCache>
extends LogicWithExtendableCachingAsync<L, C> {
/**
* the registered name of this query
*/
Expand Down Expand Up @@ -222,7 +223,7 @@ export const createRemoteStateCachingContext = <
const valueDeserialiationMethod = options.deserialize?.value ?? (defaultOptions.deserialize?.value as any) ?? defaultValueDeserializationMethod;

// extend the logic with caching
const logicExtendedWithCaching = withExtendableCaching(logic, {
const logicExtendedWithCaching = withExtendableCachingAsync(logic, {
...options,
serialize: {
key: keySerializationMethodWithNamespace,
Expand Down

0 comments on commit 1e2aa97

Please sign in to comment.