Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/utils-reference/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ npm install --save @raycast/utils

## Changelog

### v2.1.1

- Fix the default size of `getFavicon`.

### v2.1.0

- `getFavicon` will now respect the user's setting for the favicon provider. Note that the `Apple` provider isn't supported since it relies on a native API.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "@raycast/utils",
"version": "2.1.0",
"version": "2.1.1",
"description": "Set of utilities to streamline building Raycast extensions",
"author": "Raycast Technologies Ltd.",
"homepage": "https://developers.raycast.com/utils-reference",
"homepage": "https://developers.raycast.com/utilities/getting-started",
"source": "src/index.ts",
"main": "dist/main.js",
"module": "dist/module.js",
Expand Down
2 changes: 1 addition & 1 deletion src/icon/favicon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
const hostname = urlObj.hostname;

const faviconProvider: "none" | "raycast" | "apple" | "google" | "duckDuckGo" | "duckduckgo" | "legacy" =
(process.env.FAVICON_PROVIDER as any) ?? "raycast";

Check warning on line 49 in src/icon/favicon.ts

View workflow job for this annotation

GitHub Actions / tests

Unexpected any. Specify a different type

switch (faviconProvider) {
case "none":
Expand Down Expand Up @@ -77,7 +77,7 @@
case "raycast":
default:
return {
source: `https://api.ray.so/favicon?url=${hostname}&size=${options?.size}`,
source: `https://api.ray.so/favicon?url=${hostname}&size=${options?.size ?? 64}`,
fallback: options?.fallback ?? Icon.Link,
mask: options?.mask,
};
Expand Down
Loading