Skip to content

Stop using the internal NodeJS punycode module#238

Merged
colincasey merged 1 commit intosalesforce:masterfrom
gboer:fix/actually-use-punycode-package
May 23, 2022
Merged

Stop using the internal NodeJS punycode module#238
colincasey merged 1 commit intosalesforce:masterfrom
gboer:fix/actually-use-punycode-package

Conversation

@gboer
Copy link
Copy Markdown
Contributor

@gboer gboer commented May 3, 2022

The way the code is right now, it doesn't use the Punycode package, but the internal NodeJS punycode module. That is deprecated now, which is why I saw the warning popping up (for the ones googling this, the warning is [DEP0040] DeprecationWarning: The 'punycode' module is deprecated. Please use a userland alternative instead). According to the docs of the Punycode package, you need to use require('punycode/'), to use the Punycode package rather than the internal NodeJS module, see https://github.com/mathiasbynens/punycode.js#installation.

…unycode package (also because the internal punycode NodeJS module is deprecated)
Copy link
Copy Markdown
Contributor

@wjhsf wjhsf left a comment

Choose a reason for hiding this comment

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

Thanks for catching this, @gboer!

@colincasey colincasey merged commit 8088047 into salesforce:master May 23, 2022
@gboer gboer deleted the fix/actually-use-punycode-package branch May 23, 2022 17:50
@gboer
Copy link
Copy Markdown
Contributor Author

gboer commented Jun 28, 2022

@colincasey any way we can get a new release out? I see there's actually quite a number of things fixed that aren't released yet. If there's something I can do, let me know!

@colincasey
Copy link
Copy Markdown
Contributor

colincasey commented Jun 28, 2022

@gboer sorry for the delay. we're planning to release those changes next week (cc: @awaterma)

@gboer
Copy link
Copy Markdown
Contributor Author

gboer commented Jun 29, 2022

Great! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants