google-search-title-qualified icon indicating copy to clipboard operation
google-search-title-qualified copied to clipboard

punycodeライブラリを削除するなりして非推奨の関数を使うのをやめる

Open ncaq opened this issue 4 years ago • 2 comments

added: 国際化ホスト名を解決した表示にする closed #48 by ncaq · Pull Request #49 · ncaq/google-search-title-qualified で新しく生まれた問題。

国際化ホスト名を解決した表示にする · Issue #48 · ncaq/google-search-title-qualified

に問題の一部が書かれている。

ncaq avatar Sep 06 '21 15:09 ncaq

https://www.ncaq.net/2021/09/07/00/13/16/

この記事を書かれた当時とは状況が違っているのかもしれませんが、少なくとも現在はNode.jsのドキュメントに「Node.jsにバンドルされている punycode モジュールは非推奨になったので、かわりに punycode.js を使用せよ」と書かれているように思います。

The version of the punycode module bundled in Node.js is being deprecated. In a future major version of Node.js this module will be removed. Users currently depending on the punycode module should switch to using the userland-provided Punycode.js module instead. For punycode-based URL encoding, see url.domainToASCII or, more generally, the WHATWG URL API.

https://nodejs.org/api/punycode.html

munierujp avatar Mar 17 '22 03:03 munierujp

おっ外部ライブラリ良さげなやつあるんですね、今度試してみます!ありがとうございます!

ncaq avatar Mar 17 '22 04:03 ncaq