| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a273674 commit 4e06a64
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3143,18 +3143,21 @@ an explicit [`"exports"` or `"main"` entry][] with the exact file extension. | |||
| 3143 | 3143 | ||
| 3144 | 3144 | <!-- YAML | |
| 3145 | 3145 | changes: | |
| 3146 | + - version: REPLACEME | ||
| 3147 | + pr-url: https://github.com/nodejs/node/pull/58531 | ||
| 3148 | + description: End-of-Life. | ||
| 3146 | 3149 | - version: v16.0.0 | |
| 3147 | 3150 | pr-url: https://github.com/nodejs/node/pull/37136 | |
| 3148 | 3151 | description: Runtime deprecation. | |
| 3149 | 3152 | --> | |
| 3150 | 3153 | ||
| 3151 | - Type: Runtime | ||
| 3154 | + Type: End-of-Life | ||
| 3152 | 3155 | ||
| 3153 | - The `'gc'`, `'http2'`, and `'http'` {PerformanceEntry} object types have | ||
| 3156 | + The `'gc'`, `'http2'`, and `'http'` {PerformanceEntry} object types used to have | ||
| 3154 | 3157 | additional properties assigned to them that provide additional information. | |
| 3155 | 3158 | These properties are now available within the standard `detail` property | |
| 3156 | - of the `PerformanceEntry` object. The existing accessors have been | ||
| 3157 | - deprecated and should no longer be used. | ||
| 3159 | + of the `PerformanceEntry` object. The deprecated accessors have been | ||
| 3160 | + removed. | ||
| 3158 | 3161 | ||
| 3159 | 3162 | ### DEP0153: `dns.lookup` and `dnsPromises.lookup` options type coercion | |
| 3160 | 3163 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,7 +14,6 @@ const { | |||
| 14 | 14 | MathMin, | |
| 15 | 15 | ObjectDefineProperties, | |
| 16 | 16 | ObjectFreeze, | |
| 17 | - ObjectKeys, | ||
| 18 | 17 | SafeMap, | |
| 19 | 18 | SafeSet, | |
| 20 | 19 | Symbol, | |
@@ -57,7 +56,6 @@ const { | |||
| 57 | 56 | ||
| 58 | 57 | const { | |
| 59 | 58 | customInspectSymbol: kInspect, | |
| 60 | - deprecate, | ||
| 61 | 59 | lazyDOMException, | |
| 62 | 60 | kEmptyObject, | |
| 63 | 61 | kEnumerableProperty, | |
@@ -74,11 +72,6 @@ const { now } = require('internal/perf/utils'); | |||
| 74 | 72 | const kBuffer = Symbol('kBuffer'); | |
| 75 | 73 | const kDispatch = Symbol('kDispatch'); | |
| 76 | 74 | const kMaybeBuffer = Symbol('kMaybeBuffer'); | |
| 77 | - const kDeprecatedFields = Symbol('kDeprecatedFields'); | ||
| 78 | - | ||
| 79 | - const kDeprecationMessage = | ||
| 80 | - 'Custom PerformanceEntry accessors are deprecated. ' + | ||
| 81 | - 'Please use the detail property.'; | ||
| 82 | 75 | ||
| 83 | 76 | const kTypeSingle = 0; | |
| 84 | 77 | const kTypeMultiple = 1; | |
@@ -536,32 +529,6 @@ function observerCallback(name, type, startTime, duration, details) { | |||
| 536 | 529 | duration, | |
| 537 | 530 | details); | |
| 538 | 531 | ||
| 539 | - if (details !== undefined) { | ||
| 540 | - // GC, HTTP2, and HTTP PerformanceEntry used additional | ||
| 541 | - // properties directly off the entry. Those have been | ||
| 542 | - // moved into the details property. The existing accessors | ||
| 543 | - // are still included but are deprecated. | ||
| 544 | - entry[kDeprecatedFields] = new SafeMap(); | ||
| 545 | - | ||
| 546 | - const detailKeys = ObjectKeys(details); | ||
| 547 | - const props = {}; | ||
| 548 | - for (let n = 0; n < detailKeys.length; n++) { | ||
| 549 | - const key = detailKeys[n]; | ||
| 550 | - entry[kDeprecatedFields].set(key, details[key]); | ||
| 551 | - props[key] = { | ||
| 552 | - configurable: true, | ||
| 553 | - enumerable: true, | ||
| 554 | - get: deprecate(() => { | ||
| 555 | - return entry[kDeprecatedFields].get(key); | ||
| 556 | - }, kDeprecationMessage, 'DEP0152'), | ||
| 557 | - set: deprecate((value) => { | ||
| 558 | - entry[kDeprecatedFields].set(key, value); | ||
| 559 | - }, kDeprecationMessage, 'DEP0152'), | ||
| 560 | - }; | ||
| 561 | - } | ||
| 562 | - ObjectDefineProperties(entry, props); | ||
| 563 | - } | ||
| 564 | - | ||
| 565 | 532 | enqueue(entry); | |
| 566 | 533 | } | |
| 567 | 534 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,14 +16,6 @@ const obs = new PerformanceObserver(common.mustCallAtLeast((items) => { | |||
| 16 | 16 | assert.strictEqual(typeof entry.duration, 'number'); | |
| 17 | 17 | switch (entry.name) { | |
| 18 | 18 | case 'Http2Session': | |
| 19 | - assert.strictEqual(typeof entry.pingRTT, 'number'); | ||
| 20 | - assert.strictEqual(typeof entry.streamAverageDuration, 'number'); | ||
| 21 | - assert.strictEqual(typeof entry.streamCount, 'number'); | ||
| 22 | - assert.strictEqual(typeof entry.framesReceived, 'number'); | ||
| 23 | - assert.strictEqual(typeof entry.framesSent, 'number'); | ||
| 24 | - assert.strictEqual(typeof entry.bytesWritten, 'number'); | ||
| 25 | - assert.strictEqual(typeof entry.bytesRead, 'number'); | ||
| 26 | - assert.strictEqual(typeof entry.maxConcurrentStreams, 'number'); | ||
| 27 | 19 | assert.strictEqual(typeof entry.detail.pingRTT, 'number'); | |
| 28 | 20 | assert.strictEqual(typeof entry.detail.streamAverageDuration, 'number'); | |
| 29 | 21 | assert.strictEqual(typeof entry.detail.streamCount, 'number'); | |
@@ -32,7 +24,7 @@ const obs = new PerformanceObserver(common.mustCallAtLeast((items) => { | |||
| 32 | 24 | assert.strictEqual(typeof entry.detail.bytesWritten, 'number'); | |
| 33 | 25 | assert.strictEqual(typeof entry.detail.bytesRead, 'number'); | |
| 34 | 26 | assert.strictEqual(typeof entry.detail.maxConcurrentStreams, 'number'); | |
| 35 | - switch (entry.type) { | ||
| 27 | + switch (entry.detail.type) { | ||
| 36 | 28 | case 'server': | |
| 37 | 29 | assert.strictEqual(entry.detail.streamCount, 1); | |
| 38 | 30 | assert(entry.detail.framesReceived >= 3); | |
@@ -46,11 +38,6 @@ const obs = new PerformanceObserver(common.mustCallAtLeast((items) => { | |||
| 46 | 38 | } | |
| 47 | 39 | break; | |
| 48 | 40 | case 'Http2Stream': | |
| 49 | - assert.strictEqual(typeof entry.timeToFirstByte, 'number'); | ||
| 50 | - assert.strictEqual(typeof entry.timeToFirstByteSent, 'number'); | ||
| 51 | - assert.strictEqual(typeof entry.timeToFirstHeader, 'number'); | ||
| 52 | - assert.strictEqual(typeof entry.bytesWritten, 'number'); | ||
| 53 | - assert.strictEqual(typeof entry.bytesRead, 'number'); | ||
| 54 | 41 | assert.strictEqual(typeof entry.detail.timeToFirstByte, 'number'); | |
| 55 | 42 | assert.strictEqual(typeof entry.detail.timeToFirstByteSent, 'number'); | |
| 56 | 43 | assert.strictEqual(typeof entry.detail.timeToFirstHeader, 'number'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,9 +30,7 @@ const kinds = [ | |||
| 30 | 30 | assert(entry); | |
| 31 | 31 | assert.strictEqual(entry.name, 'gc'); | |
| 32 | 32 | assert.strictEqual(entry.entryType, 'gc'); | |
| 33 | - assert(kinds.includes(entry.kind)); | ||
| 34 | 33 | assert(kinds.includes(entry.detail.kind)); | |
| 35 | - assert.strictEqual(entry.flags, NODE_PERFORMANCE_GC_FLAGS_FORCED); | ||
| 36 | 34 | assert.strictEqual(entry.detail.flags, NODE_PERFORMANCE_GC_FLAGS_FORCED); | |
| 37 | 35 | assert.strictEqual(typeof entry.startTime, 'number'); | |
| 38 | 36 | assert(entry.startTime < 1e4, 'startTime should be relative to performance.timeOrigin.'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments