From c2f884b369e6b006a8bb95e0ac9814a730aa3c37 Mon Sep 17 00:00:00 2001 From: h7lin Date: Sun, 18 Oct 2020 20:50:51 +0800 Subject: [PATCH] feat: 14.14.0 --- ...ssert_deepequal_actual_expected_message.md | 16 +- ...deepstrictequal_actual_expected_message.md | 13 +- .../assert_doesnotthrow_fn_error_message.md | 4 +- ...rt_notdeepequal_actual_expected_message.md | 16 +- ...deepstrictequal_actual_expected_message.md | 13 +- ..._notstrictequal_actual_expected_message.md | 3 +- ...ert_strictequal_actual_expected_message.md | 3 +- assert/strict_assertion_mode.md | 1 + async_hooks/async_hooks_executionasyncid.md | 2 +- buffer/buf_index.md | 4 - .../buf_indexof_value_byteoffset_encoding.md | 4 +- buffer/buf_readbiguint64le_offset.md | 4 +- buffer/buf_slice_start_end.md | 4 +- buffer/buf_writeuint16le_value_offset.md | 4 +- .../static_method_buffer_allocunsafe_size.md | 2 +- ...c_method_buffer_concat_list_totallength.md | 2 + ..._process_execfilesync_file_args_options.md | 4 +- ..._process_spawnsync_command_args_options.md | 4 +- cli/experimental_wasi_unstable_preview1.md | 2 +- ...ir_directory_report_directory_directory.md | 2 +- cli/report_filename_filename.md | 2 +- cli/report_on_fatalerror.md | 2 +- cli/report_on_signal.md | 2 +- cli/report_signal_signal.md | 2 +- cli/report_uncaught_exception.md | 2 +- ...rpublickey_inputencoding_outputencoding.md | 8 +- crypto/keyobject_asymmetrickeytype.md | 4 +- ...01_http_outgoingmessage_prototype_flush.md | 2 +- deprecations/dep0003_writablestate_buffer.md | 4 +- ...p0004_cryptostream_prototype_readystate.md | 4 +- ...dep0006_child_process_options_customfds.md | 2 +- .../dep0009_crypto_pbkdf2_without_digest.md | 2 +- .../dep0010_crypto_createcredentials.md | 2 +- deprecations/dep0011_crypto_credentials.md | 2 +- deprecations/dep0012_domain_dispose.md | 2 +- ...dep0014_fs_read_legacy_string_interface.md | 8 +- ...015_fs_readsync_legacy_string_interface.md | 8 +- deprecations/dep0016_global_root.md | 2 +- ...0019_require_resolved_outside_directory.md | 2 +- deprecations/dep0020_server_connections.md | 2 +- deprecations/dep0021_server_listenfd.md | 2 +- .../dep0023_os_getnetworkinterfaces.md | 2 +- deprecations/dep0025_require_sys.md | 2 +- deprecations/dep0026_util_print.md | 2 +- deprecations/dep0027_util_puts.md | 2 +- deprecations/dep0028_util_debug.md | 2 +- deprecations/dep0029_util_error.md | 2 +- deprecations/dep0032_domain_module.md | 2 +- .../dep0033_eventemitter_listenercount.md | 2 +- .../dep0034_fs_exists_path_callback.md | 4 +- .../dep0035_fs_lchmod_path_mode_callback.md | 2 +- .../dep0036_fs_lchmodsync_path_mode.md | 2 +- ...dep0037_fs_lchown_path_uid_gid_callback.md | 2 +- .../dep0038_fs_lchownsync_path_uid_gid.md | 2 +- deprecations/dep0039_require_extensions.md | 2 +- ..._repl_history_file_environment_variable.md | 2 +- deprecations/dep0042_tls_cryptostream.md | 2 +- deprecations/dep0044_util_isarray.md | 4 +- deprecations/dep0045_util_isboolean.md | 4 +- deprecations/dep0046_util_isbuffer.md | 4 +- deprecations/dep0047_util_isdate.md | 4 +- deprecations/dep0048_util_iserror.md | 4 +- deprecations/dep0049_util_isfunction.md | 4 +- deprecations/dep0050_util_isnull.md | 4 +- .../dep0051_util_isnullorundefined.md | 4 +- deprecations/dep0052_util_isnumber.md | 4 +- deprecations/dep0053_util_isobject.md | 4 +- deprecations/dep0054_util_isprimitive.md | 4 +- deprecations/dep0055_util_isregexp.md | 4 +- deprecations/dep0056_util_isstring.md | 4 +- deprecations/dep0057_util_issymbol.md | 4 +- deprecations/dep0058_util_isundefined.md | 4 +- deprecations/dep0062_node_debug.md | 6 +- .../dep0085_asynchooks_sensitive_api.md | 4 +- .../dep0086_remove_runinasyncidscope.md | 4 +- deprecations/dep0089_require_assert.md | 2 +- ...before_and_asyncresource_emitafter_apis.md | 6 +- deprecations/dep0111_process_binding.md | 6 +- ...rng_crypto_pseudorandombytes_crypto_rng.md | 5 + ...m_open_and_readstream_open_are_internal.md | 1 + ...dep0139_process_umask_with_no_arguments.md | 4 +- ...equest_destroy_instead_of_request_abort.md | 4 +- deprecations/dep0144_module_parent.md | 4 +- .../dep0146_new_crypto_certificate.md | 124 ---------------- .../dep0147_fs_rmdir_path_recursive_true.md | 137 ++++++++++++++++++ dgram/dgram_createsocket_options_callback.md | 12 +- dgram/socket_bind_port_address_callback.md | 3 +- ...msg_offset_length_port_address_callback.md | 6 +- domain/domain.md | 1 + errors/err_feature_unavailable_on_platform.md | 2 +- errors/err_fs_eisdir.md | 4 + errors/err_script_execution_interrupted.md | 4 +- errors/hpe_header_overflow.md | 3 +- events/event_removelistener.md | 4 +- fs/dir_read.md | 2 +- fs/dir_read_callback.md | 2 +- fs/dir_readsync.md | 2 +- fs/dir_symbol_asynciterator.md | 2 +- fs/file_system_flags.md | 2 +- fs/fs_exists_path_callback.md | 2 +- fs/fs_fstat_fd_options_callback.md | 6 +- fs/fs_lstat_path_options_callback.md | 6 +- fs/fs_lstatsync_path_options.md | 6 +- fs/fs_read_fd_options_callback.md | 2 +- fs/fs_readsync_fd_buffer_options.md | 2 +- fs/fs_rm_path_options_callback.md | 25 ++++ fs/fs_rmsync_path_options.md | 22 +++ fs/fs_stat_path_options_callback.md | 6 +- fs/fs_statsync_path_options.md | 6 +- fs/fs_symlink_target_path_type_callback.md | 8 +- fs/fs_symlinksync_target_path_type.md | 8 +- fs/fspromises_rm_path_options.md | 22 +++ http/event_clienterror.md | 18 +-- http/event_upgrade_1.md | 2 +- ...tp_createserver_options_requestlistener.md | 4 +- ...tehead_statuscode_statusmessage_headers.md | 7 +- ...ttp2_connect_authority_options_listener.md | 3 + ...tesecureserver_options_onrequesthandler.md | 3 + ...2_createserver_options_onrequesthandler.md | 11 +- https/class_https_agent.md | 6 +- modules/module_parent.md | 4 +- n-api/n_api_version_matrix.md | 47 ++---- n-api/napi_call_threadsafe_function.md | 9 +- n-api/napi_get_uv_event_loop.md | 2 +- n-api/napi_make_callback.md | 1 + n-api/napi_object_freeze.md | 24 +++ n-api/napi_object_seal.md | 21 +++ n-api/napi_property_attributes.md | 2 +- packages/exports.md | 18 ++- packages/imports.md | 21 +-- packages/name.md | 4 +- packages/subpath_imports.md | 38 +++++ ...export_patterns.md => subpath_patterns.md} | 13 +- packages/type.md | 2 +- ...oputilization_utilization1_utilization2.md | 4 +- perf_hooks/performancenodetiming_idletime.md | 4 +- process/process_execpath.md | 1 + process/process_initgroups_user_extragroup.md | 2 +- process/process_ppid.md | 2 +- process/process_umask.md | 4 +- process/process_versions.md | 6 +- process/signal_events.md | 4 +- .../querystring_parse_str_sep_eq_options.md | 4 +- readline/readline_createinterface_options.md | 4 +- stream/new_stream_readable_options.md | 6 +- stream/readable_read_size.md | 2 +- stream/stream_pipeline_streams_callback.md | 6 +- tls/tls_connect_options_callback.md | 4 +- tracing/trace_events.md | 6 +- url/url_resolve_from_to.md | 4 +- util/class_util_textencoder.md | 2 +- util/new_textdecoder_encoding_options.md | 2 +- util/util_format_format_args.md | 8 +- ..._inspect_object_showhidden_depth_colors.md | 16 +- v8/v8_getheapstatistics.md | 6 +- vm/new_vm_script_code_options.md | 8 +- vm/vm_compilefunction_code_params_options.md | 11 +- worker_threads/new_worker_filename_options.md | 10 +- zlib/class_options.md | 4 +- 159 files changed, 690 insertions(+), 444 deletions(-) create mode 100644 deprecations/dep0147_fs_rmdir_path_recursive_true.md create mode 100644 errors/err_fs_eisdir.md create mode 100644 fs/fs_rm_path_options_callback.md create mode 100644 fs/fs_rmsync_path_options.md create mode 100644 fs/fspromises_rm_path_options.md create mode 100644 n-api/napi_object_freeze.md create mode 100644 n-api/napi_object_seal.md create mode 100644 packages/subpath_imports.md rename packages/{subpath_export_patterns.md => subpath_patterns.md} (76%) diff --git a/assert/assert_deepequal_actual_expected_message.md b/assert/assert_deepequal_actual_expected_message.md index 80b5b69e..4146d545 100644 --- a/assert/assert_deepequal_actual_expected_message.md +++ b/assert/assert_deepequal_actual_expected_message.md @@ -11,17 +11,23 @@ changes: minor comparison adjustments to make the check less surprising. - version: v9.0.0 pr-url: https://github.com/nodejs/node/pull/15001 - description: The `Error` names and messages are now properly compared + description: The `Error` names and messages are now properly compared. - version: v8.0.0 pr-url: https://github.com/nodejs/node/pull/12142 - description: The `Set` and `Map` content is also compared - - version: v6.4.0, v4.7.1 + description: The `Set` and `Map` content is also compared. + - version: + - v6.4.0 + - v4.7.1 pr-url: https://github.com/nodejs/node/pull/8002 description: Typed array slices are handled correctly now. - - version: v6.1.0, v4.5.0 + - version: + - v6.1.0 + - v4.5.0 pr-url: https://github.com/nodejs/node/pull/6432 description: Objects with circular references can be used as inputs now. - - version: v5.10.1, v4.4.3 + - version: + - v5.10.1 + - v4.4.3 pr-url: https://github.com/nodejs/node/pull/5910 description: Handle non-`Uint8Array` typed arrays correctly. --> diff --git a/assert/assert_deepstrictequal_actual_expected_message.md b/assert/assert_deepstrictequal_actual_expected_message.md index cc7a9790..dec0e913 100644 --- a/assert/assert_deepstrictequal_actual_expected_message.md +++ b/assert/assert_deepstrictequal_actual_expected_message.md @@ -11,20 +11,25 @@ changes: comparison. - version: v8.5.0 pr-url: https://github.com/nodejs/node/pull/15001 - description: The `Error` names and messages are now properly compared + description: The `Error` names and messages are now properly compared. - version: v8.0.0 pr-url: https://github.com/nodejs/node/pull/12142 - description: The `Set` and `Map` content is also compared - - version: v6.4.0, v4.7.1 + description: The `Set` and `Map` content is also compared. + - version: + - v6.4.0 + - v4.7.1 pr-url: https://github.com/nodejs/node/pull/8002 description: Typed array slices are handled correctly now. - version: v6.1.0 pr-url: https://github.com/nodejs/node/pull/6432 description: Objects with circular references can be used as inputs now. - - version: v5.10.1, v4.4.3 + - version: + - v5.10.1 + - v4.4.3 pr-url: https://github.com/nodejs/node/pull/5910 description: Handle non-`Uint8Array` typed arrays correctly. --> + * `actual` {any} * `expected` {any} * `message` {string|Error} diff --git a/assert/assert_doesnotthrow_fn_error_message.md b/assert/assert_doesnotthrow_fn_error_message.md index f1c02438..bf9d306f 100644 --- a/assert/assert_doesnotthrow_fn_error_message.md +++ b/assert/assert_doesnotthrow_fn_error_message.md @@ -1,7 +1,9 @@ diff --git a/assert/assert_notdeepstrictequal_actual_expected_message.md b/assert/assert_notdeepstrictequal_actual_expected_message.md index 063a4d2d..58023e83 100644 --- a/assert/assert_notdeepstrictequal_actual_expected_message.md +++ b/assert/assert_notdeepstrictequal_actual_expected_message.md @@ -11,20 +11,25 @@ changes: comparison. - version: v9.0.0 pr-url: https://github.com/nodejs/node/pull/15001 - description: The `Error` names and messages are now properly compared + description: The `Error` names and messages are now properly compared. - version: v8.0.0 pr-url: https://github.com/nodejs/node/pull/12142 - description: The `Set` and `Map` content is also compared - - version: v6.4.0, v4.7.1 + description: The `Set` and `Map` content is also compared. + - version: + - v6.4.0 + - v4.7.1 pr-url: https://github.com/nodejs/node/pull/8002 description: Typed array slices are handled correctly now. - version: v6.1.0 pr-url: https://github.com/nodejs/node/pull/6432 description: Objects with circular references can be used as inputs now. - - version: v5.10.1, v4.4.3 + - version: + - v5.10.1 + - v4.4.3 pr-url: https://github.com/nodejs/node/pull/5910 description: Handle non-`Uint8Array` typed arrays correctly. --> + * `actual` {any} * `expected` {any} * `message` {string|Error} diff --git a/assert/assert_notstrictequal_actual_expected_message.md b/assert/assert_notstrictequal_actual_expected_message.md index 247dd6e1..2002929c 100644 --- a/assert/assert_notstrictequal_actual_expected_message.md +++ b/assert/assert_notstrictequal_actual_expected_message.md @@ -3,8 +3,9 @@ added: v0.1.21 changes: - version: v10.0.0 pr-url: https://github.com/nodejs/node/pull/17003 - description: Used comparison changed from Strict Equality to `Object.is()` + description: Used comparison changed from Strict Equality to `Object.is()`. --> + * `actual` {any} * `expected` {any} * `message` {string|Error} diff --git a/assert/assert_strictequal_actual_expected_message.md b/assert/assert_strictequal_actual_expected_message.md index 92cc367f..edca4953 100644 --- a/assert/assert_strictequal_actual_expected_message.md +++ b/assert/assert_strictequal_actual_expected_message.md @@ -3,8 +3,9 @@ added: v0.1.21 changes: - version: v10.0.0 pr-url: https://github.com/nodejs/node/pull/17003 - description: Used comparison changed from Strict Equality to `Object.is()` + description: Used comparison changed from Strict Equality to `Object.is()`. --> + * `actual` {any} * `expected` {any} * `message` {string|Error} diff --git a/assert/strict_assertion_mode.md b/assert/strict_assertion_mode.md index 1387c18f..f24c9278 100644 --- a/assert/strict_assertion_mode.md +++ b/assert/strict_assertion_mode.md @@ -4,6 +4,7 @@ changes: - version: - v13.9.0 - v12.16.2 + pr-url: https://github.com/nodejs/node/pull/31635 description: 将“严格模式”更改为“严格的断言模式”,将“传统模式”更改为“传统的断言模式”,以避免与更常见的“严格模式”的含义混淆。 - version: v9.9.0 pr-url: https://github.com/nodejs/node/pull/17615 diff --git a/async_hooks/async_hooks_executionasyncid.md b/async_hooks/async_hooks_executionasyncid.md index e4d0af08..d0d0b6e6 100644 --- a/async_hooks/async_hooks_executionasyncid.md +++ b/async_hooks/async_hooks_executionasyncid.md @@ -4,7 +4,7 @@ added: v8.1.0 changes: - version: v8.2.0 pr-url: https://github.com/nodejs/node/pull/13490 - description: Renamed from `currentId` + description: Renamed from `currentId`. --> * Returns: {number} The `asyncId` of the current execution context. Useful to diff --git a/buffer/buf_index.md b/buffer/buf_index.md index a8e9e2c5..3ec9bbcb 100644 --- a/buffer/buf_index.md +++ b/buffer/buf_index.md @@ -1,7 +1,3 @@ - * `index` {integer} diff --git a/buffer/buf_indexof_value_byteoffset_encoding.md b/buffer/buf_indexof_value_byteoffset_encoding.md index ad54ae54..d25f84fe 100644 --- a/buffer/buf_indexof_value_byteoffset_encoding.md +++ b/buffer/buf_indexof_value_byteoffset_encoding.md @@ -4,7 +4,9 @@ changes: - version: v8.0.0 pr-url: https://github.com/nodejs/node/pull/10236 description: The `value` can now be a `Uint8Array`. - - version: v5.7.0, v4.4.0 + - version: + - v5.7.0 + - v4.4.0 pr-url: https://github.com/nodejs/node/pull/4803 description: When `encoding` is being passed, the `byteOffset` parameter is no longer required. diff --git a/buffer/buf_readbiguint64le_offset.md b/buffer/buf_readbiguint64le_offset.md index 834484d8..7e96c4ec 100644 --- a/buffer/buf_readbiguint64le_offset.md +++ b/buffer/buf_readbiguint64le_offset.md @@ -3,7 +3,9 @@ added: - v12.0.0 - v10.20.0 changes: - - version: v14.10.0 + - version: + - v14.10.0 + - v12.19.0 pr-url: https://github.com/nodejs/node/pull/34960 description: This function is also available as `buf.readBigUint64LE()`. --> diff --git a/buffer/buf_slice_start_end.md b/buffer/buf_slice_start_end.md index a366775b..e96e2f4c 100644 --- a/buffer/buf_slice_start_end.md +++ b/buffer/buf_slice_start_end.md @@ -1,7 +1,9 @@ diff --git a/child_process/child_process_spawnsync_command_args_options.md b/child_process/child_process_spawnsync_command_args_options.md index 8ef82bed..78b5353d 100644 --- a/child_process/child_process_spawnsync_command_args_options.md +++ b/child_process/child_process_spawnsync_command_args_options.md @@ -10,7 +10,9 @@ changes: - version: v8.0.0 pr-url: https://github.com/nodejs/node/pull/10653 description: 选项 `input` 可以是 `Uint8Array`。 - - version: v6.2.1, v4.5.0 + - version: + - v6.2.1 + - v4.5.0 pr-url: https://github.com/nodejs/node/pull/6939 description: The `encoding` option can now explicitly be set to `buffer`. - version: v5.7.0 diff --git a/cli/experimental_wasi_unstable_preview1.md b/cli/experimental_wasi_unstable_preview1.md index 27d0cefa..e26345a7 100644 --- a/cli/experimental_wasi_unstable_preview1.md +++ b/cli/experimental_wasi_unstable_preview1.md @@ -6,7 +6,7 @@ changes: - version: v13.6.0 pr-url: https://github.com/nodejs/node/pull/30980 description: changed from `--experimental-wasi-unstable-preview0` to - `--experimental-wasi-unstable-preview1` + `--experimental-wasi-unstable-preview1`. --> Enable experimental WebAssembly System Interface (WASI) support. diff --git a/cli/report_dir_directory_report_directory_directory.md b/cli/report_dir_directory_report_directory_directory.md index 3629cef8..8636d3be 100644 --- a/cli/report_dir_directory_report_directory_directory.md +++ b/cli/report_dir_directory_report_directory_directory.md @@ -7,7 +7,7 @@ changes: - version: v12.0.0 pr-url: https://github.com/nodejs/node/pull/27312 description: Changed from `--diagnostic-report-directory` to - `--report-directory` + `--report-directory`. --> Location at which the report will be generated. diff --git a/cli/report_filename_filename.md b/cli/report_filename_filename.md index 225c906a..5a5a48e9 100644 --- a/cli/report_filename_filename.md +++ b/cli/report_filename_filename.md @@ -7,7 +7,7 @@ changes: - version: v12.0.0 pr-url: https://github.com/nodejs/node/pull/27312 description: changed from `--diagnostic-report-filename` to - `--report-filename` + `--report-filename`. --> Name of the file to which the report will be written. diff --git a/cli/report_on_fatalerror.md b/cli/report_on_fatalerror.md index 8d3dd003..3bf5a024 100644 --- a/cli/report_on_fatalerror.md +++ b/cli/report_on_fatalerror.md @@ -7,7 +7,7 @@ changes: - version: v12.0.0 pr-url: https://github.com/nodejs/node/pull/27312 description: changed from `--diagnostic-report-on-fatalerror` to - `--report-on-fatalerror` + `--report-on-fatalerror`. --> Enables the report to be triggered on fatal errors (internal errors within diff --git a/cli/report_on_signal.md b/cli/report_on_signal.md index 856219c1..c13dac7f 100644 --- a/cli/report_on_signal.md +++ b/cli/report_on_signal.md @@ -7,7 +7,7 @@ changes: - version: v12.0.0 pr-url: https://github.com/nodejs/node/pull/27312 description: changed from `--diagnostic-report-on-signal` to - `--report-on-signal` + `--report-on-signal`. --> Enables report to be generated upon receiving the specified (or predefined) diff --git a/cli/report_signal_signal.md b/cli/report_signal_signal.md index 90004202..7162fb9a 100644 --- a/cli/report_signal_signal.md +++ b/cli/report_signal_signal.md @@ -7,7 +7,7 @@ changes: - version: v12.0.0 pr-url: https://github.com/nodejs/node/pull/27312 description: changed from `--diagnostic-report-signal` to - `--report-signal` + `--report-signal`. --> Sets or resets the signal for report generation (not supported on Windows). diff --git a/cli/report_uncaught_exception.md b/cli/report_uncaught_exception.md index b25da0c1..8f22e682 100644 --- a/cli/report_uncaught_exception.md +++ b/cli/report_uncaught_exception.md @@ -7,7 +7,7 @@ changes: - version: v12.0.0 pr-url: https://github.com/nodejs/node/pull/27312 description: changed from `--diagnostic-report-uncaught-exception` to - `--report-uncaught-exception` + `--report-uncaught-exception`. --> Enables report to be generated on uncaught exceptions. Useful when inspecting diff --git a/crypto/ecdh_computesecret_otherpublickey_inputencoding_outputencoding.md b/crypto/ecdh_computesecret_otherpublickey_inputencoding_outputencoding.md index 3758a7ba..fed1a79b 100644 --- a/crypto/ecdh_computesecret_otherpublickey_inputencoding_outputencoding.md +++ b/crypto/ecdh_computesecret_otherpublickey_inputencoding_outputencoding.md @@ -1,13 +1,13 @@ * `otherPublicKey` {string | Buffer | TypedArray | DataView} diff --git a/crypto/keyobject_asymmetrickeytype.md b/crypto/keyobject_asymmetrickeytype.md index e57c030d..0939dfd2 100644 --- a/crypto/keyobject_asymmetrickeytype.md +++ b/crypto/keyobject_asymmetrickeytype.md @@ -6,14 +6,14 @@ changes: description: Added support for `'dh'`. - version: v12.0.0 pr-url: https://github.com/nodejs/node/pull/26960 - description: Added support for `'rsa-pss'` + description: Added support for `'rsa-pss'`. - version: v12.0.0 pr-url: https://github.com/nodejs/node/pull/26786 description: This property now returns `undefined` for KeyObject instances of unrecognized type instead of aborting. - version: v12.0.0 pr-url: https://github.com/nodejs/node/pull/26774 - description: Added support for `'x25519'` and `'x448'` + description: Added support for `'x25519'` and `'x448'`. - version: v12.0.0 pr-url: https://github.com/nodejs/node/pull/26319 description: Added support for `'ed25519'` and `'ed448'`. diff --git a/deprecations/dep0001_http_outgoingmessage_prototype_flush.md b/deprecations/dep0001_http_outgoingmessage_prototype_flush.md index bf3be9a8..6302d2c2 100644 --- a/deprecations/dep0001_http_outgoingmessage_prototype_flush.md +++ b/deprecations/dep0001_http_outgoingmessage_prototype_flush.md @@ -4,8 +4,8 @@ changes: pr-url: https://github.com/nodejs/node/pull/31164 description: End-of-Life. - version: - - v4.8.6 - v6.12.0 + - v4.8.6 pr-url: https://github.com/nodejs/node/pull/10116 description: A deprecation code has been assigned. - version: v1.6.0 diff --git a/deprecations/dep0003_writablestate_buffer.md b/deprecations/dep0003_writablestate_buffer.md index 1c08444e..840cdcbf 100644 --- a/deprecations/dep0003_writablestate_buffer.md +++ b/deprecations/dep0003_writablestate_buffer.md @@ -2,10 +2,10 @@ changes: - version: v14.0.0 pr-url: https://github.com/nodejs/node/pull/31165 - description: End-of-Life + description: End-of-Life. - version: - - v4.8.6 - v6.12.0 + - v4.8.6 pr-url: https://github.com/nodejs/node/pull/10116 description: A deprecation code has been assigned. - version: v0.11.15 diff --git a/deprecations/dep0004_cryptostream_prototype_readystate.md b/deprecations/dep0004_cryptostream_prototype_readystate.md index 75122eae..9e810c9a 100644 --- a/deprecations/dep0004_cryptostream_prototype_readystate.md +++ b/deprecations/dep0004_cryptostream_prototype_readystate.md @@ -4,11 +4,11 @@ changes: pr-url: https://github.com/nodejs/node/pull/17882 description: End-of-Life. - version: - - v4.8.6 - v6.12.0 + - v4.8.6 pr-url: https://github.com/nodejs/node/pull/10116 description: A deprecation code has been assigned. - - version: 0.4.0 + - version: v0.4.0 commit: 9c7f89bf56abd37a796fea621ad2e47dd33d2b82 description: Documentation-only deprecation. --> diff --git a/deprecations/dep0006_child_process_options_customfds.md b/deprecations/dep0006_child_process_options_customfds.md index 7cb47b8c..f0e2c8cd 100644 --- a/deprecations/dep0006_child_process_options_customfds.md +++ b/deprecations/dep0006_child_process_options_customfds.md @@ -4,8 +4,8 @@ changes: pr-url: https://github.com/nodejs/node/pull/25279 description: End-of-Life. - version: - - v4.8.6 - v6.12.0 + - v4.8.6 pr-url: https://github.com/nodejs/node/pull/10116 description: A deprecation code has been assigned. - version: v0.11.14 diff --git a/deprecations/dep0009_crypto_pbkdf2_without_digest.md b/deprecations/dep0009_crypto_pbkdf2_without_digest.md index cc3b5c4e..a6bc65a3 100644 --- a/deprecations/dep0009_crypto_pbkdf2_without_digest.md +++ b/deprecations/dep0009_crypto_pbkdf2_without_digest.md @@ -2,7 +2,7 @@ changes: - version: v14.0.0 pr-url: https://github.com/nodejs/node/pull/31166 - description: End-of-Life (for `digest === null`) + description: End-of-Life (for `digest === null`). - version: v11.0.0 pr-url: https://github.com/nodejs/node/pull/22861 description: Runtime deprecation (for `digest === null`). diff --git a/deprecations/dep0010_crypto_createcredentials.md b/deprecations/dep0010_crypto_createcredentials.md index cbf82f75..a8f02e2e 100644 --- a/deprecations/dep0010_crypto_createcredentials.md +++ b/deprecations/dep0010_crypto_createcredentials.md @@ -4,8 +4,8 @@ changes: pr-url: https://github.com/nodejs/node/pull/21153 description: End-of-Life. - version: - - v4.8.6 - v6.12.0 + - v4.8.6 pr-url: https://github.com/nodejs/node/pull/10116 description: A deprecation code has been assigned. - version: v0.11.13 diff --git a/deprecations/dep0011_crypto_credentials.md b/deprecations/dep0011_crypto_credentials.md index a5b84a42..f3700bf0 100644 --- a/deprecations/dep0011_crypto_credentials.md +++ b/deprecations/dep0011_crypto_credentials.md @@ -4,8 +4,8 @@ changes: pr-url: https://github.com/nodejs/node/pull/21153 description: End-of-Life. - version: - - v4.8.6 - v6.12.0 + - v4.8.6 pr-url: https://github.com/nodejs/node/pull/10116 description: A deprecation code has been assigned. - version: v0.11.13 diff --git a/deprecations/dep0012_domain_dispose.md b/deprecations/dep0012_domain_dispose.md index 865abd88..f824c362 100644 --- a/deprecations/dep0012_domain_dispose.md +++ b/deprecations/dep0012_domain_dispose.md @@ -4,8 +4,8 @@ changes: pr-url: https://github.com/nodejs/node/pull/15412 description: End-of-Life. - version: - - v4.8.6 - v6.12.0 + - v4.8.6 pr-url: https://github.com/nodejs/node/pull/10116 description: A deprecation code has been assigned. - version: v0.11.7 diff --git a/deprecations/dep0014_fs_read_legacy_string_interface.md b/deprecations/dep0014_fs_read_legacy_string_interface.md index 55148e8b..0ed2a8f7 100644 --- a/deprecations/dep0014_fs_read_legacy_string_interface.md +++ b/deprecations/dep0014_fs_read_legacy_string_interface.md @@ -3,14 +3,14 @@ changes: - version: v8.0.0 pr-url: https://github.com/nodejs/node/pull/9683 description: End-of-Life. - - version: v6.0.0 - pr-url: https://github.com/nodejs/node/pull/4525 - description: Runtime deprecation. - version: - - v4.8.6 - v6.12.0 + - v4.8.6 pr-url: https://github.com/nodejs/node/pull/10116 description: A deprecation code has been assigned. + - version: v6.0.0 + pr-url: https://github.com/nodejs/node/pull/4525 + description: Runtime deprecation. - version: v0.1.96 commit: c93e0aaf062081db3ec40ac45b3e2c979d5759d6 description: Documentation-only deprecation. diff --git a/deprecations/dep0015_fs_readsync_legacy_string_interface.md b/deprecations/dep0015_fs_readsync_legacy_string_interface.md index 8458f014..abd35599 100644 --- a/deprecations/dep0015_fs_readsync_legacy_string_interface.md +++ b/deprecations/dep0015_fs_readsync_legacy_string_interface.md @@ -3,14 +3,14 @@ changes: - version: v8.0.0 pr-url: https://github.com/nodejs/node/pull/9683 description: End-of-Life. - - version: v6.0.0 - pr-url: https://github.com/nodejs/node/pull/4525 - description: Runtime deprecation. - version: - - v4.8.6 - v6.12.0 + - v4.8.6 pr-url: https://github.com/nodejs/node/pull/10116 description: A deprecation code has been assigned. + - version: v6.0.0 + pr-url: https://github.com/nodejs/node/pull/4525 + description: Runtime deprecation. - version: v0.1.96 commit: c93e0aaf062081db3ec40ac45b3e2c979d5759d6 description: Documentation-only deprecation. diff --git a/deprecations/dep0016_global_root.md b/deprecations/dep0016_global_root.md index 1e5b31c0..acf143d6 100644 --- a/deprecations/dep0016_global_root.md +++ b/deprecations/dep0016_global_root.md @@ -2,7 +2,7 @@ changes: - version: v14.0.0 pr-url: https://github.com/nodejs/node/pull/31167 - description: End-of-Life + description: End-of-Life. - version: v6.12.0 pr-url: https://github.com/nodejs/node/pull/10116 description: A deprecation code has been assigned. diff --git a/deprecations/dep0019_require_resolved_outside_directory.md b/deprecations/dep0019_require_resolved_outside_directory.md index 1ce4be1a..d3701605 100644 --- a/deprecations/dep0019_require_resolved_outside_directory.md +++ b/deprecations/dep0019_require_resolved_outside_directory.md @@ -4,8 +4,8 @@ changes: pr-url: https://github.com/nodejs/node/pull/26973 description: Removed functionality. - version: - - v4.8.6 - v6.12.0 + - v4.8.6 pr-url: https://github.com/nodejs/node/pull/10116 description: A deprecation code has been assigned. - version: v1.8.1 diff --git a/deprecations/dep0020_server_connections.md b/deprecations/dep0020_server_connections.md index 4cd5082f..0b42c653 100644 --- a/deprecations/dep0020_server_connections.md +++ b/deprecations/dep0020_server_connections.md @@ -1,8 +1,8 @@ diff --git a/deprecations/dep0035_fs_lchmod_path_mode_callback.md b/deprecations/dep0035_fs_lchmod_path_mode_callback.md index b6c64e99..cca24594 100644 --- a/deprecations/dep0035_fs_lchmod_path_mode_callback.md +++ b/deprecations/dep0035_fs_lchmod_path_mode_callback.md @@ -1,8 +1,8 @@ diff --git a/deprecations/dep0045_util_isboolean.md b/deprecations/dep0045_util_isboolean.md index 4f6334d0..ba0d146c 100644 --- a/deprecations/dep0045_util_isboolean.md +++ b/deprecations/dep0045_util_isboolean.md @@ -1,13 +1,13 @@ diff --git a/deprecations/dep0046_util_isbuffer.md b/deprecations/dep0046_util_isbuffer.md index 86485008..38784328 100644 --- a/deprecations/dep0046_util_isbuffer.md +++ b/deprecations/dep0046_util_isbuffer.md @@ -1,13 +1,13 @@ diff --git a/deprecations/dep0047_util_isdate.md b/deprecations/dep0047_util_isdate.md index 8ca155cb..e0e6b9da 100644 --- a/deprecations/dep0047_util_isdate.md +++ b/deprecations/dep0047_util_isdate.md @@ -1,13 +1,13 @@ diff --git a/deprecations/dep0048_util_iserror.md b/deprecations/dep0048_util_iserror.md index 8f825b14..64eda344 100644 --- a/deprecations/dep0048_util_iserror.md +++ b/deprecations/dep0048_util_iserror.md @@ -1,13 +1,13 @@ diff --git a/deprecations/dep0049_util_isfunction.md b/deprecations/dep0049_util_isfunction.md index 98f79c55..65ffc1a0 100644 --- a/deprecations/dep0049_util_isfunction.md +++ b/deprecations/dep0049_util_isfunction.md @@ -1,13 +1,13 @@ diff --git a/deprecations/dep0050_util_isnull.md b/deprecations/dep0050_util_isnull.md index d738d6b9..860ebb08 100644 --- a/deprecations/dep0050_util_isnull.md +++ b/deprecations/dep0050_util_isnull.md @@ -1,13 +1,13 @@ diff --git a/deprecations/dep0051_util_isnullorundefined.md b/deprecations/dep0051_util_isnullorundefined.md index e2b08ef0..56a177e2 100644 --- a/deprecations/dep0051_util_isnullorundefined.md +++ b/deprecations/dep0051_util_isnullorundefined.md @@ -1,13 +1,13 @@ diff --git a/deprecations/dep0052_util_isnumber.md b/deprecations/dep0052_util_isnumber.md index 2c869bc3..17aef350 100644 --- a/deprecations/dep0052_util_isnumber.md +++ b/deprecations/dep0052_util_isnumber.md @@ -1,13 +1,13 @@ diff --git a/deprecations/dep0053_util_isobject.md b/deprecations/dep0053_util_isobject.md index e7606705..bafff194 100644 --- a/deprecations/dep0053_util_isobject.md +++ b/deprecations/dep0053_util_isobject.md @@ -1,13 +1,13 @@ diff --git a/deprecations/dep0054_util_isprimitive.md b/deprecations/dep0054_util_isprimitive.md index 90d2cadf..1f757c6c 100644 --- a/deprecations/dep0054_util_isprimitive.md +++ b/deprecations/dep0054_util_isprimitive.md @@ -1,13 +1,13 @@ diff --git a/deprecations/dep0055_util_isregexp.md b/deprecations/dep0055_util_isregexp.md index 86ccace5..3a3c1572 100644 --- a/deprecations/dep0055_util_isregexp.md +++ b/deprecations/dep0055_util_isregexp.md @@ -1,13 +1,13 @@ diff --git a/deprecations/dep0056_util_isstring.md b/deprecations/dep0056_util_isstring.md index 878fa8ac..6bbf09af 100644 --- a/deprecations/dep0056_util_isstring.md +++ b/deprecations/dep0056_util_isstring.md @@ -1,13 +1,13 @@ diff --git a/deprecations/dep0057_util_issymbol.md b/deprecations/dep0057_util_issymbol.md index 6f8b82a6..a9b80551 100644 --- a/deprecations/dep0057_util_issymbol.md +++ b/deprecations/dep0057_util_issymbol.md @@ -1,13 +1,13 @@ diff --git a/deprecations/dep0058_util_isundefined.md b/deprecations/dep0058_util_isundefined.md index 280af257..63120ce1 100644 --- a/deprecations/dep0058_util_isundefined.md +++ b/deprecations/dep0058_util_isundefined.md @@ -1,13 +1,13 @@ diff --git a/deprecations/dep0062_node_debug.md b/deprecations/dep0062_node_debug.md index b4a30653..610d29b6 100644 --- a/deprecations/dep0062_node_debug.md +++ b/deprecations/dep0062_node_debug.md @@ -1,11 +1,11 @@ Type: End-of-Life diff --git a/deprecations/dep0085_asynchooks_sensitive_api.md b/deprecations/dep0085_asynchooks_sensitive_api.md index d67b2520..2c9a3e11 100644 --- a/deprecations/dep0085_asynchooks_sensitive_api.md +++ b/deprecations/dep0085_asynchooks_sensitive_api.md @@ -1,11 +1,11 @@ diff --git a/deprecations/dep0086_remove_runinasyncidscope.md b/deprecations/dep0086_remove_runinasyncidscope.md index b7cf8b37..3a97e310 100644 --- a/deprecations/dep0086_remove_runinasyncidscope.md +++ b/deprecations/dep0086_remove_runinasyncidscope.md @@ -1,11 +1,11 @@ diff --git a/deprecations/dep0089_require_assert.md b/deprecations/dep0089_require_assert.md index c026ef61..56f4607f 100644 --- a/deprecations/dep0089_require_assert.md +++ b/deprecations/dep0089_require_assert.md @@ -5,7 +5,7 @@ changes: description: Deprecation revoked. - version: - v9.9.0 - - v10.0.0 + - v8.13.0 pr-url: https://github.com/nodejs/node/pull/17002 description: Documentation-only deprecation. --> diff --git a/deprecations/dep0098_asynchooks_embedder_asyncresource_emitbefore_and_asyncresource_emitafter_apis.md b/deprecations/dep0098_asynchooks_embedder_asyncresource_emitbefore_and_asyncresource_emitafter_apis.md index 6bc50748..97e449ec 100644 --- a/deprecations/dep0098_asynchooks_embedder_asyncresource_emitbefore_and_asyncresource_emitafter_apis.md +++ b/deprecations/dep0098_asynchooks_embedder_asyncresource_emitbefore_and_asyncresource_emitafter_apis.md @@ -2,11 +2,11 @@ changes: - version: v12.0.0 pr-url: https://github.com/nodejs/node/pull/26530 - description: End-of-Life + description: End-of-Life. - version: - - v8.12.0 - - v9.6.0 - v10.0.0 + - v9.6.0 + - v8.12.0 pr-url: https://github.com/nodejs/node/pull/18632 description: Runtime deprecation. --> diff --git a/deprecations/dep0111_process_binding.md b/deprecations/dep0111_process_binding.md index 85a361d8..561f9456 100644 --- a/deprecations/dep0111_process_binding.md +++ b/deprecations/dep0111_process_binding.md @@ -1,11 +1,11 @@ Type: Documentation-only (supports [`--pending-deprecation`][]) diff --git a/deprecations/dep0115_crypto_prng_crypto_pseudorandombytes_crypto_rng.md b/deprecations/dep0115_crypto_prng_crypto_pseudorandombytes_crypto_rng.md index 342f477c..0e690431 100644 --- a/deprecations/dep0115_crypto_prng_crypto_pseudorandombytes_crypto_rng.md +++ b/deprecations/dep0115_crypto_prng_crypto_pseudorandombytes_crypto_rng.md @@ -1,3 +1,6 @@ + + + + + Type: Documentation-only (supports [`--pending-deprecation`][]) In recent versions of Node.js, there is no difference between diff --git a/deprecations/dep0135_writestream_open_and_readstream_open_are_internal.md b/deprecations/dep0135_writestream_open_and_readstream_open_are_internal.md index b681b196..472d2f1c 100644 --- a/deprecations/dep0135_writestream_open_and_readstream_open_are_internal.md +++ b/deprecations/dep0135_writestream_open_and_readstream_open_are_internal.md @@ -2,6 +2,7 @@ changes: - version: v13.0.0 pr-url: https://github.com/nodejs/node/pull/29061 + description: Runtime deprecation. --> Type: Runtime diff --git a/deprecations/dep0139_process_umask_with_no_arguments.md b/deprecations/dep0139_process_umask_with_no_arguments.md index 73c51a53..1e6a1ddf 100644 --- a/deprecations/dep0139_process_umask_with_no_arguments.md +++ b/deprecations/dep0139_process_umask_with_no_arguments.md @@ -1,6 +1,8 @@ diff --git a/deprecations/dep0140_use_request_destroy_instead_of_request_abort.md b/deprecations/dep0140_use_request_destroy_instead_of_request_abort.md index 402a3a31..bbccd76c 100644 --- a/deprecations/dep0140_use_request_destroy_instead_of_request_abort.md +++ b/deprecations/dep0140_use_request_destroy_instead_of_request_abort.md @@ -1,6 +1,8 @@ diff --git a/deprecations/dep0144_module_parent.md b/deprecations/dep0144_module_parent.md index 4435f00b..f94c95fc 100644 --- a/deprecations/dep0144_module_parent.md +++ b/deprecations/dep0144_module_parent.md @@ -1,6 +1,8 @@ diff --git a/deprecations/dep0146_new_crypto_certificate.md b/deprecations/dep0146_new_crypto_certificate.md index 94c8a036..eec9bc11 100644 --- a/deprecations/dep0146_new_crypto_certificate.md +++ b/deprecations/dep0146_new_crypto_certificate.md @@ -10,127 +10,3 @@ Type: Documentation-only The [`crypto.Certificate()` constructor][] is deprecated. Use [static methods of `crypto.Certificate()`][] instead. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/deprecations/dep0147_fs_rmdir_path_recursive_true.md b/deprecations/dep0147_fs_rmdir_path_recursive_true.md new file mode 100644 index 00000000..f6f5d21b --- /dev/null +++ b/deprecations/dep0147_fs_rmdir_path_recursive_true.md @@ -0,0 +1,137 @@ + + +Type: Documentation-only + +In future versions of Node.js, `fs.rmdir(path, { recursive: true })` will throw +on nonexistent paths, or when given a file as a target. +Use `fs.rm(path, { recursive: true, force: true })` instead. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dgram/dgram_createsocket_options_callback.md b/dgram/dgram_createsocket_options_callback.md index dae27ee2..a60a2c93 100644 --- a/dgram/dgram_createsocket_options_callback.md +++ b/dgram/dgram_createsocket_options_callback.md @@ -1,16 +1,16 @@ * `options` {Object} 允许的选项是: diff --git a/dgram/socket_bind_port_address_callback.md b/dgram/socket_bind_port_address_callback.md index 1f04e2e9..35457330 100644 --- a/dgram/socket_bind_port_address_callback.md +++ b/dgram/socket_bind_port_address_callback.md @@ -1,7 +1,8 @@ * `msg` {Buffer|TypedArray|DataView|string|Array} 要发送的消息。 diff --git a/domain/domain.md b/domain/domain.md index fa36e341..577ca2bd 100644 --- a/domain/domain.md +++ b/domain/domain.md @@ -2,6 +2,7 @@ deprecated: v1.4.2 changes: - version: v8.8.0 + pr-url: https://github.com/nodejs/node/pull/15695 description: Any `Promise`s created in VM contexts no longer have a `.domain` property. Their handlers are still executed in the proper domain, however, and `Promise`s created in the main diff --git a/errors/err_feature_unavailable_on_platform.md b/errors/err_feature_unavailable_on_platform.md index b333d2ae..071f653a 100644 --- a/errors/err_feature_unavailable_on_platform.md +++ b/errors/err_feature_unavailable_on_platform.md @@ -5,4 +5,4 @@ added: v14.0.0 Used when a feature that is not available to the current platform which is running Node.js is used. - + diff --git a/errors/err_fs_eisdir.md b/errors/err_fs_eisdir.md new file mode 100644 index 00000000..efa36316 --- /dev/null +++ b/errors/err_fs_eisdir.md @@ -0,0 +1,4 @@ + +Path is a directory. + + diff --git a/errors/err_script_execution_interrupted.md b/errors/err_script_execution_interrupted.md index 1c34ad89..09638f77 100644 --- a/errors/err_script_execution_interrupted.md +++ b/errors/err_script_execution_interrupted.md @@ -1,5 +1,5 @@ -Script execution was interrupted by `SIGINT` (For example, when Ctrl+C was -pressed). +Script execution was interrupted by `SIGINT` (For example, +Ctrl+C was pressed.) diff --git a/errors/hpe_header_overflow.md b/errors/hpe_header_overflow.md index b2a8963a..c8017ab4 100644 --- a/errors/hpe_header_overflow.md +++ b/errors/hpe_header_overflow.md @@ -3,7 +3,8 @@ changes: - version: - v11.4.0 - v10.15.0 - pr-url: https://github.com/nodejs/node/commit/186035243fad247e3955f + commit: 186035243fad247e3955f + pr-url: https://github.com/nodejs-private/node-private/pull/143 description: Max header size in `http_parser` was set to 8KB. --> diff --git a/events/event_removelistener.md b/events/event_removelistener.md index da713da1..cca5d33b 100644 --- a/events/event_removelistener.md +++ b/events/event_removelistener.md @@ -1,7 +1,9 @@ > 稳定性: 0 - 弃用: 改为使用 [`fs.stat()`] 或 [`fs.access()`]。 diff --git a/fs/fs_fstat_fd_options_callback.md b/fs/fs_fstat_fd_options_callback.md index d02fa8c3..eacccabf 100644 --- a/fs/fs_fstat_fd_options_callback.md +++ b/fs/fs_fstat_fd_options_callback.md @@ -1,6 +1,9 @@ * `fd` {integer} diff --git a/fs/fs_lstat_path_options_callback.md b/fs/fs_lstat_path_options_callback.md index 59b7cc97..7776f207 100644 --- a/fs/fs_lstat_path_options_callback.md +++ b/fs/fs_lstat_path_options_callback.md @@ -1,6 +1,9 @@ * `path` {string|Buffer|URL} diff --git a/fs/fs_lstatsync_path_options.md b/fs/fs_lstatsync_path_options.md index 4db5069a..2e9d5071 100644 --- a/fs/fs_lstatsync_path_options.md +++ b/fs/fs_lstatsync_path_options.md @@ -1,13 +1,13 @@ * `path` {string|Buffer|URL} diff --git a/fs/fs_read_fd_options_callback.md b/fs/fs_read_fd_options_callback.md index 38412e6f..f1da01c7 100644 --- a/fs/fs_read_fd_options_callback.md +++ b/fs/fs_read_fd_options_callback.md @@ -4,7 +4,7 @@ changes: - version: v13.11.0 pr-url: https://github.com/nodejs/node/pull/31402 description: Options object can be passed in - to make Buffer, offset, length and position optional + to make Buffer, offset, length and position optional. --> * `fd` {integer} * `options` {Object} diff --git a/fs/fs_readsync_fd_buffer_options.md b/fs/fs_readsync_fd_buffer_options.md index e72f82d3..2236ffcc 100644 --- a/fs/fs_readsync_fd_buffer_options.md +++ b/fs/fs_readsync_fd_buffer_options.md @@ -4,7 +4,7 @@ changes: - version: v14.0.0 pr-url: https://github.com/nodejs/node/pull/32460 description: Options object can be passed in - to make offset, length and position optional + to make offset, length and position optional. --> * `fd` {integer} diff --git a/fs/fs_rm_path_options_callback.md b/fs/fs_rm_path_options_callback.md new file mode 100644 index 00000000..5aac5a7f --- /dev/null +++ b/fs/fs_rm_path_options_callback.md @@ -0,0 +1,25 @@ + + +* `path` {string|Buffer|URL} +* `options` {Object} + * `force` {boolean} When `true`, exceptions will be ignored if `path` does + not exist. **Default:** `false`. + * `maxRetries` {integer} If an `EBUSY`, `EMFILE`, `ENFILE`, `ENOTEMPTY`, or + `EPERM` error is encountered, Node.js will retry the operation with a linear + backoff wait of `retryDelay` milliseconds longer on each try. This option + represents the number of retries. This option is ignored if the `recursive` + option is not `true`. **Default:** `0`. + * `recursive` {boolean} If `true`, perform a recursive removal. In + recursive mode operations are retried on failure. **Default:** `false`. + * `retryDelay` {integer} The amount of time in milliseconds to wait between + retries. This option is ignored if the `recursive` option is not `true`. + **Default:** `100`. +* `callback` {Function} + * `err` {Error} + +Asynchronously removes files and directories (modeled on the standard POSIX `rm` +utility). No arguments other than a possible exception are given to the +completion callback. + diff --git a/fs/fs_rmsync_path_options.md b/fs/fs_rmsync_path_options.md new file mode 100644 index 00000000..d922b727 --- /dev/null +++ b/fs/fs_rmsync_path_options.md @@ -0,0 +1,22 @@ + + +* `path` {string|Buffer|URL} +* `options` {Object} + * `force` {boolean} When `true`, exceptions will be ignored if `path` does + not exist. **Default:** `false`. + * `maxRetries` {integer} If an `EBUSY`, `EMFILE`, `ENFILE`, `ENOTEMPTY`, or + `EPERM` error is encountered, Node.js will retry the operation with a linear + backoff wait of `retryDelay` milliseconds longer on each try. This option + represents the number of retries. This option is ignored if the `recursive` + option is not `true`. **Default:** `0`. + * `recursive` {boolean} If `true`, perform a recursive directory removal. In + recursive mode operations are retried on failure. **Default:** `false`. + * `retryDelay` {integer} The amount of time in milliseconds to wait between + retries. This option is ignored if the `recursive` option is not `true`. + **Default:** `100`. + +Synchronously removes files and directories (modeled on the standard POSIX `rm` +utility). Returns `undefined`. + diff --git a/fs/fs_stat_path_options_callback.md b/fs/fs_stat_path_options_callback.md index 10d3d8ab..423b32dd 100644 --- a/fs/fs_stat_path_options_callback.md +++ b/fs/fs_stat_path_options_callback.md @@ -1,6 +1,9 @@ * `path` {string|Buffer|URL} diff --git a/fs/fs_statsync_path_options.md b/fs/fs_statsync_path_options.md index 1a9cce41..23c14ccd 100644 --- a/fs/fs_statsync_path_options.md +++ b/fs/fs_statsync_path_options.md @@ -1,13 +1,13 @@ * `path` {string|Buffer|URL} diff --git a/fs/fs_symlink_target_path_type_callback.md b/fs/fs_symlink_target_path_type_callback.md index a5893ccf..182c40e2 100644 --- a/fs/fs_symlink_target_path_type_callback.md +++ b/fs/fs_symlink_target_path_type_callback.md @@ -1,15 +1,15 @@ * `target` {string|Buffer|URL} diff --git a/fs/fs_symlinksync_target_path_type.md b/fs/fs_symlinksync_target_path_type.md index 35e1d3d1..f9158705 100644 --- a/fs/fs_symlinksync_target_path_type.md +++ b/fs/fs_symlinksync_target_path_type.md @@ -1,15 +1,15 @@ * `target` {string|Buffer|URL} diff --git a/fs/fspromises_rm_path_options.md b/fs/fspromises_rm_path_options.md new file mode 100644 index 00000000..3cfc1b66 --- /dev/null +++ b/fs/fspromises_rm_path_options.md @@ -0,0 +1,22 @@ + + +* `path` {string|Buffer|URL} +* `options` {Object} + * `force` {boolean} When `true`, exceptions will be ignored if `path` does + not exist. **Default:** `false`. + * `maxRetries` {integer} If an `EBUSY`, `EMFILE`, `ENFILE`, `ENOTEMPTY`, or + `EPERM` error is encountered, Node.js will retry the operation with a linear + backoff wait of `retryDelay` milliseconds longer on each try. This option + represents the number of retries. This option is ignored if the `recursive` + option is not `true`. **Default:** `0`. + * `recursive` {boolean} If `true`, perform a recursive directory removal. In + recursive mode operations are retried on failure. **Default:** `false`. + * `retryDelay` {integer} The amount of time in milliseconds to wait between + retries. This option is ignored if the `recursive` option is not `true`. + **Default:** `100`. + +Removes files and directories (modeled on the standard POSIX `rm` utility). +Resolves the `Promise` with no arguments on success. + diff --git a/http/event_clienterror.md b/http/event_clienterror.md index 981b0c1c..e362d855 100644 --- a/http/event_clienterror.md +++ b/http/event_clienterror.md @@ -1,20 +1,20 @@ * `exception` {Error} diff --git a/http/event_upgrade_1.md b/http/event_upgrade_1.md index caacb417..ea579c5d 100644 --- a/http/event_upgrade_1.md +++ b/http/event_upgrade_1.md @@ -2,7 +2,7 @@ added: v0.1.94 changes: - version: v10.0.0 - pr-url: v10.0.0 + pr-url: https://github.com/nodejs/node/pull/19981 description: Not listening to this event no longer causes the socket to be destroyed if a client sends an Upgrade header. --> diff --git a/http/http_createserver_options_requestlistener.md b/http/http_createserver_options_requestlistener.md index b1cbdf6d..50402cfd 100644 --- a/http/http_createserver_options_requestlistener.md +++ b/http/http_createserver_options_requestlistener.md @@ -10,7 +10,9 @@ changes: - version: v13.3.0 pr-url: https://github.com/nodejs/node/pull/30570 description: 支持 `maxHeaderSize` 选项。 - - version: v9.6.0, v8.12.0 + - version: + - v9.6.0 + - v8.12.0 pr-url: https://github.com/nodejs/node/pull/15752 description: 支持 `options` 参数。 --> diff --git a/http/response_writehead_statuscode_statusmessage_headers.md b/http/response_writehead_statuscode_statusmessage_headers.md index 042dfeee..ca1b069b 100644 --- a/http/response_writehead_statuscode_statusmessage_headers.md +++ b/http/response_writehead_statuscode_statusmessage_headers.md @@ -1,13 +1,18 @@ * `options` {Object} diff --git a/https/class_https_agent.md b/https/class_https_agent.md index f36264c8..75f66103 100644 --- a/https/class_https_agent.md +++ b/https/class_https_agent.md @@ -1,12 +1,12 @@ HTTPS 的 [`Agent`] 对象,类似于 [`http.Agent`]。 diff --git a/modules/module_parent.md b/modules/module_parent.md index 8325086a..d1fd6f51 100644 --- a/modules/module_parent.md +++ b/modules/module_parent.md @@ -1,6 +1,8 @@ > Stability: 0 - Deprecated: Please use [`require.main`][] and diff --git a/n-api/n_api_version_matrix.md b/n-api/n_api_version_matrix.md index b6d11455..dc66589f 100644 --- a/n-api/n_api_version_matrix.md +++ b/n-api/n_api_version_matrix.md @@ -14,46 +14,43 @@ listed as supporting a later version.
- | - | - | + | 4 | +5 | +6 | +7 | |
---|---|---|---|---|---|---|---|---|
v10.x | -v10.0.0 | -v10.0.0 | -v10.0.0 | v10.16.0 | v10.17.0 | v10.20.0 | @@ -61,9 +58,6 @@ listed as supporting a later version.||
v11.x | -v11.0.0 | -v11.0.0 | -v11.0.0 | v11.8.0 | @@ -72,20 +66,14 @@ listed as supporting a later version. | |||
v12.x | v12.0.0 | -v12.0.0 | -v12.0.0 | -v12.0.0 | v12.11.0 | v12.17.0 | -+ | v12.19.0 |
v13.x | v13.0.0 | v13.0.0 | -v13.0.0 | -v13.0.0 | -v13.0.0 | v14.0.0 | v14.0.0 | v14.0.0 | -v14.0.0 | -v14.0.0 | -v14.0.0 | v14.12.0 |