| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 705bcc2 commit 968e2f4
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2394,19 +2394,22 @@ unavailable when the [permission model][] is enabled. | |||
| 2394 | 2394 | ||
| 2395 | 2395 | <!-- YAML | |
| 2396 | 2396 | changes: | |
| 2397 | + - version: REPLACEME | ||
| 2398 | + pr-url: https://github.com/nodejs/node/pull/58474 | ||
| 2399 | + description: End-of-Life. | ||
| 2397 | 2400 | - version: v11.0.0 | |
| 2398 | 2401 | pr-url: https://github.com/nodejs/node/pull/22011 | |
| 2399 | 2402 | description: Runtime deprecation. | |
| 2400 | 2403 | --> | |
| 2401 | 2404 | ||
| 2402 | - Type: Runtime | ||
| 2405 | + Type: End-of-Life | ||
| 2403 | 2406 | ||
| 2404 | 2407 | The `node:dgram` module previously contained several APIs that were never meant | |
| 2405 | 2408 | to accessed outside of Node.js core: `Socket.prototype._handle`, | |
| 2406 | 2409 | `Socket.prototype._receiving`, `Socket.prototype._bindState`, | |
| 2407 | 2410 | `Socket.prototype._queue`, `Socket.prototype._reuseAddr`, | |
| 2408 | 2411 | `Socket.prototype._healthCheck()`, `Socket.prototype._stopReceiving()`, and | |
| 2409 | - `dgram._createSocketHandle()`. | ||
| 2412 | + `dgram._createSocketHandle()`. These have been removed. | ||
| 2410 | 2413 | ||
| 2411 | 2414 | ### DEP0113: `Cipher.setAuthTag()`, `Decipher.getAuthTag()` | |
| 2412 | 2415 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -53,7 +53,6 @@ const { | |||
| 53 | 53 | } = require('internal/errors'); | |
| 54 | 54 | const { | |
| 55 | 55 | kStateSymbol, | |
| 56 | - _createSocketHandle, | ||
| 57 | 56 | newHandle, | |
| 58 | 57 | } = require('internal/dgram'); | |
| 59 | 58 | const { isIP } = require('internal/net'); | |
@@ -66,7 +65,7 @@ const { | |||
| 66 | 65 | validateUint32, | |
| 67 | 66 | } = require('internal/validators'); | |
| 68 | 67 | const { Buffer } = require('buffer'); | |
| 69 | - const { deprecate, guessHandleType, promisify } = require('internal/util'); | ||
| 68 | + const { guessHandleType, promisify } = require('internal/util'); | ||
| 70 | 69 | const { isArrayBufferView } = require('internal/util/types'); | |
| 71 | 70 | const EventEmitter = require('events'); | |
| 72 | 71 | const { addAbortListener } = require('internal/events/abort_listener'); | |
@@ -1044,72 +1043,6 @@ Socket.prototype.getSendQueueCount = function() { | |||
| 1044 | 1043 | return this[kStateSymbol].handle.getSendQueueCount(); | |
| 1045 | 1044 | }; | |
| 1046 | 1045 | ||
| 1047 | - // Deprecated private APIs. | ||
| 1048 | - ObjectDefineProperty(Socket.prototype, '_handle', { | ||
| 1049 | - __proto__: null, | ||
| 1050 | - get: deprecate(function() { | ||
| 1051 | - return this[kStateSymbol].handle; | ||
| 1052 | - }, 'Socket.prototype._handle is deprecated', 'DEP0112'), | ||
| 1053 | - set: deprecate(function(val) { | ||
| 1054 | - this[kStateSymbol].handle = val; | ||
| 1055 | - }, 'Socket.prototype._handle is deprecated', 'DEP0112'), | ||
| 1056 | - }); | ||
| 1057 | - | ||
| 1058 | - | ||
| 1059 | - ObjectDefineProperty(Socket.prototype, '_receiving', { | ||
| 1060 | - __proto__: null, | ||
| 1061 | - get: deprecate(function() { | ||
| 1062 | - return this[kStateSymbol].receiving; | ||
| 1063 | - }, 'Socket.prototype._receiving is deprecated', 'DEP0112'), | ||
| 1064 | - set: deprecate(function(val) { | ||
| 1065 | - this[kStateSymbol].receiving = val; | ||
| 1066 | - }, 'Socket.prototype._receiving is deprecated', 'DEP0112'), | ||
| 1067 | - }); | ||
| 1068 | - | ||
| 1069 | - | ||
| 1070 | - ObjectDefineProperty(Socket.prototype, '_bindState', { | ||
| 1071 | - __proto__: null, | ||
| 1072 | - get: deprecate(function() { | ||
| 1073 | - return this[kStateSymbol].bindState; | ||
| 1074 | - }, 'Socket.prototype._bindState is deprecated', 'DEP0112'), | ||
| 1075 | - set: deprecate(function(val) { | ||
| 1076 | - this[kStateSymbol].bindState = val; | ||
| 1077 | - }, 'Socket.prototype._bindState is deprecated', 'DEP0112'), | ||
| 1078 | - }); | ||
| 1079 | - | ||
| 1080 | - | ||
| 1081 | - ObjectDefineProperty(Socket.prototype, '_queue', { | ||
| 1082 | - __proto__: null, | ||
| 1083 | - get: deprecate(function() { | ||
| 1084 | - return this[kStateSymbol].queue; | ||
| 1085 | - }, 'Socket.prototype._queue is deprecated', 'DEP0112'), | ||
| 1086 | - set: deprecate(function(val) { | ||
| 1087 | - this[kStateSymbol].queue = val; | ||
| 1088 | - }, 'Socket.prototype._queue is deprecated', 'DEP0112'), | ||
| 1089 | - }); | ||
| 1090 | - | ||
| 1091 | - | ||
| 1092 | - ObjectDefineProperty(Socket.prototype, '_reuseAddr', { | ||
| 1093 | - __proto__: null, | ||
| 1094 | - get: deprecate(function() { | ||
| 1095 | - return this[kStateSymbol].reuseAddr; | ||
| 1096 | - }, 'Socket.prototype._reuseAddr is deprecated', 'DEP0112'), | ||
| 1097 | - set: deprecate(function(val) { | ||
| 1098 | - this[kStateSymbol].reuseAddr = val; | ||
| 1099 | - }, 'Socket.prototype._reuseAddr is deprecated', 'DEP0112'), | ||
| 1100 | - }); | ||
| 1101 | - | ||
| 1102 | - | ||
| 1103 | - Socket.prototype._healthCheck = deprecate(function() { | ||
| 1104 | - healthCheck(this); | ||
| 1105 | - }, 'Socket.prototype._healthCheck() is deprecated', 'DEP0112'); | ||
| 1106 | - | ||
| 1107 | - | ||
| 1108 | - Socket.prototype._stopReceiving = deprecate(function() { | ||
| 1109 | - stopReceiving(this); | ||
| 1110 | - }, 'Socket.prototype._stopReceiving() is deprecated', 'DEP0112'); | ||
| 1111 | - | ||
| 1112 | - | ||
| 1113 | 1046 | // Legacy alias on the C++ wrapper object. This is not public API, so we may | |
| 1114 | 1047 | // want to runtime-deprecate it at some point. There's no hurry, though. | |
| 1115 | 1048 | ObjectDefineProperty(UDP.prototype, 'owner', { | |
@@ -1118,13 +1051,7 @@ ObjectDefineProperty(UDP.prototype, 'owner', { | |||
| 1118 | 1051 | set(v) { return this[owner_symbol] = v; }, | |
| 1119 | 1052 | }); | |
| 1120 | 1053 | ||
| 1121 | - | ||
| 1122 | 1054 | module.exports = { | |
| 1123 | - _createSocketHandle: deprecate( | ||
| 1124 | - _createSocketHandle, | ||
| 1125 | - 'dgram._createSocketHandle() is deprecated', | ||
| 1126 | - 'DEP0112', | ||
| 1127 | - ), | ||
| 1128 | 1055 | createSocket, | |
| 1129 | 1056 | Socket, | |
| 1130 | 1057 | }; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,11 +5,10 @@ if (common.isWindows) | |||
| 5 | 5 | common.skip('Does not support binding fd on Windows'); | |
| 6 | 6 | ||
| 7 | 7 | const assert = require('assert'); | |
| 8 | - const dgram = require('dgram'); | ||
| 8 | + const { _createSocketHandle } = require('internal/dgram'); | ||
| 9 | 9 | const { internalBinding } = require('internal/test/binding'); | |
| 10 | 10 | const { UDP } = internalBinding('udp_wrap'); | |
| 11 | 11 | const { TCP, constants } = internalBinding('tcp_wrap'); | |
| 12 | - const _createSocketHandle = dgram._createSocketHandle; | ||
| 13 | 12 | ||
| 14 | 13 | // Return a negative number if the "existing fd" is invalid. | |
| 15 | 14 | { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments