Skip to content

Conversation

@fredericoo
Copy link
Contributor

@fredericoo fredericoo commented Feb 10, 2026

low hanging fruit on dep versions

phase 1 (and a bit of 2) of https://github.com/orgs/Shopify/projects/4613/views/113?pane=issue&itemId=155935803&issue=Shopify%7Cdeveloper-tools-team%7C1035

Before

32 vulnerabilities (5 low, 14 moderate, 10 high, 3 critical)

After

24 vulnerabilities (4 low, 13 moderate, 6 high, 1 critical)

@shopify
Copy link
Contributor

shopify bot commented Feb 10, 2026

Oxygen deployed a preview of your fb-audit-fix branch. Details:

Storefront Status Preview link Deployment details Last update (UTC)
Skeleton (skeleton.hydrogen.shop) ✅ Successful (Logs) Preview deployment Inspect deployment February 10, 2026 8:22 PM

Learn more about Hydrogen's GitHub integration.

@@ -1,5 +1,5 @@
import {CommandModule} from 'yargs';
import {zodToJsonSchema} from 'zod-to-json-schema';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

as of zod 4 we no longer need to use an external library

const error = {
validator: 'RecipeSchema',
message: 'Expected string, received number',
message: 'Invalid input: expected string, received number',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

error message changed in zod 4

const errors: ValidationError[] = error.issues.map((issue) => {
const lineNumber = getYamlLineNumber(recipeYamlPath, issue.path);
const actualValue = getYamlValue(recipeYamlPath, issue.path);
const issuePath = issue.path as (string | number)[];
Copy link
Contributor Author

Choose a reason for hiding this comment

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

zod 4 fixed this type to PropertyKey (it was always PropertyKey in runtime, but it was typed as string | number)

"inquirer": "^12.4.2",
"istextorbinary": "9.5.0",
"ts-node": "^10.9.2",
"yaml": "^2.4.2",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

missing peer dep, npm hoisted from ✨somewhere✨

Copy link
Contributor Author

@fredericoo fredericoo Feb 10, 2026

Choose a reason for hiding this comment

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

all changes to this package were because there was a different version of prettier running on it and now it is all the same

i think

@fredericoo fredericoo marked this pull request as ready for review February 10, 2026 19:52
@fredericoo fredericoo requested a review from a team as a code owner February 10, 2026 19:52
@github-actions

This comment has been minimized.

'@shopify/cli-hydrogen': patch
---

Updated `prettier` from v2 to v3.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

is this harmless? i had to update a test snapshot because it formats thigns slightlyyy differently

i know cli-hydrogen formats files after it adds them to the projects – i wonder if it wouldn’t be best to have this as a peer dep instead in the future and avoid bundling it with the cli binary

the reason why is that the user may be using another version of prettier, or no prettier at all, in which case we simply should skip formatting instead of forcing down our version of it!

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.

1 participant