From a7bc0c9fab4c5bd72933d20c52d719309f62608f Mon Sep 17 00:00:00 2001 From: James M Snell Date: Tue, 21 Dec 2021 11:59:17 -0800 Subject: [PATCH 1/3] buffer: graduate Blob from experimental It's time. Signed-off-by: James M Snell --- doc/api/buffer.md | 6 ++++-- lib/internal/blob.js | 2 -- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api/buffer.md b/doc/api/buffer.md index abe5c88bd81b6a..9ea44757b12911 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -456,10 +456,12 @@ Additionally, the [`buf.values()`][], [`buf.keys()`][], and added: - v15.7.0 - v14.18.0 +changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/00000 + description: No longer experimental. --> -> Stability: 1 - Experimental - A [`Blob`][] encapsulates immutable, raw data that can be safely shared across multiple worker threads. diff --git a/lib/internal/blob.js b/lib/internal/blob.js index e5ea99b0a965d2..3a45d58d7c179e 100644 --- a/lib/internal/blob.js +++ b/lib/internal/blob.js @@ -44,7 +44,6 @@ const { const { createDeferredPromise, customInspectSymbol: kInspect, - emitExperimentalWarning, } = require('internal/util'); const { inspect } = require('internal/util/inspect'); @@ -134,7 +133,6 @@ class Blob { * @constructs {Blob} */ constructor(sources = [], options = {}) { - emitExperimentalWarning('buffer.Blob'); if (sources === null || typeof sources[SymbolIterator] !== 'function' || typeof sources === 'string') { From 7806b916585386fcef870e4e0542d5135b925598 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Tue, 21 Dec 2021 12:05:26 -0800 Subject: [PATCH 2/3] buffer: expose Blob as a global `Blob` is defined as a global in the spec. We have WPT's for it, and it's graduated experimental. Time to expose it as a global. Signed-off-by: James M Snell --- .eslintrc.js | 1 + doc/api/globals.md | 10 ++++++++++ lib/.eslintrc.yaml | 2 ++ lib/internal/bootstrap/node.js | 7 +++++++ 4 files changed, 20 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index 91a9623c6d905f..890c1663025cf8 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -363,6 +363,7 @@ module.exports = { BigInt: 'readable', BigInt64Array: 'readable', BigUint64Array: 'readable', + Blob: 'readable', DOMException: 'readable', Event: 'readable', EventTarget: 'readable', diff --git a/doc/api/globals.md b/doc/api/globals.md index bb3ca66930e52d..f3a1d46d251300 100644 --- a/doc/api/globals.md +++ b/doc/api/globals.md @@ -199,6 +199,16 @@ added: v17.3.0 If `abortSignal.aborted` is `true`, throws `abortSignal.reason`. +## Class: `Blob` + + + + + +See {Blob}. + ## Class: `Buffer`