File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414- Updated GitHub Actions CI config:
1515 - Run tests with Node.js v14, v16, v18.
1616- Fixed the ` fetchGraphQL ` test with the global ` fetch ` API unavailable for new versions of Node.js that have the ` fetch ` global.
17+ - Fixed some JSDoc links.
1718
1819## 18.0.0
1920
Original file line number Diff line number Diff line change @@ -5,11 +5,12 @@ import React from "react";
55import useCache from "./useCache.mjs" ;
66
77/** @typedef {import("./Cache.mjs").default } Cache */
8+ /** @typedef {import("./Cache.mjs").CacheEventMap } CacheEventMap */
89
910/**
1011 * React hook to prevent a {@link Cache.store cache store} entry from being
1112 * pruned, by canceling the cache entry deletion for
12- * {@link Cache#event: prune prune events} with `event.preventDefault()`.
13+ * {@link CacheEventMap. prune ` prune`} events with `event.preventDefault()`.
1314 * @param {import("./Cache.mjs").CacheKey } cacheKey Cache key.
1415 */
1516export default function useCacheEntryPrunePrevention ( cacheKey ) {
Original file line number Diff line number Diff line change @@ -5,10 +5,11 @@ import React from "react";
55import useCache from "./useCache.mjs" ;
66
77/** @typedef {import("./Cache.mjs").CacheKey } CacheKey */
8+ /** @typedef {import("./Cache.mjs").CacheEventMap } CacheEventMap */
89
910/**
1011 * React hook to load a {@link Cache.store cache store} entry after it’s
11- * {@link Cache#event: delete deleted}, if there isn’t loading for the
12+ * {@link CacheEventMap. delete deleted}, if there isn’t loading for the
1213 * {@link CacheKey cache key} that started after.
1314 * @param {CacheKey } cacheKey Cache key.
1415 * @param {import("./types.mjs").Loader } load Memoized function that starts the
Original file line number Diff line number Diff line change @@ -5,10 +5,11 @@ import React from "react";
55import useCache from "./useCache.mjs" ;
66
77/** @typedef {import("./Cache.mjs").CacheKey } CacheKey */
8+ /** @typedef {import("./Cache.mjs").CacheEventMap } CacheEventMap */
89
910/**
1011 * React hook to load a {@link Cache.store cache store} entry after becomes
11- * {@link Cache#event: stale stale}, if there isn’t loading for the
12+ * {@link CacheEventMap. stale stale}, if there isn’t loading for the
1213 * {@link CacheKey cache key} that started after.
1314 * @param {CacheKey } cacheKey Cache key.
1415 * @param {import("./types.mjs").Loader } load Memoized function that starts the
You can’t perform that action at this time.
0 commit comments