{"id":269998,"date":"2023-04-27T09:00:25","date_gmt":"2023-04-27T01:00:25","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=269998"},"modified":"2023-04-23T15:36:08","modified_gmt":"2023-04-23T07:36:08","slug":"release-with-the","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/release-with-the.html","title":{"rendered":"Node 20.0.0 \u53d1\u5e03,\u5e26\u6709\u6700\u65b0\u7248\u672c\u7684URL\u89e3\u6790\u5668"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nNode.js v20\u5e26\u6709\u6700\u65b0\u7248\u672c\u7684URL\u89e3\u6790\u5668\uff0cAda\u3002\u8fd9\u6b21\u66f4\u65b0\u4e3aURL\u89e3\u6790\u5e26\u6765\u4e86\u91cd\u5927\u7684\u6027\u80fd\u6539\u8fdb\uff0c\u5305\u62ec\u5bf9node:url\u4e2durl.domainToASCII\u548curl.domainToUnicode\u51fd\u6570\u7684\u589e\u5f3a\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

\u6743\u9650\u6a21\u578b<\/strong><\/div>\n

Node.js\u73b0\u5728\u6709\u4e00\u4e2a\u5b9e\u9a8c\u6027\u7684\u529f\u80fd\uff0c\u53eb\u505a\u8bb8\u53ef\u6a21\u578b\u3002\u5b83\u5141\u8bb8\u5f00\u53d1\u8005\u5728\u7a0b\u5e8f\u6267\u884c\u8fc7\u7a0b\u4e2d\u9650\u5236\u5bf9\u7279\u5b9a\u8d44\u6e90\u7684\u8bbf\u95ee\uff0c\u5982\u6587\u4ef6\u7cfb\u7edf\u64cd\u4f5c\u3001\u5b50\u8fdb\u7a0b\u751f\u6210\u548c\u5de5\u4f5c\u7ebf\u7a0b\u521b\u5efa\u3002\u8be5API\u5b58\u5728\u4e8e\u4e00\u4e2a\u6807\u5fd7\u2013\u5b9e\u9a8c\u6027\u6743\u9650\uff08experimental-permission\uff09\u80cc\u540e\uff0c\u5f53\u5b83\u88ab\u542f\u7528\u65f6\uff0c\u5c06\u9650\u5236\u5bf9\u6240\u6709\u53ef\u7528\u6743\u9650\u7684\u8bbf\u95ee\u3002\u901a\u8fc7\u4f7f\u7528\u8fd9\u4e00\u529f\u80fd\uff0c\u5f00\u53d1\u4eba\u5458\u53ef\u4ee5\u9632\u6b62\u4ed6\u4eec\u7684\u5e94\u7528\u7a0b\u5e8f\u8bbf\u95ee\u6216\u4fee\u6539\u654f\u611f\u6570\u636e\u6216\u8fd0\u884c\u6f5c\u5728\u7684\u6709\u5bb3\u4ee3\u7801\u3002\u5173\u4e8e\u6743\u9650\u6a21\u578b\u7684\u66f4\u591a\u4fe1\u606f\u53ef\u4ee5\u5728Node.js\u6587\u6863\u4e2d\u627e\u5230\u3002<\/p>\n

\u6743\u9650\u6a21\u578b\u662fRafael Gonzaga\u5728#44004\u4e2d\u7684\u8d21\u732e\u3002<\/p>\n

\u81ea\u5b9a\u4e49ESM\u52a0\u8f7d\u5668\u94a9\u5b50\u5728\u4e13\u7528\u7ebf\u7a0b\u4e0a\u8fd0\u884c
\n\u901a\u8fc7\u52a0\u8f7d\u5668\uff08\u2013experimental-loader=foo.mjs\uff09\u63d0\u4f9b\u7684ESM\u94a9\u5b50\u73b0\u5728\u5728\u4e00\u4e2a\u4e13\u7528\u7ebf\u7a0b\u4e2d\u8fd0\u884c\uff0c\u4e0e\u4e3b\u7ebf\u7a0b\u9694\u79bb\u3002\u8fd9\u4e3a\u52a0\u8f7d\u5668\u63d0\u4f9b\u4e86\u4e00\u4e2a\u72ec\u7acb\u7684\u8303\u56f4\uff0c\u5e76\u786e\u4fdd\u52a0\u8f7d\u5668\u548c\u5e94\u7528\u7a0b\u5e8f\u4ee3\u7801\u4e4b\u95f4\u6ca1\u6709\u4ea4\u53c9\u6c61\u67d3\u3002<\/p>\n

\u540c\u6b65\u7684import.meta.resolve()<\/strong><\/div>\n

\u4e3a\u4e86\u4e0e\u6d4f\u89c8\u5668\u884c\u4e3a\u4fdd\u6301\u4e00\u81f4\uff0c\u8be5\u51fd\u6570\u73b0\u5728\u540c\u6b65\u8fd4\u56de\u3002\u5c3d\u7ba1\u5982\u6b64\uff0c\u7528\u6237\u52a0\u8f7d\u5668\u7684\u89e3\u6790\u94a9\u5b50\u4ecd\u7136\u53ef\u4ee5\u88ab\u5b9a\u4e49\u4e3a\u5f02\u6b65\u51fd\u6570\uff08\u6216\u8005\u540c\u6b65\u51fd\u6570\uff0c\u5982\u679c\u4f5c\u8005\u613f\u610f\u7684\u8bdd\uff09\u3002\u5373\u4f7f\u6709\u5f02\u6b65\u89e3\u6790\u94a9\u5b50\u88ab\u52a0\u8f7d\uff0cimport.meta.resolve\u4ecd\u5c06\u4e3a\u5e94\u7528\u7a0b\u5e8f\u4ee3\u7801\u540c\u6b65\u5730\u8fd4\u56de\u3002<\/p>\n

\u7531Anna Henningsen\u3001Antoine du Hamel\u3001Geoffrey Booth\u3001Guy Bedford\u3001Jacob Smith\u548cMicha\u00ebl Zasso\u5728#44710\u8d21\u732e\u3002<\/p>\n

V8 11.3<\/strong><\/div>\n

V8\u5f15\u64ce\u88ab\u66f4\u65b0\u523011.3\u7248\u672c\uff0c\u662fChromium 113\u7684\u4e00\u90e8\u5206\u3002\u8fd9\u4e2a\u7248\u672c\u5305\u62ec\u4e86JavaScript API\u7684\u4e09\u4e2a\u65b0\u529f\u80fd\uff1a<\/p>\n

    \n
  1. String.prototype.isWellFormed\u548ctoWellFormed<\/li>\n
  2. \u901a\u8fc7\u590d\u5236\u6539\u53d8Array\u548cTypedArray\u7684\u65b9\u6cd5<\/li>\n
  3. \u53ef\u8c03\u6574\u7684ArrayBuffer\u548c\u53ef\u589e\u957f\u7684SharedArrayBuffer<\/li>\n
  4. \u6b63\u5219v\u6807\u5fd7\u4e0e\u8bbe\u7f6e\u7b26\u53f7+\u5b57\u7b26\u4e32\u7684\u5c5e\u6027<\/li>\n
  5. WebAssembly\u5c3e\u90e8\u8c03\u7528<\/li>\n<\/ol>\n

    V8\u7684\u66f4\u65b0\u662fMicha\u00ebl Zasso\u5728#47251\u7684\u8d21\u732e\u3002<\/p>\n

    \u7a33\u5b9a\u7684\u6d4b\u8bd5\u8fd0\u884c\u5668<\/strong><\/div>\n

    \u6700\u8fd1\u5bf9Node.js\u7684\u66f4\u65b0\uff0c\u7248\u672c20\uff0c\u5305\u62ec\u5bf9test_runner\u6a21\u5757\u7684\u4e00\u4e2a\u91cd\u8981\u6539\u53d8\u3002\u5728\u6700\u8fd1\u7684\u66f4\u65b0\u540e\uff0c\u8be5\u6a21\u5757\u5df2\u88ab\u6807\u8bb0\u4e3a\u7a33\u5b9a\u3002\u6b64\u524d\uff0ctest_runner\u6a21\u5757\u662f\u5b9e\u9a8c\u6027\u7684\uff0c\u4f46\u8fd9\u4e00\u53d8\u5316\u6807\u5fd7\u7740\u5b83\u6210\u4e3a\u4e00\u4e2a\u7a33\u5b9a\u7684\u6a21\u5757\uff0c\u53ef\u4ee5\u5728\u751f\u4ea7\u4e2d\u4f7f\u7528\u3002<\/p>\n

    \u7531Colin Ihrig\u8d21\u732e\u4e8e#46983<\/p>\n

    Ada 2.0<\/strong><\/div>\n

    Node.js v20\u5e26\u6709\u6700\u65b0\u7248\u672c\u7684URL\u89e3\u6790\u5668\uff0cAda\u3002\u8fd9\u6b21\u66f4\u65b0\u4e3aURL\u89e3\u6790\u5e26\u6765\u4e86\u91cd\u5927\u7684\u6027\u80fd\u6539\u8fdb\uff0c\u5305\u62ec\u5bf9node:url\u4e2durl.domainToASCII\u548curl.domainToUnicode\u51fd\u6570\u7684\u589e\u5f3a\u3002<\/p>\n

    Ada 2.0\u5df2\u88ab\u96c6\u6210\u5230Node.js\u4ee3\u7801\u5e93\u4e2d\uff0c\u786e\u4fdd\u5e94\u7528\u7a0b\u5e8f\u7684\u6240\u6709\u90e8\u5206\u90fd\u80fd\u4ece\u6539\u8fdb\u7684\u6027\u80fd\u4e2d\u53d7\u76ca\u3002\u6b64\u5916\uff0cAda 2.0\u7684\u7279\u70b9\u662f\u6bd4\u5176\u524d\u8eabAda 1.0.4\u6709\u4e86\u660e\u663e\u7684\u6027\u80fd\u63d0\u5347\uff0c\u540c\u65f6\u8fd8\u6d88\u9664\u4e86\u5bf9URL\u4e3b\u673a\u540d\u89e3\u6790\u7684ICU\u8981\u6c42\u3002<\/p>\n

    \u7531Yagiz Nizipli\u548cDaniel Lemire\u8d21\u732e\u4e8e#47339<\/p>\n

    \u51c6\u5907\u5355\u4e2a\u53ef\u6267\u884c\u7684\u5e94\u7528\u7a0b\u5e8f\u73b0\u5728\u9700\u8981\u6ce8\u5165\u4e00\u4e2aBlob
    \n\u6784\u5efa\u5355\u4e2a\u53ef\u6267\u884c\u5e94\u7528\u7a0b\u5e8f\u73b0\u5728\u9700\u8981\u6ce8\u5165\u7531Node.js\u4eceJSON\u914d\u7f6e\u4e2d\u51c6\u5907\u7684Blob\uff0c\u800c\u4e0d\u662f\u6ce8\u5165\u539f\u59cbJS\u6587\u4ef6\u3002\u8fd9\u5f00\u542f\u4e86\u5c06\u591a\u4e2a\u5171\u5b58\u8d44\u6e90\u5d4c\u5165SEA\uff08\u5355\u4e00\u53ef\u6267\u884c\u5e94\u7528\u7a0b\u5e8f\uff09\u7684\u53ef\u80fd\u6027\u3002<\/p>\n

    \u7531Joyee Cheung\u8d21\u732e\u4e8e#47125<\/p>\n

    Web Crypto API<\/strong><\/div>\n

    Web Crypto API\u51fd\u6570\u7684\u53c2\u6570\u73b0\u5728\u53ef\u4ee5\u50cf\u5176\u4ed6Web Crypto API\u5b9e\u73b0\u4e00\u6837\uff0c\u6839\u636e\u5176WebIDL\u5b9a\u4e49\u8fdb\u884c\u5f3a\u5236\u548c\u9a8c\u8bc1\u3002\u8fd9\u8fdb\u4e00\u6b65\u63d0\u9ad8\u4e86\u4e0e\u5176\u4ed6Web Crypto API\u5b9e\u73b0\u7684\u4e92\u64cd\u4f5c\u6027\u3002<\/p>\n

    \u8fd9\u4e00\u53d8\u5316\u662f\u7531Filip Skokan\u5728#46067\u4e2d\u505a\u51fa\u7684\u3002<\/p>\n

    \u5bf9ARM64 Windows\u7684\u6b63\u5f0f\u652f\u6301
    \nNode.js\u73b0\u5728\u5305\u62ec\u9002\u7528\u4e8eARM64 Windows\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\uff0c\u5141\u8bb8\u5728\u8be5\u5e73\u53f0\u4e0a\u8fdb\u884c\u672c\u5730\u6267\u884c\u3002MSI\u3001zip\/7z\u5305\u548c\u53ef\u6267\u884c\u6587\u4ef6\u53ef\u4ee5\u4eceNode.js\u7684\u4e0b\u8f7d\u7f51\u7ad9\u4e0a\u83b7\u5f97\uff0c\u4e0e\u6240\u6709\u5176\u4ed6\u5e73\u53f0\u4e00\u6837\u3002\u66f4\u65b0\u4e86CI\u7cfb\u7edf\uff0c\u73b0\u5728\u6240\u6709\u7684\u53d8\u5316\u90fd\u5728ARM64 Windows\u4e0a\u8fdb\u884c\u4e86\u5168\u9762\u6d4b\u8bd5\uff0c\u4ee5\u9632\u6b62\u9000\u6b65\u5e76\u786e\u4fdd\u517c\u5bb9\u6027\u3002<\/p>\n

    Stefan Stojanovic\u5728#47233\u4e2d\u5c06ARM64 Windows\u5347\u7ea7\u4e3a2\u7ea7\u652f\u6301\u3002<\/p>\n

    \u73b0\u5728\u5fc5\u987b\u6307\u5b9aWASI\u7248\u672c<\/strong><\/div>\n

    \u5f53new WASI()\u88ab\u8c03\u7528\u65f6\uff0c\u7248\u672c\u9009\u9879\u73b0\u5728\u662f\u5fc5\u987b\u7684\uff0c\u6ca1\u6709\u9ed8\u8ba4\u503c\u3002\u4efb\u4f55\u4f9d\u8d56\u9ed8\u8ba4\u7248\u672c\u7684\u4ee3\u7801\u5c06\u9700\u8981\u66f4\u65b0\uff0c\u4ee5\u8bf7\u6c42\u4e00\u4e2a\u7279\u5b9a\u7684\u7248\u672c\u3002<\/p>\n

    \u8fd9\u4e00\u6539\u52a8\u662f\u7531Michael Dawson\u5728#47391\u4e2d\u505a\u51fa\u7684\u3002<\/p>\n

    \u5f03\u7528\u548c\u5220\u9664<\/strong><\/div>\n

    [3bed5f11e0] \u2013 (SEMVER-MAJOR) url: runtime-deprecate url.parse() with invalid ports\uff08Rich Trott\uff09 #45526
    \nurl.parse()\u63a5\u53d7\u5e26\u6709\u975e\u6570\u5b57\u7aef\u53e3\u7684URL\u3002\u8fd9\u79cd\u884c\u4e3a\u53ef\u80fd\u4f1a\u5bfc\u81f4\u4e3b\u673a\u540d\u79f0\u88ab\u610f\u5916\u8f93\u5165\u6b3a\u9a97\u3002\u5728\u672a\u6765\u7684Node.js\u7248\u672c\u4e2d\uff0c\u8fd9\u4e9bURLs\u5c06\u629b\u51fa\u4e00\u4e2a\u9519\u8bef\uff0c\u6b63\u5982WHATWG URL API\u5df2\u7ecf\u505a\u7684\u90a3\u6837\u3002\u4ece Node.js 20 \u5f00\u59cb\uff0c\u8fd9\u4e9b URLs \u4f1a\u5bfc\u81f4 url.parse() \u53d1\u51fa\u8b66\u544a\u3002<\/p>\n

    \u66f4\u591a Node v20.0.0 (Current) | Node.js (nodejs.org)<\/strong><\/div>\n
      \n
    1. Windows 32-bit Installer: https:\/\/nodejs.org\/dist\/v20.0.0\/node-v20.0.0-x86.msi<\/li>\n
    2. Windows 64-bit Installer: https:\/\/nodejs.org\/dist\/v20.0.0\/node-v20.0.0-x64.msi<\/li>\n
    3. Windows ARM 64-bit Installer: https:\/\/nodejs.org\/dist\/v20.0.0\/node-v20.0.0-arm64.msi<\/li>\n
    4. Windows 32-bit Binary: https:\/\/nodejs.org\/dist\/v20.0.0\/win-x86\/node.exe<\/li>\n
    5. Windows 64-bit Binary: https:\/\/nodejs.org\/dist\/v20.0.0\/win-x64\/node.exe<\/li>\n
    6. Windows ARM 64-bit Binary: https:\/\/nodejs.org\/dist\/v20.0.0\/win-arm64\/node.exe<\/li>\n
    7. macOS 64-bit Installer: https:\/\/nodejs.org\/dist\/v20.0.0\/node-v20.0.0.pkg<\/li>\n
    8. macOS Apple Silicon 64-bit Binary: https:\/\/nodejs.org\/dist\/v20.0.0\/node-v20.0.0-darwin-arm64.tar.gz<\/li>\n
    9. macOS Intel 64-bit Binary: https:\/\/nodejs.org\/dist\/v20.0.0\/node-v20.0.0-darwin-x64.tar.gz<\/li>\n
    10. Linux 64-bit Binary: https:\/\/nodejs.org\/dist\/v20.0.0\/node-v20.0.0-linux-x64.tar.xz<\/li>\n
    11. Linux PPC LE 64-bit Binary: https:\/\/nodejs.org\/dist\/v20.0.0\/node-v20.0.0-linux-ppc64le.tar.xz<\/li>\n
    12. Linux s390x 64-bit Binary: https:\/\/nodejs.org\/dist\/v20.0.0\/node-v20.0.0-linux-s390x.tar.xz<\/li>\n
    13. AIX 64-bit Binary: https:\/\/nodejs.org\/dist\/v20.0.0\/node-v20.0.0-aix-ppc64.tar.gz<\/li>\n
    14. ARMv7 32-bit Binary: https:\/\/nodejs.org\/dist\/v20.0.0\/node-v20.0.0-linux-armv7l.tar.xz<\/li>\n
    15. ARMv8 64-bit Binary: https:\/\/nodejs.org\/dist\/v20.0.0\/node-v20.0.0-linux-arm64.tar.xz<\/li>\n
    16. Source Code: https:\/\/nodejs.org\/dist\/v20.0.0\/node-v20.0.0.tar.gz<\/li>\n
    17. Other release files: https:\/\/nodejs.org\/dist\/v20.0.0\/<\/li>\n
    18. Documentation: https:\/\/nodejs.org\/docs\/v20.0.0\/api\/<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"

      Node.js\u73b0\u5728\u6709\u4e00\u4e2a\u5b9e\u9a8c\u6027\u7684\u529f\u80fd\uff0c\u53eb\u505a\u8bb8\u53ef\u6a21\u578b\u3002\u5b83\u5141\u8bb8\u5f00\u53d1\u8005\u5728\u7a0b\u5e8f\u6267\u884c\u8fc7\u7a0b\u4e2d\u9650\u5236\u5bf9\u7279\u5b9a\u8d44\u6e90\u7684\u8bbf\u95ee\uff0c\u5982\u6587\u4ef6\u7cfb […]<\/p>\n","protected":false},"author":1470,"featured_media":270000,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-269998","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/269998","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1470"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=269998"}],"version-history":[{"count":4,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/269998\/revisions"}],"predecessor-version":[{"id":270418,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/269998\/revisions\/270418"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/270000"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=269998"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=269998"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=269998"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}