google-search-title-qualified
google-search-title-qualified copied to clipboard
punycodeライブラリを削除するなりして非推奨の関数を使うのをやめる
added: 国際化ホスト名を解決した表示にする closed #48 by ncaq · Pull Request #49 · ncaq/google-search-title-qualified で新しく生まれた問題。
国際化ホスト名を解決した表示にする · Issue #48 · ncaq/google-search-title-qualified
に問題の一部が書かれている。
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
おっ外部ライブラリ良さげなやつあるんですね、今度試してみます!ありがとうございます!