Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: resolve punycode deprecation notice #3537

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

petertonysmith94
Copy link
Contributor

@petertonysmith94 petertonysmith94 commented Jan 3, 2025

Summary

This PR fixes most of the punycode deprecation notices for node@v22+:

Internal users

Fixed most the notices for internal users by add an override for whatwg-url on the pnpm workspace.

  • master: 311 warnings (job, raw)
  • ps/chore/fix-punycode-deprecation: 3 warnings (job, raw).

I believe the docs and docs-api still experience this due to the markdown-it dependency.

create fuels users

Fixed for users of create fuels by adding relevant overrides to the templates.

"Other" users

Any user using fuels using our package, without the overridden dependencies will experience this issue. From my investigation the graphql-request dependency is the primary culprit due to its reliance on cross-fetch. As of cross-fetch@v7 the cross-fetch dependency has been removed, although it is also now ESM only and therefore blocking the upgrade.

Checklist

  • All changes are covered by tests (or not applicable)
  • All changes are documented (or not applicable)
  • I reviewed the entire PR myself (preferably, on GH UI)
  • I described all Breaking Changes (or there's none)

@petertonysmith94 petertonysmith94 added the bug Issue is a bug label Jan 3, 2025
@petertonysmith94 petertonysmith94 self-assigned this Jan 3, 2025
Copy link

vercel bot commented Jan 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fuels-template ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 3, 2025 4:36pm
ts-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 3, 2025 4:36pm
ts-docs-api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 3, 2025 4:36pm

package.json Show resolved Hide resolved
Copy link
Contributor

github-actions bot commented Jan 3, 2025

This PR is published in NPM with version 0.0.0-pr-3537-20250103163221

This reverts commit 18073b2.
Copy link
Contributor

github-actions bot commented Jan 3, 2025

Coverage Report:

Lines Branches Functions Statements
77.79%(+0.01%) 70.46%(+0.02%) 75.37%(+0%) 77.75%(+0.01%)
Changed Files:
Ok File (✨=New File) Lines Branches Functions Statements
🔴 packages/create-fuels/src/cli.ts 87.35%
(+0.61%)
47.82%
(+4.97%)
100%
(+0%)
87.35%
(+0.61%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix punycode deprecation notice
2 participants