Skip to content

Commit 6045c34

Browse files
authored
chore: update globby to v15 (#1354)
1 parent a4d1bc2 commit 6045c34

File tree

9 files changed

+280
-184
lines changed

9 files changed

+280
-184
lines changed

.size-limit.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"README.md",
2020
"LICENSE"
2121
],
22-
"limit": "128.80 kB",
22+
"limit": "128.81 kB",
2323
"brotli": false,
2424
"gzip": false
2525
},
@@ -33,21 +33,21 @@
3333
"build/globals.js",
3434
"build/deno.js"
3535
],
36-
"limit": "817.2 kB",
36+
"limit": "820.20 kB",
3737
"brotli": false,
3838
"gzip": false
3939
},
4040
{
4141
"name": "libdefs",
4242
"path": "build/*.d.ts",
43-
"limit": "40.65 kB",
43+
"limit": "41.355 kB",
4444
"brotli": false,
4545
"gzip": false
4646
},
4747
{
4848
"name": "vendor",
4949
"path": "build/vendor-*.{cjs,d.ts}",
50-
"limit": "767.70 kB",
50+
"limit": "771.40 kB",
5151
"brotli": false,
5252
"gzip": false
5353
},
@@ -66,7 +66,7 @@
6666
"README.md",
6767
"LICENSE"
6868
],
69-
"limit": "874.70 kB",
69+
"limit": "878.45 kB",
7070
"brotli": false,
7171
"gzip": false
7272
}

build/3rd-party-licenses

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ THIRD PARTY LICENSES
1515
https://github.com/nodelib/nodelib/tree/master/packages/fs/fs.walk
1616
MIT
1717

18-
@sindresorhus/merge-streams@2.3.0
18+
@sindresorhus/merge-streams@4.0.0
1919
Sindre Sorhus <[email protected]>
2020
sindresorhus/merge-streams
2121
MIT
@@ -70,7 +70,7 @@ [email protected]
7070
gulpjs/glob-parent
7171
ISC
7272

73-
globby@14.1.0
73+
globby@15.0.0
7474
Sindre Sorhus <[email protected]>
7575
sindresorhus/globby
7676
MIT
@@ -145,7 +145,7 @@ [email protected]
145145
github:eemeli/yaml
146146
ISC
147147

148-
148+
149149
Anton Golub <[email protected]>
150150
git+https://github.com/webpod/zurk.git
151151
MIT

build/index.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ var versions = {
6060
dotenv: "0.2.3",
6161
fetch: "1.6.7",
6262
fs: "11.3.2",
63-
glob: "14.1.0",
63+
glob: "15.0.0",
6464
minimist: "1.2.8",
6565
ps: "1.0.0",
6666
which: "5.0.0",

build/util.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export declare const getLast: <T>(arr: {
1313
}) => T;
1414
export declare function preferLocalBin(env: NodeJS.ProcessEnv, ...dirs: (string | undefined)[]): {
1515
[x: string]: string | undefined;
16-
TZ?: string;
16+
TZ?: string | undefined;
1717
};
1818
export declare function quote(arg: string): string;
1919
export declare function quotePowerShell(arg: string): string;

build/vendor-extra.cjs

Lines changed: 170 additions & 86 deletions
Large diffs are not rendered by default.

build/vendor-extra.d.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,8 @@ type Options$1 = {
266266
/**
267267
Respect ignore patterns in `.gitignore` files that apply to the globbed files.
268268
269+
Performance note: This option searches for all `.gitignore` files in the entire directory tree before globbing, which can be slow. For better performance, use `ignoreFiles: '.gitignore'` to only respect the root `.gitignore` file.
270+
269271
@default false
270272
*/
271273
readonly gitignore?: boolean;
@@ -274,6 +276,8 @@ type Options$1 = {
274276
275277
This is a more generic form of the `gitignore` option, allowing you to find ignore files with a [compatible syntax](http://git-scm.com/docs/gitignore). For instance, this works with Babel's `.babelignore`, Prettier's `.prettierignore`, or ESLint's `.eslintignore` files.
276278
279+
Performance tip: Using a specific path like `'.gitignore'` is much faster than recursive patterns.
280+
277281
@default undefined
278282
*/
279283
readonly ignoreFiles?: string | readonly string[];
@@ -288,6 +292,11 @@ type GitignoreOptions = {
288292
readonly cwd?: URL | string;
289293
};
290294
type GlobbyFilterFunction = (path: URL | string) => boolean;
295+
type AsyncIterableReadable<Value> = Omit<NodeJS.ReadableStream, typeof Symbol.asyncIterator> & {
296+
[Symbol.asyncIterator](): NodeJS.AsyncIterator<Value>;
297+
};
298+
type GlobbyStream = AsyncIterableReadable<string>;
299+
type GlobbyEntryStream = AsyncIterableReadable<GlobEntry>;
291300
declare function globby(patterns: string | readonly string[], options: Options$1 & {
292301
objectMode: true;
293302
}): Promise<GlobEntry[]>;
@@ -296,7 +305,10 @@ declare function globbySync(patterns: string | readonly string[], options: Optio
296305
objectMode: true;
297306
}): GlobEntry[];
298307
declare function globbySync(patterns: string | readonly string[], options?: Options$1): string[];
299-
declare function globbyStream(patterns: string | readonly string[], options?: Options$1): NodeJS.ReadableStream;
308+
declare function globbyStream(patterns: string | readonly string[], options: Options$1 & {
309+
objectMode: true;
310+
}): GlobbyEntryStream;
311+
declare function globbyStream(patterns: string | readonly string[], options?: Options$1): GlobbyStream;
300312
declare function generateGlobTasks(patterns: string | readonly string[], options?: Options$1): Promise<GlobTask[]>;
301313
declare function generateGlobTasksSync(patterns: string | readonly string[], options?: Options$1): GlobTask[];
302314
declare function isDynamicPattern(patterns: string | readonly string[], options?: FastGlobOptionsWithoutCwd & {

0 commit comments

Comments
 (0)