Skip to content

Replace deprecated faker.internet.color() with faker.color.rgb()#2985

Merged
juanpprieto merged 2 commits intoShopify:mainfrom
emmanuel-ferdman:main
Aug 21, 2025
Merged

Replace deprecated faker.internet.color() with faker.color.rgb()#2985
juanpprieto merged 2 commits intoShopify:mainfrom
emmanuel-ferdman:main

Conversation

@emmanuel-ferdman
Copy link
Copy Markdown
Contributor

PR Summary

This small PR replaces the deprecated faker.internet.color() with the recommended faker.color.rgb() to resolve deprecation warnings which you can find in the CI logs:

[@faker-js/faker]: faker.internet.color() is deprecated since v9.6.0 and will be removed in v10.0.0. Please use faker.color.rgb() instead.

Checklist

  • I've read the Contributing Guidelines
  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've added a changeset if this PR contains user-facing or noteworthy changes
  • I've added tests to cover my changes
  • I've added or updated the documentation

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
@shopify
Copy link
Copy Markdown
Contributor

shopify bot commented Jun 10, 2025

Oxygen deployed a preview of your main branch. Details:

Storefront Status Preview link Deployment details Last update (UTC)
Skeleton (skeleton.hydrogen.shop) ✅ Successful (Logs) Preview deployment Inspect deployment August 20, 2025 8:15 PM
metaobjects ✅ Successful (Logs) Preview deployment Inspect deployment August 20, 2025 8:15 PM
classic-remix ✅ Successful (Logs) Preview deployment Inspect deployment August 20, 2025 8:15 PM
third-party-queries-caching ✅ Successful (Logs) Preview deployment Inspect deployment August 20, 2025 8:15 PM
custom-cart-method ✅ Successful (Logs) Preview deployment Inspect deployment August 20, 2025 8:15 PM
sitemap ✅ Successful (Logs) Preview deployment Inspect deployment July 19, 2025 9:26 AM

Learn more about Hydrogen's GitHub integration.

@juanpprieto
Copy link
Copy Markdown
Contributor

@emmanuel-ferdman please add a changeset for a hydrogen-react patch and I will include it on 2025-07 (sorry just noticed this was left behind)

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
@juanpprieto juanpprieto requested a review from Copilot August 21, 2025 15:22
Copy link
Copy Markdown
Contributor

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 updates deprecated Faker.js API usage to resolve CI deprecation warnings by replacing faker.internet.color() with the recommended faker.color.rgb() method.

  • Replaced deprecated faker.internet.color() with faker.color.rgb() in test helper
  • Added changeset to document the API update

Reviewed Changes

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

File Description
packages/hydrogen-react/src/parse-metafield.test.helpers.ts Updated faker method call from deprecated internet.color() to color.rgb()
.changeset/tender-jeans-build.md Added changeset documenting the faker API update

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@juanpprieto juanpprieto merged commit b79e92f into Shopify:main Aug 21, 2025
8 checks passed
This was referenced Sep 11, 2025
juanpprieto pushed a commit that referenced this pull request Sep 17, 2025
…2985)

* Replace deprecated `faker.internet.color()` with `faker.color.rgb()`

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>

* Replace deprecated `faker.internet.color()` with `faker.color.rgb()`

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>

---------

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
This was referenced Sep 30, 2025
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.

4 participants