@khanacademy/wonder-blocks-data 14.0.6 → 14.0.7

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @khanacademy/wonder-blocks-data
2
2
 
3
+ ## 14.0.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [0199324d]
8
+ - @khanacademy/wonder-blocks-core@12.0.0
9
+
3
10
  ## 14.0.6
4
11
 
5
12
  ### Patch Changes
@@ -11,4 +11,4 @@ import type { ValidCacheData } from "../util/types";
11
11
  * an intercepted handler, and then invoke `useServerEffect` (or other things)
12
12
  * with that intercepted handler.
13
13
  */
14
- export declare const useRequestInterception: <TData extends ValidCacheData>(requestId: string, handler: () => Promise<TData>) => () => Promise<TData>;
14
+ export declare const useRequestInterception: <TData extends ValidCacheData>(requestId: string, handler: () => Promise<TData>) => (() => Promise<TData>);
@@ -28,5 +28,5 @@ export declare const SharedCache: ScopedCache;
28
28
  * sure this toggling is optional - or we could use a callback argument, to
29
29
  * achieve this on an as-needed basis.
30
30
  */
31
- export declare const useSharedCache: <TValue extends ValidCacheData>(id: string, scope: string, initialValue?: TValue | (() => TValue | null | undefined) | null | undefined) => [TValue | null | undefined, CacheValueFn<TValue>];
31
+ export declare const useSharedCache: <TValue extends ValidCacheData>(id: string, scope: string, initialValue?: TValue | null | undefined | (() => TValue | null | undefined)) => [TValue | null | undefined, CacheValueFn<TValue>];
32
32
  export {};
@@ -14,4 +14,4 @@ export declare const initializeHydrationCache: (source: ResponseCache) => void;
14
14
  * the cached hydration responses. If no predicate is provided, all cached
15
15
  * hydration responses will be purged.
16
16
  */
17
- export declare const purgeHydrationCache: (predicate?: ((key: string, cacheEntry?: Readonly<CachedResponse<ValidCacheData>> | null | undefined) => boolean) | undefined) => void;
17
+ export declare const purgeHydrationCache: (predicate?: (key: string, cacheEntry?: Readonly<CachedResponse<ValidCacheData>> | null | undefined) => boolean) => void;
@@ -2,4 +2,4 @@ import type { ValidCacheData, CachedResponse, Result } from "./types";
2
2
  /**
3
3
  * Turns a cache entry into a stateful result.
4
4
  */
5
- export declare const resultFromCachedResponse: <TData extends ValidCacheData>(cacheEntry?: CachedResponse<TData> | null | undefined) => Result<TData> | null | undefined;
5
+ export declare const resultFromCachedResponse: <TData extends ValidCacheData>(cacheEntry?: CachedResponse<TData> | null) => Result<TData> | null | undefined;
@@ -4,8 +4,8 @@ import type { Result, ValidCacheData } from "./types";
4
4
  */
5
5
  export declare const Status: Readonly<{
6
6
  loading: <TData extends ValidCacheData = ValidCacheData>() => Result<TData>;
7
- noData: <TData_1 extends ValidCacheData = ValidCacheData>() => Result<TData_1>;
8
- aborted: <TData_2 extends ValidCacheData = ValidCacheData>() => Result<TData_2>;
9
- success: <TData_3 extends ValidCacheData>(data: TData_3) => Result<TData_3>;
10
- error: <TData_4 extends ValidCacheData = ValidCacheData>(error: Error) => Result<TData_4>;
7
+ noData: <TData extends ValidCacheData = ValidCacheData>() => Result<TData>;
8
+ aborted: <TData extends ValidCacheData = ValidCacheData>() => Result<TData>;
9
+ success: <TData extends ValidCacheData>(data: TData) => Result<TData>;
10
+ error: <TData extends ValidCacheData = ValidCacheData>(error: Error) => Result<TData>;
11
11
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khanacademy/wonder-blocks-data",
3
- "version": "14.0.6",
3
+ "version": "14.0.7",
4
4
  "design": "v1",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.18.6",
18
- "@khanacademy/wonder-blocks-core": "^11.1.0"
18
+ "@khanacademy/wonder-blocks-core": "^12.0.0"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "@khanacademy/wonder-stuff-core": "^1.2.2",