Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade minimatch from v3 to v9 #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/build-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"@types/glob": "7.2.0",
"@types/jest": "27.4.1",
"@types/js-yaml": "3.12.1",
"@types/minimatch": "^5.1.2",
"@types/ms": "0.7.31",
"@types/multistream": "2.1.1",
"@types/node": "14.18.33",
Expand All @@ -46,7 +45,7 @@
"into-stream": "5.0.0",
"jest-junit": "16.0.0",
"js-yaml": "3.13.1",
"minimatch": "3.1.2",
"minimatch": "9.0.5",
"multistream": "2.1.1",
"node-fetch": "2.6.7",
"semver": "6.3.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/build-utils/src/lambda.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import assert from 'assert';
import Sema from 'async-sema';
import { ZipFile } from 'yazl';
import minimatch from 'minimatch';
import { minimatch } from 'minimatch';
import { readlink } from 'fs-extra';
import { isSymbolicLink, isDirectory } from './fs/download';
import streamToBuffer from './fs/stream-to-buffer';
Expand Down
3 changes: 1 addition & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
"@types/json-parse-better-errors": "1.0.0",
"@types/load-json-file": "2.0.7",
"@types/mime-types": "2.1.0",
"@types/minimatch": "3.0.3",
"@types/ms": "0.7.30",
"@types/node": "14.18.33",
"@types/node-fetch": "2.5.10",
Expand Down Expand Up @@ -143,7 +142,7 @@
"line-async-iterator": "3.0.0",
"load-json-file": "3.0.0",
"mime-types": "2.1.24",
"minimatch": "3.1.2",
"minimatch": "9.0.5",
"ms": "2.1.2",
"node-fetch": "2.6.7",
"npm-package-arg": "6.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import fs from 'fs-extra';
import chalk from 'chalk';
import dotenv from 'dotenv';
import semver from 'semver';
import minimatch from 'minimatch';
import { minimatch } from 'minimatch';
import { join, normalize, relative, resolve, sep } from 'path';
import { frameworkList, type Framework } from '@vercel/frameworks';
import {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/util/build/static-builder.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import minimatch from 'minimatch';
import { minimatch } from 'minimatch';
import { shouldServe as defaultShouldServe } from '@vercel/build-utils';
import type { BuildV2, Files, ShouldServe } from '@vercel/build-utils';

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/util/dev/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
} from '@vercel/build-utils';
import { isStaticRuntime } from '@vercel/fs-detectors';
import plural from 'pluralize';
import minimatch from 'minimatch';
import { minimatch } from 'minimatch';

import { Output } from '../output';
import highlight from '../output/highlight';
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/util/dev/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import fetch from 'node-fetch';
import plural from 'pluralize';
import rawBody from 'raw-body';
import { listen } from 'async-listen';
import minimatch from 'minimatch';
import { minimatch } from 'minimatch';
import httpProxy from 'http-proxy';
import { randomBytes } from 'crypto';
import serveHandler from 'serve-handler';
Expand Down
3 changes: 1 addition & 2 deletions packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"@types/async-retry": "1.4.5",
"@types/fs-extra": "7.0.0",
"@types/jest": "27.4.1",
"@types/minimatch": "3.0.5",
"@types/ms": "0.7.30",
"@types/node": "14.18.33",
"@types/node-fetch": "2.5.4",
Expand All @@ -44,7 +43,7 @@
"async-sema": "3.0.0",
"fs-extra": "8.0.1",
"ignore": "4.0.6",
"minimatch": "5.0.1",
"minimatch": "9.0.5",
"ms": "2.1.2",
"node-fetch": "2.6.7",
"querystring": "^0.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/utils/readdir-recursive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ THE SOFTWARE.

import fs from 'fs';
import p from 'path';
import minimatch from 'minimatch';
import { minimatch } from 'minimatch';

function patternMatcher(pattern: string) {
return function (path: string, stats: fs.Stats) {
Expand Down
3 changes: 1 addition & 2 deletions packages/fs-detectors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,13 @@
"glob": "8.0.3",
"js-yaml": "4.1.0",
"json5": "2.2.2",
"minimatch": "3.1.2",
"minimatch": "9.0.5",
"semver": "6.3.1"
},
"devDependencies": {
"@types/glob": "7.2.0",
"@types/jest": "27.5.1",
"@types/js-yaml": "4.0.5",
"@types/minimatch": "3.0.5",
"@types/node": "14.18.33",
"@types/semver": "7.3.10",
"@vercel/build-utils": "8.4.11",
Expand Down
2 changes: 1 addition & 1 deletion packages/fs-detectors/src/detect-builders.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import minimatch from 'minimatch';
import { minimatch } from 'minimatch';
import { valid as validSemver } from 'semver';
import { parse as parsePath, extname } from 'path';
import type { Route, RouteWithSrc } from '@vercel/routing-utils';
Expand Down
58 changes: 10 additions & 48 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.