mirror of
https://github.com/nodejs/node.git
synced 2025-12-28 07:50:41 +00:00
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:
parent
f8809cef63
commit
6710c00e56
@ -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();
|
||||
}
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
@ -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);
|
||||
},
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user