Italian Translation Report: Node.js [Part 45 - 1365 words]

Oct 16th, 2018
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.38 KB | None | 0 0
  1. Deprecated APIs
  2. Node.js may deprecate APIs when either: use of the API is considered to be unsafe, an improved alternative API has been made available, or breaking changes to the API are expected in a future major release.
  3. Node.js utilizes three kinds of Deprecations:
  4. Documentation-only
  5. Runtime
  6. End-of-Life
  7. A Documentation-only deprecation is one that is expressed only within the Node.js API docs.
  8. These generate no side-effects while running Node.js. Some Documentation-only deprecations trigger a runtime warning when launched with flag (or its alternative, environment variable), similarly to Runtime deprecations below.
  9. Documentation-only deprecations that support that flag are explicitly labeled as such in the list of Deprecated APIs
  10. A Runtime deprecation will, by default, generate a process warning that will be printed to the first time the deprecated API is used.
  11. When the command-line flag is used, a Runtime deprecation will cause an error to be thrown.
  12. An End-of-Life deprecation is used to identify code that either has been removed or will soon be removed from Node.js.
  13. Revoking deprecations
  14. Occasionally, the deprecation of an API may be reversed.
  15. In such situations, this document will be updated with information relevant to the decision.
  16. However, the deprecation identifier will not be modified.
  17. List of Deprecated APIs
  18. The method is deprecated.
  19. Use instead
  20. Please use a userland alternative.
  21. The property is deprecated.
  22. The property is deprecated and should not be used.
  23. The function and constructor are deprecated due to API usability issues that can potentially lead to accidental security issues.
  24. As an alternative, use of the following methods of constructing objects is strongly recommended:
  25. Create a with initialized memory.
  26. Create a with a copy of
  27. Create a that wraps the given
  28. Create a that copies
  29. As of v10.0.0, a deprecation warning is printed at runtime when is used or when the calling code is
  30. outside in order to better target developers, rather than users.
  31. Within the module's and methods, the option is deprecated.
  32. In an earlier version of the Node.js, a boolean property with the name was added to the object.
  33. The intent of this property was to provide an indication of how and why the instance exited.
  34. In Node.js 6.0.0, the old property was deprecated and replaced with a new property.
  35. The old property name did not precisely describe the actual semantics and was unnecessarily emotion-laden.
  36. When requiring access to constants relevant to specific Node.js builtin modules, developers should instead refer to the property exposed by the relevant module.
  37. For instance, and
  38. Use of the API without specifying a digest was deprecated in Node.js 6.0 because the method defaulted to using the non-recommended digest.
  39. Previously, a deprecation warning was printed.
  40. Starting in Node.js 8.0.0, calling or with an undefined will throw a
  41. has been removed.
  42. Recover from failed I/O actions explicitly via error event handlers set on the domain instead.
  43. asynchronous function without callback
  44. Calling an asynchronous function without a callback throws a in Node.js 10.0.0 onwards.
  45. The legacy interface is deprecated.
  46. Use the API as mentioned in the documentation instead.
  47. The and aliases for the property have been deprecated and should no longer be used.
  48. was a non-standard extension and has been removed.
  49. Unhandled promise rejections are deprecated.
  50. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
  51. In certain cases, may resolve outside the package directory.
  52. This behavior is deprecated and will be removed in a future major Node.js release.
  53. The method is now deprecated as its inclusion in the API is not useful.
  54. The environment variable was removed.
  55. activates the legacy V8 debugger interface, which has been removed as of V8 5.8. It is replaced by Inspector which is activated with instead.
  56. The method was never documented as an officially supported API.
  57. The API was deprecated in documentation in Node.js 0.11.3. Users should use instead.
  58. The module's constant, used for option, has been removed.
  59. Its behavior has been functionally identical to that of since Node.js 6.0.0, when V8 5.0 was imported.
  60. The environment variable is used to set the underlying of an interactive session.
  61. Its value, is also removed.
  62. Please instead use one of the public methods for working with outgoing headers.
  63. The and properties were never documented as officially supported properties.
  64. corresponds to the legacy CLI debugger which has been replaced with a V8-inspector based CLI debugger available through
  65. has been removed in V8 and is not available in Node.js
  66. was an experimental API.
  67. was renamed to for clarity.
  68. This change was made while was an experimental API.
  69. Accessing several internal, undocumented properties of instances with inappropriate names has been deprecated.
  70. As the original API was undocumented and not generally useful for non-internal code, no replacement API is provided.
  71. was removed from userland visibility.
  72. is a trivial parsing helper that was made public by mistake. This function can usually be replaced with:
  73. This function is not completely equivalent to
  74. One difference is that does url decoding:
  75. Using a property named on an object to specify a custom inspection function for is deprecated.
  76. For backward compatibility with Node.js prior to version 6.4.0, both may be specified.
  77. The internal was not intended for public use.
  78. However, userland modules have found it useful.
  79. The internal API has been deprecated and replaced with an identical, public method.
  80. usage with a file descriptor has been deprecated.
  81. Please use or to work with file descriptors.
  82. is only necessary for the internal mechanics of the itself. Do not use this function.
  83. The option to and could be set to to disable ECDH entirely on the server only
  84. This mode is deprecated in preparation for migrating to OpenSSL 1.1.0 and consistency with the client.
  85. Use the parameter instead.
  86. requiring bundled internal dependencies
  87. Since Node.js versions 4.4.0 and 5.2.0, several modules only intended for internal usage are mistakenly exposed to user code through
  88. These modules are:
  89. The modules do not have any exports, and if not imported in a specific order would in fact throw errors.
  90. As such there are virtually no legitimate usecases for importing them through
  91. On the other hand, may be installed locally through a package manager, as it is published on the npm registry under the same name.
  92. No source code modification is necessary if that is done.
  93. doesn't emit the or event and can thus cause a lot of issues.
  94. Importing assert directly is not recommended as the exposed functions will use loose equality checks.
  95. The API is the same as the legacy assert but it will always use strict equality checks.
  96. Node.js supports all GCM authentication tag lengths which are accepted by OpenSSL when calling
  97. This behavior will change in a future version at which point only authentication tag lengths of and bits will be allowed.
  98. Authentication tags whose length is not included in this list will be considered invalid in compliance with
  99. Users of that add the property to carry context, should start using the variant of or or the high-level class.
  100. The embedded API provided by AsyncHooks exposes and methods which are very easy to use incorrectly which can lead to unrecoverable errors.
  101. Use API instead which provides a much safer, and more convenient, alternative.
  102. All input is going to be verified, no matter if it is set to true or not. Skipping the verification could lead to hard to find errors and crashes.
  103. When assigning a non-string property to, the assigned value is implicitly converted to a string.
  104. This behavior is deprecated if the assigned value is not a string, boolean, or number.
  105. In the future, such assignment may result in a thrown error.
  106. Please convert the property to a string before assigning it to
  107. Using and should be avoided as they use a weak key derivation function (MD5 with no salt) and static initialization vectors.
  108. It is recommended to derive a key using and to use and to obtain the and objects respectively.
  109. This was an undocumented helper function not intended for use outside Node.js core and obsoleted by the removal of NPN (Next Protocol Negotiation) support.
  110. This original name was chosen because it also made sense to interpret the value as the number of bytes read by the engine, but is inconsistent with other streams in Node.js that expose values under these names.
Add Comment
Please, Sign In to add comment