fs: glob is stable, so should not emit experimental warnings

PR-URL: https://github.com/nodejs/node/pull/58236
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Théo LUDWIG 2025-05-10 16:37:27 +02:00 committed by GitHub
parent f8809cef63
commit 6710c00e56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 0 additions and 8 deletions

View File

@ -84,7 +84,6 @@ const {
const { toPathIfFileURL } = require('internal/url');
const {
customPromisifyArgs: kCustomPromisifyArgsSymbol,
emitExperimentalWarning,
getLazy,
kEmptyObject,
promisify: {
@ -3165,7 +3164,6 @@ function createWriteStream(path, options) {
const lazyGlob = getLazy(() => require('internal/fs/glob').Glob);
function glob(pattern, options, callback) {
emitExperimentalWarning('glob');
if (typeof options === 'function') {
callback = options;
options = undefined;
@ -3185,7 +3183,6 @@ function glob(pattern, options, callback) {
}
function globSync(pattern, options) {
emitExperimentalWarning('globSync');
const Glob = lazyGlob();
return new Glob(pattern, options).globSync();
}

View File

@ -93,7 +93,6 @@ const pathModule = require('path');
const { isAbsolute } = pathModule;
const { toPathIfFileURL } = require('internal/url');
const {
emitExperimentalWarning,
getLazy,
kEmptyObject,
lazyDOMException,
@ -1261,7 +1260,6 @@ async function* _watch(filename, options = kEmptyObject) {
const lazyGlob = getLazy(() => require('internal/fs/glob').Glob);
async function* glob(pattern, options) {
emitExperimentalWarning('glob');
const Glob = lazyGlob();
yield* new Glob(pattern, options).glob();
}

View File

@ -53,7 +53,6 @@ const {
} = require('internal/validators');
const {
emitExperimentalWarning,
isWindows,
getLazy,
} = require('internal/util');
@ -1141,7 +1140,6 @@ const win32 = {
},
matchesGlob(path, pattern) {
emitExperimentalWarning('glob');
return lazyMatchGlobPattern()(path, pattern, true);
},
@ -1618,7 +1616,6 @@ const posix = {
},
matchesGlob(path, pattern) {
emitExperimentalWarning('glob');
return lazyMatchGlobPattern()(path, pattern, false);
},