RecentX 歷史版本列表
- 2024 軟體跟著走
- 檔案傳輸
- 版本數量 139
- Conceptworld Corporation
- 未分類
- 評價 70 分
更新時間:2022-08-25
更新細節:
What's new in this version:
Notable changes:
- Bootstrap: implement run-time user-land snapshots via --build-snapshot and --snapshot-blob
- This patch introduces --build-snapshot and --snapshot-blob options for creating and using user land snapshots
To generate a snapshot using snapshot.js as an entry point and write the snapshot blob to snapshot.blob:
- Echo "globalThis.foo = 'I am from the snapshot'" > snapshot.js
- Node --snapshot-blob snapshot.blob --build-snapshot snapshot.js
To restore application state from snapshot.blob, with index.js as the entry point script for the deserialized application:
- Echo "console.log(globalThis.foo)" > index.js
- Node --snapshot-blob snapshot.blob index.js
- # => I am from the snapshot
Users can also use the v8.startupSnapshot API to specify an entry point at snapshot building time, thus avoiding the need of an additional entry script at deserialization time:
- Echo "require('v8').startupSnapshot.setDeserializeMainFunction(() => console.log('I am from the snapshot'))" > snapshot.js
- Node --snapshot-blob snapshot.blob --build-snapshot snapshot.js
- Node --snapshot-blob snapshot.blob
- # => I am from the snapshot
Other notable changes:
Crypto:
- (SEMVER-MINOR) allow zero-length IKM in HKDF and in webcrypto PBKDF2
- (SEMVER-MINOR) allow zero-length secret KeyObject
Deps:
- upgrade npm to 8.18.0 (npm team) #44263 - Adds a new npm query command
Doc:
- add Erick Wendel to collaborators
- add theanarkh to collaborators
- add MoLow to collaborators
- add cola119 to collaborators
- deprecate --trace-atomics-wait
Http:
- (SEMVER-MINOR) make idle http parser count configurable
Net:
- (SEMVER-MINOR) add local family
Src:
- (SEMVER-MINOR) print source map error source on demand
Tls:
- (SEMVER-MINOR) pass a valid socket on tlsClientError
更新時間:2022-07-27
更新細節:
What's new in this version:
doc:
- add F3n67u to collaborators
- deprecate coercion to integer in process.exit
- (SEMVER-MINOR) deprecate diagnostics_channel object subscribe method
events:
- (SEMVER-MINOR) expose CustomEvent on global with CLI flag
- (SEMVER-MINOR) add CustomEvent
http:
- (SEMVER-MINOR) add drop request event for http server
lib:
- (SEMVER-MINOR) improved diagnostics_channel subscribe/unsubscribe
util:
- (SEMVER-MINOR) add tokens to parseArgs
更新時間:2022-07-14
更新細節:
What's new in this version:
- Experimental ESM Loader Hooks API
- Node.js ESM Loader hooks now support multiple custom loaders, and composition is achieved via "chaining": foo-loader calls bar-loader calls qux-loader (a custom loader must now signal a short circuit when intentionally not calling the next)See the ESM docs for details.
- Real-world use-cases are laid out for end-users with working examples in the article Custom ESM loaders: Who, what, when, where, why, how.
更新時間:2022-07-08
更新細節:
What's new in this version:
- (SEMVER-MAJOR) src,deps,build,test: add OpenSSL config appname
- (SEMVER-MAJOR) src,doc,test: add --openssl-shared-config option
- Node.js now reads nodejs_conf section in the openssl config
- deps: update archs files for quictls/openssl-3.0.5+quic
- deps: upgrade openssl sources to quictls/openssl-3.0.5+quic
更新時間:2022-06-17
更新細節:
What's new in this version:
Changed:
crypto:
- remove Node.js-specific webcrypto extensions
- add CFRG curves to Web Crypto API
dns:
- accept 'IPv4' and 'IPv6' for family
report:
- add more heap infos in process report
更新時間:2022-06-02
更新細節:
What's new in this version:
- deps: update undici to 5.4.0 (Node.js GitHub Bot)
- (SEMVER-MINOR) util: add parseArgs module
- (SEMVER-MINOR) http: add uniqueHeaders option to request and createServer
- deps: upgrade npm to 8.11.0
- deps: patch V8 to 10.2.154.4
- (SEMVER-MINOR) deps: update V8 to 10.2.154.2
- (SEMVER-MINOR) fs: make params in writing methods optional
- (SEMVER-MINOR) http: add uniqueHeaders option to request and createServer
- (SEMVER-MINOR) net: add ability to reset a tcp socket
- (SEMVER-MINOR) Revert "build: make x86 Windows support temporarily experimental"
- This means 32-bit Windows binaries are back with this release
更新時間:2022-05-18
更新細節:
What's new in this version:
- deps: update archs files for quictls/openssl-3.0.3+quic
- deps: upgrade openssl sources to quictls/openssl-3.0.3
Other Notable Changes:
- Revert "deps: add template for generated headers"
- deps: update undici to 5.2.0 (Node.js GitHub Bot)
- deps: upgrade npm to 8.9.0 (npm team)
- deps: upgrade openssl sources to quictls/openssl-3.0.3
- doc: add LiviaMedeiros to collaborators
- doc: add release key for Juan Arboleda
- (SEMVER-MINOR) fs: add read(buffer[, options]) versions
- (SEMVER-MINOR) http: added connection closing methods
- (SEMVER-MINOR) perf_hooks: add PerformanceResourceTiming
更新時間:2022-05-03
更新細節:
What's new in this version:
- doc: add @kuriyosh to collaborators
- (SEMVER-MINOR) lib,src: implement WebAssembly Web API
- (SEMVER-MINOR) test_runner: add initial CLI runner
- (SEMVER-MINOR) worker: add hasRef() to MessagePort
更新時間:2022-04-20
更新細節:
What's new in this version:
- Node.js 18 is here! Highlights include the update of the V8 JavaScript engine to 10.1, global fetch enabled by default, and a core test runner module.
- Initially, Node.js 18 will replace Node.js 17 as our ‘Current’ release line. As per the release schedule, Node.js 18 will be the ‘Current’ release for the next 6 months and then promoted to Long-term Support (LTS) in October 2022. Once promoted to long-term support the release will be designated the codename ‘Hydrogen’. Node.js 18 will be supported until April 2025.
Notable Changes:
Deprecations and Removals:
- (SEMVER-MAJOR) fs: runtime deprecate string coercion in fs.write, fs.writeFileSync
- (SEMVER-MAJOR) dns: remove dns.lookup and dnsPromises.lookup options type coercion
- (SEMVER-MAJOR) process: runtime deprecate multipleResolves
- (SEMVER-MAJOR) stream: remove thenable support
- (SEMVER-MAJOR) tls: move tls.parseCertString to end-of-life
fetch (experimental):
- An experimental fetch API is available on the global scope by default. The implementation is based upon undici, an HTTP/1.1 client written for Node.js by contributors to the project.
- Through this addition, the following globals are made available: fetch, FormData, Headers, Request, Response
- Disable this API with the --no-experimental-fetch command-line flag
HTTP Timeouts:
- server.headersTimeout which limits the amount of time the parser will wait to receive the complete HTTP headers is now set to 60000 (60 seconds) by default.
- server.requestTimeout which sets the timeout value in milliseconds for receiving the entire request from the client is now set to 300000 (5 minutes) by default.
- If these timeouts expire, the server responds with status 408 without forwarding the request to the request listener and then closes the connection.
- Both timeouts must be set to a non-zero value to protect against potential Denial-of-Service attacks in case the server is deployed without a reverse proxy in front.
Test Runner module (experimental):
The node:test module facilitates the creation of JavaScript tests that report results in TAP format. To access it:
- import test from 'node:test';
- This module is only available under the node: scheme
Toolchain and Compiler Upgrades:
- Prebuilt binaries for Linux are now built on Red Hat Enterprise Linux (RHEL) 8 and are compatible with Linux distributions based on glibc 2.28 or later, for example, Debian 10, RHEL 8, Ubuntu 20.04.
- Prebuilt binaries for macOS now require macOS 10.15 or later
- For AIX the minimum supported architecture has been raised from Power 7 to Power 8
- Prebuilt binaries for 32-bit Windows will initially not be available due to issues building the V8 dependency in Node.js. We hope to restore 32-bit Windows binaries for Node.js 18 with a future V8 update.
- Node.js does not support running on operating systems that are no longer supported by their vendor. For operating systems where their vendor has planned to end support earlier than April 2025, such as Windows 8.1 (January 2023) and Windows Server 2012 R2 (October 2023), support for Node.js 18 will end at the earlier date.
- Full details about the supported toolchains and compilers are documented in the Node.js BUILDING.md file
V8 10.1:
The V8 engine is updated to version 10.1, which is part of Chromium 101. Compared to the version included in Node.js 17.9.0, the following new features are included:
- The findLast and findLastIndex array methods
- Improvements to the Intl.Locale API
- The Intl.supportedValuesOf function
- Improved performance of class fields and private class methods (the initialization of them is now as fast as ordinary property stores)
- The data format returned by the serialization API (v8.serialize(value)) has changed, and cannot be deserialized by earlier versions of Node.js. On the other hand, it is still possible to deserialize the previous format, as the API is backwards-compatible.
Web Streams API (experimental):
- Node.js now exposes the experimental implementation of the Web Streams API on the global scope. This means the following APIs are now globally available:
- ReadableStream, ReadableStreamDefaultReader, ReadableStreamBYOBReader, ReadableStreamBYOBRequest, ReadableByteStreamController, ReadableStreamDefaultController, TransformStream, TransformStreamDefaultController, WritableStream, WritableStreamDefaultWriter, WritableStreamDefaultController, ByteLengthQueuingStrategy, CountQueuingStrategy, TextEncoderStream, TextDecoderStream, CompressionStream, DecompressionStream.
Other Notable Changes:
- (SEMVER-MAJOR) buffer: expose Blob as a global
- (SEMVER-MAJOR) child_process: improve argument validation
- doc: add RafaelGSS to collaborators
- (SEMVER-MAJOR) http: make TCP noDelay enabled by default
- (SEMVER-MAJOR) net: make server.address() return an integer for family
- (SEMVER-MAJOR) worker: expose BroadcastChannel as a global
- (SEMVER-MAJOR) worker: graduate BroadcastChannel to supported
更新時間:2022-04-17
更新細節: