{"id":10008302,"date":"2023-09-20T20:38:39","date_gmt":"2023-09-20T12:38:39","guid":{"rendered":"https:\/\/blog.itmax.cn\/?p=10008302"},"modified":"2023-09-20T20:38:39","modified_gmt":"2023-09-20T12:38:39","slug":"node-js-20-%e5%87%a0%e4%b8%aa%e4%bb%a4%e4%ba%ba%e5%a4%a7%e5%bc%80%e7%9c%bc%e7%95%8c%e7%9a%84%e7%89%b9%e6%80%a7","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10008302","title":{"rendered":"Node.js 20 \u2014\u2014 \u51e0\u4e2a\u4ee4\u4eba\u5927\u5f00\u773c\u754c\u7684\u7279\u6027"},"content":{"rendered":"<p><strong>\u524d\u8a00\uff1a\u6b22\u8fce\u6765\u5230 Node.js 20<\/strong><\/p>\n<p>Node.js 20 \u5df2\u7ecf\u53d1\u5e03\uff0c\u5e26\u6765\u4e86\u521b\u65b0\u548c\u6fc0\u52a8\u4eba\u5fc3\u7684\u65b0\u65f6\u4ee3\u3002\u8fd9\u4e2a\u5f00\u521b\u6027\u7684\u7248\u672c\u4e8e2023\u5e744\u670818\u65e5\u9996\u6b21\u4eae\u76f8\uff0c\u5e76\u5c06\u57282023\u5e7410\u6708\u53d1\u5e03\u957f\u671f\u652f\u6301\uff08LTS\uff09\u7248\u672c\uff0c\u5e76\u4e14\u5c06\u6301\u7eed\u652f\u6301\u81f32026\u5e744\u6708\uff0c\u4e0b\u9762\u5c0f\u7f16\u5c31\u4e3a\u5927\u5bb6\u4ecb\u7ecd\u4e00\u4e0bNode.js20\u7684\u51e0\u4e2a\u65b0\u7279\u6027\uff1a<\/p>\n<p><strong>1.Node.js \u6743\u9650\u8bbf\u95ee<\/strong><\/p>\n<p>Node.js 20 \u6b63\u5f0f\u63a8\u51fa\u4e86\u6743\u9650\u6a21\u578b\uff0c\u8fd9\u662f Rafael Gonzaga \u63d0\u4f9b\u7684\u4e00\u9879\u5b9e\u9a8c\u6027\u529f\u80fd\uff0c\u53ef\u4ee5\u5728\u7a0b\u5e8f\u8fd0\u884c\u65f6\u9650\u5236\u5bf9\u7279\u5b9a\u8d44\u6e90\u7684\u8bbf\u95ee\u3002<\/p>\n<p>\u8981\u4f7f\u7528\u8fd9\u4e2a\u5f3a\u5927\u7684\u529f\u80fd\uff0c\u53ea\u9700\u542f\u7528 &#8211;experimental-permission \u6807\u5fd7\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"bash\">node --experimental-permissions myApp.js<\/code><\/pre>\n<p>\u8fd9\u5c06\u9650\u5236\u6240\u6709\u53ef\u7528\u6743\u9650\u7684\u8bbf\u95ee\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u786e\u4fdd\u5e94\u7528\u7a0b\u5e8f\u8fdc\u79bb\u4efb\u4f55\u4e0d\u53d7\u6b22\u8fce\u7684\u5165\u4fb5\u8005\u3002<\/p>\n<p><strong>\u6587\u4ef6\u8bfb\u5199\u7cfb\u7edf<\/strong><\/p>\n<p>\u8981\u5141\u8bb8\u8bbf\u95ee\u6587\u4ef6\u7cfb\u7edf\uff0c\u8bf7\u4f7f\u7528&#8211;allow-fs-read\u548c &#8211;allow-fs-write\u6807\u5fd7\uff1a<\/p>\n<pre><code class=\"bash\">$ node --experimental-permission --allow-fs-read=* --allow-fs-write=* index.js\n Hello world!\n (node:19836) ExperimentalWarning: Permission is an experimental feature\n (Use `node --trace-warnings ...` to show where the warning was created)<\/code><\/pre>\n<p>\u4e0b\u9762\u662f\u5177\u4f53\u6307\u4ee4\u7684\u542b\u4e49\uff1a<\/p>\n<ul>\n<li>&#8211;allow-fs-read=*- \u5b83\u5c06\u5141\u8bb8\u6240\u6709FileSystemRead\u64cd\u4f5c\u3002<\/li>\n<li>&#8211;allow-fs-write=*- \u5b83\u5c06\u5141\u8bb8\u6240\u6709FileSystemWrite\u64cd\u4f5c\u3002<\/li>\n<li>&#8211;allow-fs-write=\/tmp\/- \u5b83\u5c06\u5141\u8bb8FileSystemWrite\u8bbf\u95ee\u8be5\/tmp\/ \u6587\u4ef6\u5939\u3002<\/li>\n<li>&#8211;allow-fs-read=\/tmp\/,\/home\/.gitignore- \u5b83\u5141\u8bb8FileSystemRead\u8bbf\u95ee\/tmp\/\u6587\u4ef6\u5939<strong>\u548c<\/strong>\u8def\u5f84\/home\/.gitignore\u3002<\/li>\n<\/ul>\n<p><strong>2.\u81ea\u5b9a\u4e49 ESM \u52a0\u8f7d\u5668\u94a9\u5b50<\/strong><\/p>\n<p>Node.js 20\u901a\u8fc7\u52a0\u8f7d\u5668\u63d0\u4f9b\u7684\u81ea\u5b9a\u4e49\u94a9\u5b50<\/p>\n<p>(&#8211;experimental-loader=.\/mr.mjs)\u5728\u4e13\u7528\u7ebf\u7a0b\u4e0a\u8fd0\u884c\uff0c\u786e\u4fdd\u4e00\u5207\u90fd\u4fdd\u6301\u4e95\u7136\u6709\u5e8f\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u5982\u4f55\u4f7f\u7528\u81ea\u5b9a\u4e49\u52a0\u8f7d\u5668\u7684\u5feb\u901f\u793a\u4f8b\uff1a<\/p>\n<p>loading.mjs<\/p>\n<pre><code class=\"javascript\">export async function resolve(specifier, parentModuleURL, defaultResolve) {\n  console.log(&quot;Resolving:&quot;, specifier);\n  return defaultResolve(specifier, parentModuleURL);\n }<\/code><\/pre>\n<pre><code class=\"javascript\">export async function load(url, defaultLoad) {\n  console.log(&quot;Loading:&quot;, url);\n  return defaultLoad(url);\n }<\/code><\/pre>\n<p>index.js<\/p>\n<pre><code class=\"javascript\">console.log(&quot;Hello, Node.js 20!&quot;);<\/code><\/pre>\n<p>cmd<\/p>\n<pre><code class=\"bash\">node --experimental-loader=.\/loader.mjs main.js<\/code><\/pre>\n<p>\u8fd9\u4e2a\u81ea\u5b9a\u4e49\u52a0\u8f7d\u5668\u5c06\u8bb0\u5f55\u6bcf\u4e2a\u6a21\u5757\u7684\u89e3\u6790\u548c\u52a0\u8f7d\u8fc7\u7a0b\u3002<\/p>\n<p><strong>3.\u540c\u6b65\u7684 import.meta.resolve()<\/strong><\/p>\n<p>\u4e3a\u4e86\u8ddf\u4e0a\u6d4f\u89c8\u5668\u884c\u4e3a\uff0c\u73b0\u5728 import.meta.resolve \u51fd\u6570\u8fd4\u56de\u540c\u6b65\u3002\u4f46\u4ecd\u53ef\u4ee5\u6839\u636e\u9700\u8981\u81ea\u5b9a\u5b9a\u4e49\u52a0\u8f7d\u5668\u89e3\u6790\u94a9\u5b50\u4e3a\u5f02\u6b65\u6216\u540c\u6b65\u51fd\u6570\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5feb\u901f\u793a\u4f8b\uff0c\u5c55\u793a\u5b83\u662f\u5982\u4f55\u5de5\u4f5c\u7684\uff1a<\/p>\n<p>module.mjs<\/p>\n<pre><code class=\"javascript\">(async () =&gt; {\n  const resolvedURL = import.meta.resolve('.\/otherModule.mjs');\n  console.log(&quot;Resolved URL:&quot;, resolvedURL);<\/code><\/pre>\n<pre><code class=\"javascript\">const asyncResolvedURL = await import.meta.resolve('.\/otherModule.mjs');\n  console.log(&quot;Async resolved URL:&quot;, asyncResolvedURL);\n })();<\/code><\/pre>\n<p>\u8fd9\u4e2a\u793a\u4f8b\u6f14\u793a\u4e86 import.meta.resolve \u51fd\u6570\u7684\u540c\u6b65\u548c\u5f02\u6b65\u7528\u6cd5\u3002<\/p>\n<p><strong>4.V8 \u5f15\u64ce\u5347\u7ea7\uff1a\u91ca\u653e\u91ce\u517d\uff01<\/strong><\/p>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e9bV8 \u5f15\u64ce\u65b0\u529f\u80fd\u7684\u5feb\u901f\u6982\u8ff0\uff1a<\/p>\n<ul>\n<li><strong>\u53d1\u6325\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u65e0\u9650\u6f5c\u529b<\/strong>\uff1a\u4f7f\u7528\u8bbe\u7f6e\u7b26\u53f7+\u5b57\u7b26\u4e32\u5c5e\u6027\u7684 RegExp v \u6807\u5fd7\uff0c\u5f00\u542f\u66f4\u7075\u6d3b\u3001\u66f4\u5bcc\u8868\u73b0\u529b\u7684\u8bed\u6cd5\uff01<\/li>\n<li><strong>\u52a8\u6001\u8c03\u6574\u5185\u5b58\u5927\u5c0f\uff0c\u4f18\u5316\u6027\u80fd\u5c3d\u5728\u638c\u63e1<\/strong>\uff1a\u53ef\u8c03\u6574\u5927\u5c0f\u7684 ArrayBuffer \u548c\u53ef\u589e\u957f\u7684 SharedArrayBuffer\uff0c\u8ba9\u5185\u5b58\u7ba1\u7406\u8fbe\u5230\u524d\u6240\u672a\u6709\u7684\u5883\u754c\uff01<\/li>\n<li><strong>\u5b89\u5168\u800c\u53ef\u9884\u6d4b\u7684\u6570\u7ec4\u64cd\u4f5c\u65b9\u6cd5<\/strong>\uff1a\u590d\u5236\u66f4\u6539 Array \u548c TypedArray \u7684\u65b9\u5f0f\uff0c\u8ba9\u4ee3\u7801\u65e2\u5b89\u5168\u53c8\u53ef\u63a7\uff0c\u4e0d\u4fee\u6539\u539f\u59cb\u6570\u636e\uff01<\/li>\n<li><strong>\u6253\u9020\u683c\u5f0f\u826f\u597d\u7684 Unicode \u5b57\u7b26\u4e32<\/strong>\uff1a\u901a\u8fc7 String.prototype.isWellFormed \u548c toWellFormed\uff0c\u9a8c\u8bc1\u5e76\u8f6c\u6362\u5b57\u7b26\u4e32\u4e3a\u5b8c\u7f8e\u7684Unicode\u683c\u5f0f\uff01<\/li>\n<li><strong>\u544a\u522b\u5806\u6808\u6ea2\u51fa\uff0c\u8fce\u63a5\u9ad8\u6548\u9012\u5f52<\/strong>\uff1aWebAssembly \u5c3e\u8c03\u5e26\u6765\u65e0\u9650\u9012\u5f52\u7684\u53ef\u80fd\u6027\uff0c\u8ba9\u5806\u6808\u6ea2\u51fa\u6210\u4e3a\u5386\u53f2\uff01<\/li>\n<\/ul>\n<p><strong>5.\u7a33\u5b9a\u7684\u6d4b\u8bd5\u8fd0\u884c\u5668<\/strong><\/p>\n<p>Node.js 20 \u4e2d\u7684 test_runner \u6a21\u5757\u5df2\u7ecf\u5347\u7ea7\u5e76\u6807\u8bb0\u4e3a\u7a33\u5b9a\u7248\u672c\uff0c\u8fd9\u610f\u5473\u7740\u5b83\u5df2\u7ecf\u51c6\u5907\u597d\u6295\u5165\u5b9e\u9645\u5e94\u7528\u4e86\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a<\/p>\n<pre><code class=\"javascript\">import { test, mock } from 'node:test';\n import assert from 'node:assert';\n import fs from 'node:fs';\n\n mock.method(fs, 'readFile', async () =&gt; &quot;Hello World&quot;);\n test('synchronous passing test', async (t) =&gt; {\n  \/\/ This test passes because it does not throw an exception.\n  assert.strictEqual(await fs.readFile('a.txt'), &quot;Hello World&quot;);\n });<\/code><\/pre>\n<p><strong>6.\u6027\u80fd\u589e\u5f3a\uff1a\u4e3a\u5e94\u7528\u7a0b\u5e8f\u63d0\u901f\uff01<\/strong><\/p>\n<p>Node.js 20 \u6ce8\u91cd\u6027\u80fd\uff0c\u63d0\u4f9b\u4e86\u4e00\u4e9b\u51fa\u8272\u7684\u589e\u5f3a\u529f\u80fd\uff0c\u5c06\u4f7f\u5e94\u7528\u7a0b\u5e8f\u8fd0\u884c\u66f4\u52a0\u6d41\u7545\u548c\u5feb\u901f\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u4eae\u70b9\uff1a<\/p>\n<ul>\n<li><strong>\u4e8b\u4ef6\u76ee\u6807\u521d\u59cb\u5316\u6210\u672c\u964d\u4f4e\uff1a<\/strong>\u521d\u59cb\u5316\u73b0\u5728\u53ea\u9700\u8981\u4e00\u534a\u7684\u65f6\u95f4\uff0c\u4f7f\u5e94\u7528\u7a0b\u5e8f\u66f4\u52a0\u8fc5\u6377\u3002<\/li>\n<li><strong>V8 \u5feb\u901f API \u8c03\u7528\uff1a<\/strong>\u5728\u8bf8\u5982 URL.canParse() \u548c\u5b9a\u65f6\u5668\u7b49 API \u4e2d\u4eab\u53d7\u6539\u8fdb\u7684\u6027\u80fd\u3002<\/li>\n<\/ul>\n<p><strong>7.Ada 2.0\uff1a\u65b0\u4e00\u4ee3 URL \u89e3\u6790\u5668\u5de8\u661f<\/strong><\/p>\n<p>Ada 2.0\u662f\u7528 C++ \u7f16\u5199\u7684\u6700\u65b0\u548c\u6700\u68d2\u7684 URL \u89e3\u6790\u5668\u7248\u672c\u3002\u8fd9\u4e2a\u5de5\u5177\u4e3a URL \u89e3\u6790\u6027\u80fd\u5e26\u6765\u4e86\u663e\u8457\u7684\u6539\u8fdb\uff0c\u4f7f\u7684\u5e94\u7528\u7a0b\u5e8f\u6bd4\u4ee5\u5f80\u66f4\u52a0\u9ad8\u6548\u3002  <br \/>\u4ee5\u4e0b\u662f Ada 2.0 \u5982\u4f55\u4f7f\u7528\u7684\u4e00\u4e2a\u7b80\u5355\u793a\u4f8b\uff1a<\/p>\n<pre><code class=\"javascript\">import { domainToASCII, domainToUnicode } from 'node:url';<\/code><\/pre>\n<pre><code class=\"javascript\">const asciiDomain = domainToASCII('example.com');\n console.log(&quot;ASCII Domain:&quot;, asciiDomain);\n const unicodeDomain = domainToUnicode('xn--exmple-cua.com');\n console.log(&quot;Unicode Domain:&quot;, unicodeDomain);<\/code><\/pre>\n<p>\u4ee5\u4e0a\u4ee3\u7801\u6f14\u793a\u4e86\u5982\u4f55\u4f7f\u7528 Ada 2.0 \u5c06\u57df\u540d\u8f6c\u6362\u4e3a\u5176 ASCII \u548c Unicode \u8868\u793a\u5f62\u5f0f\u3002<\/p>\n<p><strong>8.\u51c6\u5907 SEAs\uff1a\u51fa\u8272\u7684 Blob \u5355\u4e00\u53ef\u6267\u884c\u5e94\u7528\u7a0b\u5e8f\u3002<\/strong><\/p>\n<p>Node.js 20 \u5f15\u5165\u4e86\u4e00\u79cd\u65b0\u7684\u6784\u5efa\u5355\u4e00\u53ef\u6267\u884c\u5e94\u7528\u7a0b\u5e8f\uff08SEAs\uff09\u7684\u65b9\u5f0f\uff0c\u901a\u8fc7\u5c06\u7531 Node.js \u4ece JSON \u914d\u7f6e\u4e2d\u51c6\u5907\u7684 Blob \u6ce8\u5165\u5176\u4e2d\u3002\u8fd9\u5141\u8bb8\u5c06\u591a\u4e2a\u5171\u5b58\u7684\u8d44\u6e90\u5d4c\u5165\u5230 SEAs \u4e2d\u3002<\/p>\n<p>\u5b83\u7684\u5de5\u4f5c\u539f\u7406\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"javascript\">{\n  &quot;main&quot;: &quot;hello.js&quot;,\n  &quot;output&quot;: &quot;prep.blob&quot;\n }<\/code><\/pre>\n<pre><code class=\"bash\">node --experimental-sea-config sea-config.json<\/code><\/pre>\n<p>\u8fd9\u5c06\u521b\u5efa\u4e00\u4e2a prep.blob\u6587\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u4e86 SEA \u6240\u9700\u7684\u8d44\u6e90\u3002<\/p>\n<p><strong>9.\u7f51\u7edc\u52a0\u5bc6 API<\/strong><\/p>\n<p>\u5728Node.js 20 \u4e2d Web Crypto API \u51fd\u6570\u53c2\u6570\u7684\u5f3a\u5236\u8f6c\u6362\u548c\u9a8c\u8bc1\u9075\u5faa WebIDL \u5b9a\u4e49\uff0c\u5c31\u50cf Web Crypto API \u7684\u5176\u4ed6\u5b9e\u73b0\u4e00\u6837\u3002<\/p>\n<p>\u8fd9\u63d0\u9ad8\u4e86\u4e0e\u5176\u4ed6 JavaScript \u73af\u5883\u7684\u4e92\u64cd\u4f5c\u6027\uff0c\u5728\u6bcf\u4e2a\u73af\u5883\u90fd\u53ef\u4ee5\u53cb\u597d\u8fd0\u884c\uff01<\/p>\n<p><strong>10.\u5176\u4ed6\u53d8\u5316\u7684\u5730\u65b9<\/strong><\/p>\n<p>\u9664\u4e86\u6211\u4eec\u4ecb\u7ecd\u7684\u6240\u6709\u51fa\u8272\u529f\u80fd\u4e4b\u5916\uff0cNode.js 20 \u8fd8\u5305\u62ec\u4e00\u4e9b\u5176\u4ed6\u4e0d\u9519\u7684\u66f4\u65b0\uff0c\u4ee5\u589e\u5f3a\u5f00\u53d1\u4f53\u9a8c\uff1a<\/p>\n<ul>\n<li><strong>\u66f4\u597d\u7684 TypeScript \u652f\u6301\uff1a<\/strong>\u4f7f\u7528 TypeScript \u7f16\u5199\u66f4\u5e72\u51c0\u3001\u66f4\u9ad8\u6548\u7684\u4ee3\u7801\u3002<\/li>\n<li><strong>\u6539\u8fdb\u7684 TLS 1.3 \u652f\u6301\uff1a<\/strong>\u4eab\u53d7\u66f4\u5f3a\u5927\u7684\u52a0\u5bc6\u6765\u4fdd\u969c\u5b89\u5168\u901a\u4fe1\u3002<\/li>\n<li><strong>\u66f4\u5feb\u7684\u542f\u52a8\u65f6\u95f4\uff1a<\/strong>\u5e94\u7528\u7a0b\u5e8f\u542f\u52a8\u901f\u5ea6\u66f4\u5feb\u3002<\/li>\n<li><strong>\u6709\u6548\u7684\u9519\u8bef\u5904\u7406\uff1a<\/strong>\u4f18\u96c5\u5730\u5904\u7406\u9519\u8bef\uff0c\u786e\u4fdd\u5e94\u7528\u7a0b\u5e8f\u5e73\u7a33\u8fd0\u884c\u3002<\/li>\n<li><strong>\u6539\u8fdb\u7684\u8c03\u8bd5\u4f53\u9a8c\uff1a<\/strong>\u8f7b\u677e\u89e3\u51b3\u90a3\u4e9b\u8ba8\u538c\u7684\u9519\u8bef\u3002<\/li>\n<\/ul>\n<p><strong>\u603b\u7ed3<\/strong><\/p>\n<p>\u8fd9\u5c31\u662f Node.js 20 \u5e26\u6765\u7684\u4ee4\u4eba\u5927\u5f00\u773c\u754c\u7684\u521b\u65b0\u70b9\u7684\u4ecb\u7ecd\uff0c\u5982\u679c\u5404\u4f4d\u60f3\u83b7\u53d6\u66f4\u591a\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u8bbf\u95ee <a target=\"_blank\" href=\"https:\/\/link.segmentfault.com\/?enc=geWK%2B%2FTXvhKIpYULV5nxmQ%3D%3D.Bwx0YoAd21TuJvxsXVM6n8VKhmaXfHIyl2Yr7uMYzWyJs3cqKratuHjUVWN59%2BJpYwDzl0nHu5ZhiNU3mSbzYg%3D%3D\" rel=\"noopener noreferrer\">Node.js 20<\/a><a target=\"_blank\" href=\"https:\/\/link.segmentfault.com\/?enc=bVRLGUqqRMqTVHp8ZsbYdA%3D%3D.5d6nhQ7Z1NYQGkqjHPHEi0A4E94vvstdxgeB6whxRSHFFObRCAOZrCAyJQzw%2BK7kkXCPvB2ewXIKML5avaT6oA%3D%3D\" rel=\"noopener noreferrer\">\u5b98\u7f51<\/a>\u3002<\/p>\n<p><strong>\u6269\u5c55\u94fe\u63a5\uff1a<\/strong><\/p>\n<p><a target=\"_blank\" href=\"https:\/\/link.segmentfault.com\/?enc=UarTSHnNr8s7JzHV2z5Iyw%3D%3D.w6WNosMjabfPS%2F8nXE%2FaImMQqBwmqF0m9uCDSxTV5ggnR94IWx46wEgMec3S4V2Lr%2B%2FKa%2FmQNoUedMbZoYYowg%3D%3D\" rel=\"noopener noreferrer\">\u5982\u4f55\u5728\u524d\u7aef\u7cfb\u7edf\u4e2d\u4f7f\u7528\u7518\u7279\u56fe<\/a><\/p>\n<p><a target=\"_blank\" href=\"https:\/\/link.segmentfault.com\/?enc=v4yyFt8NZSyuLIDNkzsejA%3D%3D.XOOoYdvynYh2lApUiiX4mrSEMV6ldr0qa6Z6VwxNT3Wl%2FQV3z0YjdMQTyXqiuUdklWpTlgC8%2BQSPGEMLiJ%2BWZlyUwdc%2BOGzSJT4oyYXrQQU%3D\" rel=\"noopener noreferrer\">\u7a97\u53e3\u51fd\u6570\u5927\u63ed\u79d8\uff01\u8f7b\u677e\u8ba1\u7b97\u6570\u636e\u7d2f\u8ba1\u5360\u6bd4\uff0c\u73a9\u8f6c\u6570\u636e\u5206\u6790\u7684\u7edd\u4f73\u5229\u5668<\/a><\/p>\n<p><a target=\"_blank\" href=\"https:\/\/link.segmentfault.com\/?enc=vctaanthbLCrleyPUYB18w%3D%3D.0eQjZHy5Rswg%2BnKRDJ98y4FgrQBPOsCFVupb7MXUwCbG6YFO9LXsZuB%2BEeuu%2F4UIgXvFASWmjltb2bqyG2VETg%3D%3D\" rel=\"noopener noreferrer\">\u63a2\u79d8\u79fb\u52a8\u7aefBI\uff1a\u53d1\u5c55\u5386\u7a0b\u4e0e\u5e94\u7528\u524d\u666f\u89e3\u6790<\/a><\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000044234383\">https:\/\/segmentfault.com\/a\/1190000044234383<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00\uff1a\u6b22\u8fce\u6765\u5230 Node.js 20 Node.js 20 \u5df2\u7ecf\u53d1\u5e03\uff0c\u5e26\u6765\u4e86\u521b\u65b0\u548c\u6fc0\u52a8\u4eba\u5fc3\u7684\u65b0\u65f6\u4ee3\u3002\u8fd9\u4e2a\u5f00\u521b\u6027 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10008302","post","type-post","status-publish","format-standard","hentry","category-share"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10008302","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10008302"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10008302\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10008302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10008302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10008302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}