Skip to content

fix(googleicons): remove wrong and unused request#203

Merged
qwerzl merged 1 commit intounjs:mainfrom
qwerzl:fix/googleicons-unused-request
Jun 9, 2025
Merged

fix(googleicons): remove wrong and unused request#203
qwerzl merged 1 commit intounjs:mainfrom
qwerzl:fix/googleicons-unused-request

Conversation

@qwerzl
Copy link
Copy Markdown
Collaborator

@qwerzl qwerzl commented Jun 9, 2025

The request to https://fonts.googleapis.com/icon/css2 is not used and returns 404. The 404 html also interferes with the CSS parser that it cannot correctly parse the woff2 file.

@qwerzl qwerzl requested a review from danielroe as a code owner June 9, 2025 09:33
@qwerzl qwerzl requested review from Copilot and removed request for danielroe June 9, 2025 09:33
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes an unused fetch request to the Google icons endpoint that was returning a 404 and interfering with CSS parsing. Key changes include:

  • Removal of the asynchronous fetch call in src/providers/googleicons.ts.
  • An update to the test in test/providers/googleicons.test.ts to reflect the supported woff2 format.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/providers/googleicons.ts Removed the unused Google icons fetch request to avoid 404 errors
test/providers/googleicons.test.ts Updated test data to include a woff2 font source in the expected format
Comments suppressed due to low confidence (2)

src/providers/googleicons.ts:41

  • The removal of the unused fetch call for Google icons is appropriate given that it returns a 404, but please confirm that no component depends on any side effects from this call.
if (family.includes('Icons')) { ... }

test/providers/googleicons.test.ts:355

  • The addition of the woff2 format test case is beneficial; ensure that the test case data fully aligns with the expected behavior of the provider.
{

@qwerzl
Copy link
Copy Markdown
Collaborator Author

qwerzl commented Jun 9, 2025

@danielroe The checks are passing, I'm merging it now. Noticed a minor system issue on adobe's status page, might have caused the timeout 🤷

@qwerzl qwerzl merged commit 89a25e7 into unjs:main Jun 9, 2025
5 of 7 checks passed
@qwerzl qwerzl deleted the fix/googleicons-unused-request branch June 9, 2025 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants