Whatwg-encoding@3.1.1 deprecation warning in Forge CLI

Over the new year break the open source package whatwg-encoding was marked deprecated on NPM. Forge CLI depends on this package as a transitive dependency from cheerio due to which you will see following warning when installing Forge CLI:

npm warn deprecated whatwg-encoding@3.1.1: Use @exodus/bytes instead for a more spec-conformant and faster implementation

Our team is working on upgrading to the recommended and more performant package. We have couple of PRs in the dependency packages:

We are tracking and contributing to these changes so that they get shipped before next Forge CLI release. Please let me know in the thread if there are any question about this warning.

Thanks,

Ajay N Mathur

3 Likes

Hey team,

The above changes were merged. However, for one of the packages a new version with fix has not been released yet since we are waiting for another change from package owner BREAKING: Make module ESM only by fb55 · Pull Request #1211 · fb55/encoding-sniffer · GitHub .

We have been tracking the change. Once we have a new version of the package with the fix we will upgrade in the Forge CLI too.

Thanks,

Ajay N Mathur

1 Like