feat(misc): update minimatch version used across packages (#21207)

This commit is contained in:
Leosvel Pérez Espinosa 2024-01-18 19:08:15 +01:00 committed by GitHub
parent e4e7f54bfb
commit f98a16ff57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
29 changed files with 40 additions and 43 deletions

View File

@ -225,7 +225,7 @@
"metro-config": "0.76.8", "metro-config": "0.76.8",
"metro-resolver": "0.76.8", "metro-resolver": "0.76.8",
"mini-css-extract-plugin": "~2.4.7", "mini-css-extract-plugin": "~2.4.7",
"minimatch": "3.0.5", "minimatch": "9.0.3",
"next-sitemap": "^3.1.10", "next-sitemap": "^3.1.10",
"ng-packagr": "~17.0.0", "ng-packagr": "~17.0.0",
"node-fetch": "^2.6.7", "node-fetch": "^2.6.7",

View File

@ -52,7 +52,7 @@
"find-cache-dir": "^3.3.2", "find-cache-dir": "^3.3.2",
"ignore": "^5.0.4", "ignore": "^5.0.4",
"magic-string": "~0.30.2", "magic-string": "~0.30.2",
"minimatch": "3.0.5", "minimatch": "9.0.3",
"semver": "7.5.3", "semver": "7.5.3",
"tslib": "^2.3.0", "tslib": "^2.3.0",
"webpack": "^5.80.0", "webpack": "^5.80.0",

View File

@ -20,7 +20,7 @@ import { getProjectEntryPoints } from '../utils/storybook-ast/entry-point';
import { getE2EProject } from './lib/get-e2e-project'; import { getE2EProject } from './lib/get-e2e-project';
import { getModuleFilePaths } from '../utils/storybook-ast/module-info'; import { getModuleFilePaths } from '../utils/storybook-ast/module-info';
import type { StoriesGeneratorOptions } from './schema'; import type { StoriesGeneratorOptions } from './schema';
import minimatch = require('minimatch'); import { minimatch } from 'minimatch';
import { nxVersion } from '../../utils/versions'; import { nxVersion } from '../../utils/versions';
export async function angularStoriesGenerator( export async function angularStoriesGenerator(

View File

@ -42,7 +42,7 @@
"jest-config": "^29.4.1", "jest-config": "^29.4.1",
"jest-resolve": "^29.4.1", "jest-resolve": "^29.4.1",
"jest-util": "^29.4.1", "jest-util": "^29.4.1",
"minimatch": "3.0.5", "minimatch": "9.0.3",
"resolve.exports": "1.1.0", "resolve.exports": "1.1.0",
"tslib": "^2.3.0", "tslib": "^2.3.0",
"@nx/devkit": "file:../devkit", "@nx/devkit": "file:../devkit",

View File

@ -18,7 +18,7 @@ import { projectGraphCacheDirectory } from 'nx/src/utils/cache-directory';
import { calculateHashForCreateNodes } from '@nx/devkit/src/utils/calculate-hash-for-create-nodes'; import { calculateHashForCreateNodes } from '@nx/devkit/src/utils/calculate-hash-for-create-nodes';
import { getGlobPatternsFromPackageManagerWorkspaces } from 'nx/plugins/package-json-workspaces'; import { getGlobPatternsFromPackageManagerWorkspaces } from 'nx/plugins/package-json-workspaces';
import { combineGlobPatterns } from 'nx/src/utils/globs'; import { combineGlobPatterns } from 'nx/src/utils/globs';
import * as minimatch from 'minimatch'; import { minimatch } from 'minimatch';
export interface JestPluginOptions { export interface JestPluginOptions {
targetName?: string; targetName?: string;

View File

@ -52,7 +52,7 @@
"tsconfig-paths": "^4.1.2", "tsconfig-paths": "^4.1.2",
"ignore": "^5.0.4", "ignore": "^5.0.4",
"js-tokens": "^4.0.0", "js-tokens": "^4.0.0",
"minimatch": "3.0.5", "minimatch": "9.0.3",
"ora": "5.3.0", "ora": "5.3.0",
"semver": "7.5.3", "semver": "7.5.3",
"source-map-support": "0.5.19", "source-map-support": "0.5.19",

View File

@ -1,4 +1,4 @@
import * as minimatch from 'minimatch'; import { minimatch } from 'minimatch';
import * as path from 'path'; import * as path from 'path';
import * as fse from 'fs-extra'; import * as fse from 'fs-extra';
import ignore from 'ignore'; import ignore from 'ignore';

View File

@ -52,7 +52,7 @@
"js-yaml": "4.1.0", "js-yaml": "4.1.0",
"jsonc-parser": "3.2.0", "jsonc-parser": "3.2.0",
"lines-and-columns": "~2.0.3", "lines-and-columns": "~2.0.3",
"minimatch": "3.0.5", "minimatch": "9.0.3",
"npm-run-path": "^4.0.1", "npm-run-path": "^4.0.1",
"open": "^8.4.0", "open": "^8.4.0",
"semver": "7.5.3", "semver": "7.5.3",

View File

@ -2,7 +2,7 @@ import { createHash } from 'crypto';
import { existsSync, readFileSync, statSync, writeFileSync } from 'fs'; import { existsSync, readFileSync, statSync, writeFileSync } from 'fs';
import { copySync, ensureDirSync } from 'fs-extra'; import { copySync, ensureDirSync } from 'fs-extra';
import * as http from 'http'; import * as http from 'http';
import * as minimatch from 'minimatch'; import { minimatch } from 'minimatch';
import { URL } from 'node:url'; import { URL } from 'node:url';
import * as open from 'open'; import * as open from 'open';
import { import {

View File

@ -38,7 +38,7 @@ describe('glob', () => {
tree.write('3.txt', '3'); tree.write('3.txt', '3');
fs.writeFile('4.md', '4'); fs.writeFile('4.md', '4');
const withTree = glob(tree, ['*.txt']).sort(); const withTree = glob(tree, ['**/*.txt']).sort();
expect(withTree).toMatchInlineSnapshot(` expect(withTree).toMatchInlineSnapshot(`
[ [

View File

@ -1,10 +1,8 @@
import { minimatch } from 'minimatch';
import { Tree } from '../tree'; import { Tree } from '../tree';
import { combineGlobPatterns } from '../../utils/globs'; import { combineGlobPatterns } from '../../utils/globs';
import { workspaceRoot } from '../../utils/workspace-root';
import { globWithWorkspaceContext } from '../../utils/workspace-context'; import { globWithWorkspaceContext } from '../../utils/workspace-context';
import minimatch = require('minimatch');
/** /**
* Performs a tree-aware glob search on the files in a workspace. Able to find newly * Performs a tree-aware glob search on the files in a workspace. Able to find newly
* created files and hides deleted files before the updates are committed to disk. * created files and hides deleted files before the updates are committed to disk.

View File

@ -1,3 +1,4 @@
import { minimatch } from 'minimatch';
import { basename, join, relative } from 'path'; import { basename, join, relative } from 'path';
import { import {
@ -24,8 +25,6 @@ import { readNxJson } from './nx-json';
import type { Tree } from '../tree'; import type { Tree } from '../tree';
import minimatch = require('minimatch');
export { readNxJson, updateNxJson } from './nx-json'; export { readNxJson, updateNxJson } from './nx-json';
/** /**

View File

@ -10,7 +10,7 @@ import { Task, TaskGraph } from '../config/task-graph';
import { hashArray, hashObject } from './file-hasher'; import { hashArray, hashObject } from './file-hasher';
import { getOutputsForTargetAndConfiguration } from '../tasks-runner/utils'; import { getOutputsForTargetAndConfiguration } from '../tasks-runner/utils';
import { workspaceRoot } from '../utils/workspace-root'; import { workspaceRoot } from '../utils/workspace-root';
import * as minimatch from 'minimatch'; import { minimatch } from 'minimatch';
import { join } from 'path'; import { join } from 'path';
import { hashFile } from '../native'; import { hashFile } from '../native';
import { findAllProjectNodeDependencies } from '../utils/project-graph-utils'; import { findAllProjectNodeDependencies } from '../utils/project-graph-utils';

View File

@ -10,7 +10,7 @@ import { DaemonClient } from '../daemon/client/client';
import { hashArray } from './file-hasher'; import { hashArray } from './file-hasher';
import { NodeTaskHasherImpl } from './node-task-hasher-impl'; import { NodeTaskHasherImpl } from './node-task-hasher-impl';
import { InputDefinition } from '../config/workspace-json-project-json'; import { InputDefinition } from '../config/workspace-json-project-json';
import * as minimatch from 'minimatch'; import { minimatch } from 'minimatch';
import { NativeTaskHasherImpl } from './native-task-hasher-impl'; import { NativeTaskHasherImpl } from './native-task-hasher-impl';
import { workspaceRoot } from '../utils/workspace-root'; import { workspaceRoot } from '../utils/workspace-root';
import { NxWorkspaceFilesExternals } from '../native'; import { NxWorkspaceFilesExternals } from '../native';

View File

@ -1,5 +1,5 @@
import { TouchedProjectLocator } from '../affected-project-graph-models'; import { TouchedProjectLocator } from '../affected-project-graph-models';
import minimatch = require('minimatch'); import { minimatch } from 'minimatch';
import { workspaceRoot } from '../../../utils/workspace-root'; import { workspaceRoot } from '../../../utils/workspace-root';
import { getNxRequirePaths } from '../../../utils/installation-directory'; import { getNxRequirePaths } from '../../../utils/installation-directory';
import { join } from 'path'; import { join } from 'path';

View File

@ -1,4 +1,4 @@
import * as minimatch from 'minimatch'; import { minimatch } from 'minimatch';
import { TouchedProjectLocator } from '../affected-project-graph-models'; import { TouchedProjectLocator } from '../affected-project-graph-models';
import { NxJsonConfiguration } from '../../../config/nx-json'; import { NxJsonConfiguration } from '../../../config/nx-json';
import { import {

View File

@ -24,7 +24,7 @@ import {
} from './utils/project-configuration-utils'; } from './utils/project-configuration-utils';
import { NxJsonConfiguration } from '../config/nx-json'; import { NxJsonConfiguration } from '../config/nx-json';
import { getDefaultPluginsSync } from '../utils/nx-plugin.deprecated'; import { getDefaultPluginsSync } from '../utils/nx-plugin.deprecated';
import minimatch = require('minimatch'); import { minimatch } from 'minimatch';
import { CreateNodesResult } from '../devkit-exports'; import { CreateNodesResult } from '../devkit-exports';
import { CreatePackageJsonProjectsNextToProjectJson } from '../plugins/project-json/build-nodes/package-json-next-to-project-json'; import { CreatePackageJsonProjectsNextToProjectJson } from '../plugins/project-json/build-nodes/package-json-next-to-project-json';
import { LoadedNxPlugin } from '../utils/nx-plugin'; import { LoadedNxPlugin } from '../utils/nx-plugin';

View File

@ -10,7 +10,7 @@ import { CreateNodesResult, LoadedNxPlugin } from '../../utils/nx-plugin';
import { readJsonFile } from '../../utils/fileutils'; import { readJsonFile } from '../../utils/fileutils';
import { workspaceRoot } from '../../utils/workspace-root'; import { workspaceRoot } from '../../utils/workspace-root';
import minimatch = require('minimatch'); import { minimatch } from 'minimatch';
import { join } from 'path'; import { join } from 'path';
export type SourceInformation = [string, string]; export type SourceInformation = [string, string];

View File

@ -3,7 +3,7 @@ import {
getMatchingStringsWithCache, getMatchingStringsWithCache,
} from './find-matching-projects'; } from './find-matching-projects';
import type { ProjectGraphProjectNode } from '../config/project-graph'; import type { ProjectGraphProjectNode } from '../config/project-graph';
import minimatch = require('minimatch'); import { minimatch } from 'minimatch';
describe('findMatchingProjects', () => { describe('findMatchingProjects', () => {
let projectGraph: Record<string, ProjectGraphProjectNode> = { let projectGraph: Record<string, ProjectGraphProjectNode> = {

View File

@ -1,4 +1,4 @@
import minimatch = require('minimatch'); import { minimatch } from 'minimatch';
import type { ProjectGraphProjectNode } from '../config/project-graph'; import type { ProjectGraphProjectNode } from '../config/project-graph';
const validPatternTypes = [ const validPatternTypes = [

View File

@ -36,7 +36,7 @@
"@nx/eslint": "file:../eslint", "@nx/eslint": "file:../eslint",
"@nx/js": "file:../js", "@nx/js": "file:../js",
"tslib": "^2.3.0", "tslib": "^2.3.0",
"minimatch": "3.0.5" "minimatch": "9.0.3"
}, },
"peerDependencies": { "peerDependencies": {
"@playwright/test": "^1.36.0" "@playwright/test": "^1.36.0"

View File

@ -16,7 +16,7 @@ import { calculateHashForCreateNodes } from '@nx/devkit/src/utils/calculate-hash
import type { PlaywrightTestConfig } from '@playwright/test'; import type { PlaywrightTestConfig } from '@playwright/test';
import { getFilesInDirectoryUsingContext } from 'nx/src/utils/workspace-context'; import { getFilesInDirectoryUsingContext } from 'nx/src/utils/workspace-context';
import minimatch = require('minimatch'); import { minimatch } from 'minimatch';
import { loadPlaywrightConfig } from '../utils/load-config-file'; import { loadPlaywrightConfig } from '../utils/load-config-file';
import { projectGraphCacheDirectory } from 'nx/src/utils/cache-directory'; import { projectGraphCacheDirectory } from 'nx/src/utils/cache-directory';
import { getLockFileName } from '@nx/js'; import { getLockFileName } from '@nx/js';

View File

@ -32,7 +32,7 @@
"ignore": "^5.0.4", "ignore": "^5.0.4",
"metro-config": "~0.76.8", "metro-config": "~0.76.8",
"metro-resolver": "~0.76.8", "metro-resolver": "~0.76.8",
"minimatch": "3.0.5", "minimatch": "9.0.3",
"node-fetch": "^2.6.7", "node-fetch": "^2.6.7",
"tsconfig-paths": "^4.1.2", "tsconfig-paths": "^4.1.2",
"tslib": "^2.3.0", "tslib": "^2.3.0",

View File

@ -12,7 +12,7 @@ import {
containsComponentDeclaration, containsComponentDeclaration,
projectRootPath, projectRootPath,
} from '@nx/react/src/generators/stories/stories'; } from '@nx/react/src/generators/stories/stories';
import minimatch = require('minimatch'); import { minimatch } from 'minimatch';
import { nxVersion } from '../../utils/versions'; import { nxVersion } from '../../utils/versions';
export async function createAllStories( export async function createAllStories(

View File

@ -35,7 +35,7 @@
"@svgr/webpack": "^8.0.1", "@svgr/webpack": "^8.0.1",
"chalk": "^4.1.0", "chalk": "^4.1.0",
"file-loader": "^6.2.0", "file-loader": "^6.2.0",
"minimatch": "3.0.5", "minimatch": "9.0.3",
"tslib": "^2.3.0", "tslib": "^2.3.0",
"@nx/devkit": "file:../devkit", "@nx/devkit": "file:../devkit",
"@nx/js": "file:../js", "@nx/js": "file:../js",

View File

@ -18,7 +18,7 @@ import {
visitNotIgnoredFiles, visitNotIgnoredFiles,
} from '@nx/devkit'; } from '@nx/devkit';
import { basename, join } from 'path'; import { basename, join } from 'path';
import minimatch = require('minimatch'); import { minimatch } from 'minimatch';
import { ensureTypescript } from '@nx/js/src/utils/typescript/ensure-typescript'; import { ensureTypescript } from '@nx/js/src/utils/typescript/ensure-typescript';
import { nxVersion } from '../../utils/versions'; import { nxVersion } from '../../utils/versions';

View File

@ -28,7 +28,7 @@
"migrations": "./migrations.json" "migrations": "./migrations.json"
}, },
"dependencies": { "dependencies": {
"minimatch": "3.0.5", "minimatch": "9.0.3",
"tslib": "^2.3.0", "tslib": "^2.3.0",
"@nx/devkit": "file:../devkit", "@nx/devkit": "file:../devkit",
"@nx/js": "file:../js", "@nx/js": "file:../js",

View File

@ -13,7 +13,7 @@ import {
import { basename, join } from 'path'; import { basename, join } from 'path';
import { nxVersion } from '../../utils/versions'; import { nxVersion } from '../../utils/versions';
import { createComponentStories } from './lib/component-story'; import { createComponentStories } from './lib/component-story';
import minimatch = require('minimatch'); import { minimatch } from 'minimatch';
export interface StorybookStoriesSchema { export interface StorybookStoriesSchema {
project: string; project: string;

24
pnpm-lock.yaml generated
View File

@ -750,8 +750,8 @@ devDependencies:
specifier: ~2.4.7 specifier: ~2.4.7
version: 2.4.7(webpack@5.88.0) version: 2.4.7(webpack@5.88.0)
minimatch: minimatch:
specifier: 3.0.5 specifier: 9.0.3
version: 3.0.5 version: 9.0.3
next-sitemap: next-sitemap:
specifier: ^3.1.10 specifier: ^3.1.10
version: 3.1.29(@next/env@14.0.4)(next@13.3.4) version: 3.1.29(@next/env@14.0.4)(next@13.3.4)
@ -5516,7 +5516,7 @@ packages:
dependencies: dependencies:
'@humanwhocodes/object-schema': 1.2.1 '@humanwhocodes/object-schema': 1.2.1
debug: 4.3.4(supports-color@5.5.0) debug: 4.3.4(supports-color@5.5.0)
minimatch: 3.0.5 minimatch: 3.1.2
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
dev: true dev: true
@ -17738,7 +17738,7 @@ packages:
deepmerge: 4.3.1 deepmerge: 4.3.1
fs-extra: 10.1.0 fs-extra: 10.1.0
memfs: 3.5.0 memfs: 3.5.0
minimatch: 3.0.5 minimatch: 3.1.2
node-abort-controller: 3.0.1 node-abort-controller: 3.0.1
schema-utils: 3.2.0 schema-utils: 3.2.0
semver: 7.5.3 semver: 7.5.3
@ -17761,7 +17761,7 @@ packages:
deepmerge: 4.3.1 deepmerge: 4.3.1
fs-extra: 10.1.0 fs-extra: 10.1.0
memfs: 3.5.0 memfs: 3.5.0
minimatch: 3.0.5 minimatch: 3.1.2
node-abort-controller: 3.1.1 node-abort-controller: 3.1.1
schema-utils: 3.2.0 schema-utils: 3.2.0
semver: 7.5.3 semver: 7.5.3
@ -18223,7 +18223,7 @@ packages:
dependencies: dependencies:
inflight: 1.0.6 inflight: 1.0.6
inherits: 2.0.4 inherits: 2.0.4
minimatch: 3.0.5 minimatch: 3.1.2
once: 1.4.0 once: 1.4.0
path-is-absolute: 1.0.1 path-is-absolute: 1.0.1
dev: true dev: true
@ -18244,7 +18244,7 @@ packages:
fs.realpath: 1.0.0 fs.realpath: 1.0.0
inflight: 1.0.6 inflight: 1.0.6
inherits: 2.0.4 inherits: 2.0.4
minimatch: 3.0.5 minimatch: 3.1.2
once: 1.4.0 once: 1.4.0
path-is-absolute: 1.0.1 path-is-absolute: 1.0.1
dev: true dev: true
@ -19748,7 +19748,7 @@ packages:
async: 3.2.4 async: 3.2.4
chalk: 4.1.2 chalk: 4.1.2
filelist: 1.0.4 filelist: 1.0.4
minimatch: 3.0.5 minimatch: 3.1.2
dev: true dev: true
/jasmine-core@2.99.1: /jasmine-core@2.99.1:
@ -22580,7 +22580,7 @@ packages:
array-differ: 3.0.0 array-differ: 3.0.0
array-union: 2.1.0 array-union: 2.1.0
arrify: 2.0.1 arrify: 2.0.1
minimatch: 3.0.5 minimatch: 3.1.2
dev: true dev: true
/mute-stream@0.0.8: /mute-stream@0.0.8:
@ -22798,7 +22798,7 @@ packages:
resolution: {integrity: sha512-tmPX422rYgofd4epzrNoOXiE8XFZYOcCq1vD7MAXCDO+O+zndlA2ztdKKMa+EeuBG5tHETpr4ml4RGgpqDCCAg==} resolution: {integrity: sha512-tmPX422rYgofd4epzrNoOXiE8XFZYOcCq1vD7MAXCDO+O+zndlA2ztdKKMa+EeuBG5tHETpr4ml4RGgpqDCCAg==}
engines: {node: '>= 0.10.5'} engines: {node: '>= 0.10.5'}
dependencies: dependencies:
minimatch: 3.0.5 minimatch: 3.1.2
dev: true dev: true
/node-domexception@1.0.0: /node-domexception@1.0.0:
@ -26366,7 +26366,7 @@ packages:
engines: {node: '>= 0.8.0'} engines: {node: '>= 0.8.0'}
dependencies: dependencies:
debug: 2.6.9 debug: 2.6.9
minimatch: 3.0.5 minimatch: 3.1.2
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
dev: true dev: true
@ -28228,7 +28228,7 @@ packages:
dependencies: dependencies:
'@istanbuljs/schema': 0.1.3 '@istanbuljs/schema': 0.1.3
glob: 7.1.4 glob: 7.1.4
minimatch: 3.0.5 minimatch: 3.1.2
dev: true dev: true
/text-extensions@1.9.0: /text-extensions@1.9.0: