GeezerVison is showing github.com — doc: simplify deprecation language · nodejs/node@73b8975
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: doc/api/crypto.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1875,7 +1875,7 @@ console.log(key.toString('hex')); // '3745e48...08d59ae' | 1875 | 1875 | ``` | 1876 | 1876 |
| 1877 | 1877 | The `crypto.DEFAULT_ENCODING` property may be used to change the way the | 1878 | | -`derivedKey` is returned. This property, however, has been deprecated and use | | 1878 | +`derivedKey` is returned. This property, however, is deprecated and use | 1879 | 1879 | should be avoided. | 1880 | 1880 |
| 1881 | 1881 | ```js | |
Collapse file Copy file name to clipboardExpand all lines: doc/api/deprecations.md +4-4Lines changed: 4 additions & 4 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -192,7 +192,7 @@ The [`fs.readSync()`][] legacy `String` interface is deprecated. Use the | 192 | 192 |
| 193 | 193 | Type: Runtime | 194 | 194 |
| 195 | | -The `GLOBAL` and `root` aliases for the `global` property have been deprecated | | 195 | +The `GLOBAL` and `root` aliases for the `global` property are deprecated | 196 | 196 | and should no longer be used. | 197 | 197 |
| 198 | 198 | <a id="DEP0017"></a> | @@ -581,7 +581,7 @@ removed. Please use `sloppy` instead. | 581 | 581 | Type: Documentation-only | 582 | 582 |
| 583 | 583 | The `http` module `outgoingMessage._headers` and `outgoingMessage._headerNames` | 584 | | -properties have been deprecated. Please instead use one of the public methods | | 584 | +properties are deprecated. Use one of the public methods | 585 | 585 | (e.g. `outgoingMessage.getHeader()`, `outgoingMessage.getHeaders()`, | 586 | 586 | `outgoingMessage.getHeaderNames()`, `outgoingMessage.hasHeader()`, | 587 | 587 | `outgoingMessage.removeHeader()`, `outgoingMessage.setHeader()`) for working | @@ -730,15 +730,15 @@ may be specified. | 730 | 730 | Type: Documentation-only | 731 | 731 |
| 732 | 732 | The internal `path._makeLong()` was not intended for public use. However, | 733 | | -userland modules have found it useful. The internal API has been deprecated | | 733 | +userland modules have found it useful. The internal API is deprecated | 734 | 734 | and replaced with an identical, public `path.toNamespacedPath()` method. | 735 | 735 |
| 736 | 736 | <a id="DEP0081"></a> | 737 | 737 | ### DEP0081: fs.truncate() using a file descriptor | 738 | 738 |
| 739 | 739 | Type: Runtime | 740 | 740 |
| 741 | | -`fs.truncate()` `fs.truncateSync()` usage with a file descriptor has been | | 741 | +`fs.truncate()` `fs.truncateSync()` usage with a file descriptor is | 742 | 742 | deprecated. Please use `fs.ftruncate()` or `fs.ftruncateSync()` to work with | 743 | 743 | file descriptors. | 744 | 744 |
| |
Collapse file Copy file name to clipboardExpand all lines: doc/api/events.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -142,7 +142,7 @@ myEmitter.emit('error', new Error('whoops!')); | 142 | 142 | ``` | 143 | 143 |
| 144 | 144 | To guard against crashing the Node.js process the [`domain`][] module can be | 145 | | -used. (Note, however, that the `domain` module has been deprecated.) | | 145 | +used. (Note, however, that the `domain` module is deprecated.) | 146 | 146 |
| 147 | 147 | As a best practice, listeners should always be added for the `'error'` events. | 148 | 148 |
| |
Collapse file Copy file name to clipboardExpand all lines: doc/api/process.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -205,7 +205,7 @@ added: v1.4.1 | 205 | 205 | changes: | 206 | 206 | - version: v7.0.0 | 207 | 207 | pr-url: https://github.com/nodejs/node/pull/8217 | 208 | | - description: Not handling `Promise` rejections has been deprecated. | | 208 | + description: Not handling `Promise` rejections is deprecated. | 209 | 209 | - version: v6.6.0 | 210 | 210 | pr-url: https://github.com/nodejs/node/pull/8223 | 211 | 211 | description: Unhandled `Promise` rejections will now emit | |
Collapse file Copy file name to clipboardExpand all lines: doc/api/tls.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1269,7 +1269,7 @@ deprecated: v0.11.3 | 1269 | 1269 | > Stability: 0 - Deprecated: Use [`tls.TLSSocket`][] instead. | 1270 | 1270 |
| 1271 | 1271 | The `tls.CryptoStream` class represents a stream of encrypted data. This class | 1272 | | -has been deprecated and should no longer be used. | | 1272 | +is deprecated and should no longer be used. | 1273 | 1273 |
| 1274 | 1274 | #### cryptoStream.bytesWritten | 1275 | 1275 | <!-- YAML | |
Collapse file Copy file name to clipboardExpand all lines: doc/api/util.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1595,7 +1595,7 @@ util.types.isWebAssemblyCompiledModule(module); // Returns true | 1595 | 1595 |
| 1596 | 1596 | ## Deprecated APIs | 1597 | 1597 |
| 1598 | | -The following APIs have been deprecated and should no longer be used. Existing | | 1598 | +The following APIs are deprecated and should no longer be used. Existing | 1599 | 1599 | applications and modules should be updated to find alternative approaches. | 1600 | 1600 |
| 1601 | 1601 | ### util.\_extend(target, source) | |
|