diff --git a/docs/utils-reference/getting-started.md b/docs/utils-reference/getting-started.md index cba8f29..1148e2e 100644 --- a/docs/utils-reference/getting-started.md +++ b/docs/utils-reference/getting-started.md @@ -16,6 +16,14 @@ npm install --save @raycast/utils ## Changelog +### v1.16.0 + +- Add an `errorTitle` prop to `useFetch`, `useCachedPromise`, and `usePromise` to make it possible to customize the error displayed instead of a generic "Failed to fetch latest data". + +### v1.15.0 + +- Add `useLocalStorage` hook. + ### v1.14.0 - Add `useStreamJSON` hook. diff --git a/package.json b/package.json index f018caf..171914f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@raycast/utils", - "version": "1.15.0", + "version": "1.16.0", "description": "Set of utilities to streamline building Raycast extensions", "author": "Raycast Technologies Ltd.", "homepage": "https://developers.raycast.com/utils-reference", diff --git a/src/useFetch.ts b/src/useFetch.ts index b2a3a44..8d8a182 100644 --- a/src/useFetch.ts +++ b/src/useFetch.ts @@ -126,6 +126,7 @@ export function useFetch