各位开发者:
社区为解决notejs 软件包CVE,计划将openEuler 20.03 LTS SP1/SP2/SP3 中notejs版本由10.21.0升级到12.22.11。以下为版本差异分析,若版本升级对您这边有影响,请在3月31日前反馈,谢谢。 node 命令变更 node [-e script|script.js]变更为node [ script.js ] node inspect script.js变更为node inspect [options] [ script.js|host:port ]
Options变更: 移除--experimental-modules https://github.com/nodejs/node/commit/93226a5097 https://nodejs.org/en/blog/release/v12.17.0/
移除--experimental-worker https://github.com/nodejs/node/commit/243f90283c
--loader=...变更为--loader, --experimental-loader=... https://github.com/nodejs/node/commit/c3a1303bc2
新增 --conditions=... additional user conditions for conditional exports and imports --cpu-prof Start the V8 CPU profiler on start up, and write the CPU profile to disk before exit. If --cpu-prof-dir is not specified, write the profile to the current working directory. --cpu-prof-dir=... Directory where the V8 profiles generated by --cpu-prof will be placed. Does not affect --prof. --cpu-prof-interval=... specified sampling interval in microseconds for the V8 CPU profile generated with --cpu-prof. (default: 1000) --cpu-prof-name=... specified file name of the V8 CPU profile generated with --cpu-prof --diagnostic-dir=... set dir for all output files (default: current working directory) --disable-proto=... disable Object.prototype.__proto__ --disallow-code-generation-from-strings disallow eval and friends --enable-source-maps experimental Source Map V3 support
--experimental-import-meta-resolve experimental ES Module import.meta.resolve() support --experimental-json-modules experimental JSON interop support for the ES Module loader --loader, --experimental-loader=... use the specified module as a custom loader --experimental-policy=... use the specified file as a security policy --es-module-specifier-resolution, --experimental-specifier-resolution=... Select extension resolution algorithm for es modules; either 'explicit' (default) or 'node' --experimental-wasi-unstable-preview1 experimental WASI support --experimental-wasm-modules experimental ES Module support for webassembly modules --force-context-aware disable loading non-context-aware addons --frozen-intrinsics experimental frozen intrinsics support --heap-prof Start the V8 heap profiler on start up, and write the heap profile to disk before exit. If --heap-prof-dir is not specified, write the profile to the current working directory. --heap-prof-dir=... Directory where the V8 heap profiles generated by --heap-prof will be placed. --heap-prof-interval=... specified sampling interval in bytes for the V8 heap profile generated with --heap-prof. (default: 512 * 1024) --heap-prof-name=... specified file name of the V8 heap profile generated with --heap-prof --heapsnapshot-signal=... Generate heap snapshot on specified signal --http-parser=... Select which HTTP parser to use; either 'legacy' or 'llhttp' (default: llhttp). --http-server-default-timeout=... Default http server socket timeout in ms (default: 120000) --huge-max-old-generation-size increase default maximum heap size on machines with 16GB memory or more --input-type=... set module type for string input --inspect-publish-uid=... comma separated list of destinations for inspector uid(default: stderr,http) --interpreted-frames-native-stack help system profilers to translate JavaScript interpreted frames --jitless disable runtime allocation of executable memory --policy-integrity=... ensure the security policy contents match the specified integrity --report-compact output compact single-line JSON --report-directory, --report-dir=... define custom report pathname. (default: current working directory) --report-filename=... define custom report file name. (default: YYYYMMDD.HHMMSS.PID.SEQUENCE#.txt) --report-on-fatalerror generate diagnostic report on fatal (internal) errors --report-on-signal generate diagnostic report upon receiving signals --report-signal=... causes diagnostic report to be produced on provided signal, unsupported in Windows. (default: SIGUSR2) --report-uncaught-exception generate diagnostic report on uncaught exceptions --trace-exit show stack trace when an environment exits --trace-sigint enable printing JavaScript stacktrace on SIGINT --trace-tls prints TLS packet trace information to stderr --trace-uncaught show stack traces for the `throw` behind uncaught exceptions --use-largepages=... Map the Node.js static code to large pages. Options are 'off' (the default value, meaning do not map), 'on' (map and ignore failure, reporting it to stderr), or 'silent' (map and silently ignore failure) Environment variables变更: 新增 NODE_PENDING_PIPE_INSTANCES set the number of pending pipe instance handles on Windows