Deprecation warning - punycode module

Hi,

One of my projects is running MSSQL as the backend. In this project, I have started getting the deprecation warning for the node module punycode, which is one of the dependencies in node module tedious.

This node project is running on AC1.

How can I replace this module with userland alternative as suggested in the warning message?

Screenshot 2024-08-20 at 3.50.36 PM

I had same warning with the onsignal node sdk.

Moved to bug reports, because the resolution should be done by Patrick and fixed with a Wappler update. What NodeJS version are you running and what OS?

Facing the same issue

From what I read by google searching, is that punycode is deprecated in version 21...

Just forwarding my finding for having an idea....

They suggest :

  1. don't worry about that warning for the time being (?)
    reactjs - Warning "DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead." - Stack Overflow

  2. downgrade to 20.5.1
    mongoose - DeprecationWarning: The `punycode` module is deprecated - Stack Overflow
    I don't know if that action conflicts with other assets in wappler...

Any uggestions from the team would be appriciated

I'm running NodeJS v22 Alpine on MacOS.

Not really relevant as the error comes from import of an external npm.

Bump!

It looks like Wappler is still bundling tedious@11.0.8, which triggers this warning on newer Node versions. Newer releases of tedious have removed the deprecated import, so updating Wappler’s bundled version to the latest release should resolve it.

Could the team please look at the older packages being used in the core app and update them where possible, including moving to the latest tedious version?

Thanks!

We are still on older version of Tedious because the newer versions has a huge Azure dependencies downloading more than 60MB of files in node_modules and a lot of native modules that aren't needed.

I have filed an issue about this, like 5 years ago but it seems it can't be easily solved.

There seem to be some hacks to try, like:

but in the same way you can also overide just the punicode