diff --git a/package.json b/package.json index cbe86e00419c..35f9d4dd23c0 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,6 @@ "@types/glob": "^8.0.0", "@types/jasmine": "^5.0.0", "@types/luxon": "^3.0.0", - "@types/minimatch": "^5.1.2", "@types/node": "^22.14.1", "@types/selenium-webdriver": "^3.0.17", "@types/semver": "^7.3.9", @@ -124,8 +123,7 @@ "karma-sourcemap-loader": "^0.4.0", "magic-string": "0.30.17", "marked": "^15.0.12", - "minimatch": "^3.0.4", - "node-fetch": "^2.6.0", + "minimatch": "^10.0.3", "parse5": "^7.1.2", "postcss": "^8.4.17", "postcss-scss": "^4.0.4", @@ -138,7 +136,6 @@ "sass": "^1.80.6", "selenium-webdriver": "^3.6.0", "semver": "^7.3.5", - "send": "^0.19.0", "shelljs": "^0.10.0", "slugify": "^1.6.6", "source-map-support": "^0.5.21", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 167411745481..0084cbf6d9c7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -188,9 +188,6 @@ importers: '@types/luxon': specifier: ^3.0.0 version: 3.6.2 - '@types/minimatch': - specifier: ^5.1.2 - version: 5.1.2 '@types/node': specifier: ^22.14.1 version: 22.14.1 @@ -276,11 +273,8 @@ importers: specifier: ^15.0.12 version: 15.0.12 minimatch: - specifier: ^3.0.4 - version: 3.1.2 - node-fetch: - specifier: ^2.6.0 - version: 2.7.0(encoding@0.1.13) + specifier: ^10.0.3 + version: 10.0.3 parse5: specifier: ^7.1.2 version: 7.2.1 @@ -317,9 +311,6 @@ importers: semver: specifier: ^7.3.5 version: 7.7.1 - send: - specifier: ^0.19.0 - version: 0.19.0 shelljs: specifier: ^0.10.0 version: 0.10.0 diff --git a/scripts/check-entry-point-setup.mjs b/scripts/check-entry-point-setup.mjs index 6606360d5066..5af403cff2f7 100644 --- a/scripts/check-entry-point-setup.mjs +++ b/scripts/check-entry-point-setup.mjs @@ -10,7 +10,7 @@ import {join, dirname} from 'path'; import {sync as globSync} from 'glob'; import {readFileSync} from 'fs'; -import minimatch from 'minimatch'; +import {minimatch} from 'minimatch'; import chalk from 'chalk'; const [entryPointManifest] = process.argv.slice(2); diff --git a/scripts/check-package-externals.mts b/scripts/check-package-externals.mts index 9f6fbce9f7bc..65f08a73e6ed 100644 --- a/scripts/check-package-externals.mts +++ b/scripts/check-package-externals.mts @@ -10,7 +10,7 @@ import chalk from 'chalk'; import {readFileSync} from 'fs'; -import minimatch from 'minimatch'; +import {minimatch} from 'minimatch'; import {join, relative} from 'path'; import ts from 'typescript'; diff --git a/scripts/ownerslint.mts b/scripts/ownerslint.mts index e540b0c79831..ea4b49634d4a 100644 --- a/scripts/ownerslint.mts +++ b/scripts/ownerslint.mts @@ -1,6 +1,6 @@ import chalk from 'chalk'; import {readdirSync, readFileSync, statSync} from 'fs'; -import minimatch from 'minimatch'; +import {Minimatch} from 'minimatch'; import {join} from 'path'; /** @@ -23,7 +23,7 @@ const ownedPaths = readFileSync(ownersFilePath, 'utf8') // Split off just the path glob. .map(line => line.split(/\s+/)[0]) // Turn paths into Minimatch objects. - .map(path => new minimatch.Minimatch(path, {dot: true, matchBase: true})); + .map(path => new Minimatch(path, {dot: true, matchBase: true})); const ignoredPaths = readFileSync(gitIgnorePath, 'utf8') .split('\n') @@ -32,7 +32,7 @@ const ignoredPaths = readFileSync(gitIgnorePath, 'utf8') // Remove empty lines and comments. .filter(line => line && !line.startsWith('#')) // Turn paths into Minimatch objects. - .map(path => new minimatch.Minimatch(path, {dot: true, matchBase: true})); + .map(path => new Minimatch(path, {dot: true, matchBase: true})); for (let paths = getChildPaths('.'); paths.length; ) { paths = Array.prototype.concat( @@ -72,7 +72,7 @@ if (errors) { } /** Check if the given path is owned by the given owned path matcher. */ -function isOwnedBy(path: string, ownedPath: minimatch.IMinimatch) { +function isOwnedBy(path: string, ownedPath: Minimatch) { // If the owned path ends with `**` its safe to eliminate whole directories. if (ownedPath.pattern.endsWith('**') || statSync(path).isFile()) { return ownedPath.match('/' + path); diff --git a/tools/stylelint/no-prefixes/index.ts b/tools/stylelint/no-prefixes/index.ts index d746235561cd..ab166f8cab9b 100644 --- a/tools/stylelint/no-prefixes/index.ts +++ b/tools/stylelint/no-prefixes/index.ts @@ -1,5 +1,5 @@ import {createPlugin, Rule, utils} from 'stylelint'; -import minimatch from 'minimatch'; +import {minimatch} from 'minimatch'; import {NeedsPrefix} from './needs-prefix'; const parseSelector = require('stylelint/lib/utils/parseSelector'); diff --git a/tools/tslint-rules/lightweightTokensRule.ts b/tools/tslint-rules/lightweightTokensRule.ts index dfad5089ed54..463ed9df8842 100644 --- a/tools/tslint-rules/lightweightTokensRule.ts +++ b/tools/tslint-rules/lightweightTokensRule.ts @@ -1,5 +1,5 @@ import ts from 'typescript'; -import minimatch from 'minimatch'; +import {minimatch} from 'minimatch'; import * as Lint from 'tslint'; /** Arguments this rule supports. */ diff --git a/tools/tslint-rules/noCrossEntryPointRelativeImportsRule.ts b/tools/tslint-rules/noCrossEntryPointRelativeImportsRule.ts index 46c0197262d7..93cc33a89e99 100644 --- a/tools/tslint-rules/noCrossEntryPointRelativeImportsRule.ts +++ b/tools/tslint-rules/noCrossEntryPointRelativeImportsRule.ts @@ -1,5 +1,5 @@ import ts from 'typescript'; -import minimatch from 'minimatch'; +import {minimatch} from 'minimatch'; import {existsSync} from 'fs'; import {dirname, join, normalize, resolve} from 'path'; diff --git a/tools/tslint-rules/noLifecycleInvocationRule.ts b/tools/tslint-rules/noLifecycleInvocationRule.ts index d0a7de6f5a80..904bdc960531 100644 --- a/tools/tslint-rules/noLifecycleInvocationRule.ts +++ b/tools/tslint-rules/noLifecycleInvocationRule.ts @@ -1,6 +1,6 @@ import * as Lint from 'tslint'; import ts from 'typescript'; -import minimatch from 'minimatch'; +import {minimatch} from 'minimatch'; const hooks = new Set([ 'ngOnChanges', diff --git a/tools/tslint-rules/noZoneDependenciesRule.ts b/tools/tslint-rules/noZoneDependenciesRule.ts index 8fd1b3743820..5129e06230be 100644 --- a/tools/tslint-rules/noZoneDependenciesRule.ts +++ b/tools/tslint-rules/noZoneDependenciesRule.ts @@ -1,4 +1,4 @@ -import minimatch from 'minimatch'; +import {minimatch} from 'minimatch'; import * as Lint from 'tslint'; import ts from 'typescript'; diff --git a/tools/tslint-rules/requireLicenseBannerRule.ts b/tools/tslint-rules/requireLicenseBannerRule.ts index 736c530a9e28..422aa582dd5b 100644 --- a/tools/tslint-rules/requireLicenseBannerRule.ts +++ b/tools/tslint-rules/requireLicenseBannerRule.ts @@ -1,5 +1,5 @@ import * as Lint from 'tslint'; -import minimatch from 'minimatch'; +import {minimatch} from 'minimatch'; import ts from 'typescript'; /** License banner that is placed at the top of every public TypeScript file. */ diff --git a/tools/tslint-rules/validateDecoratorsRule.ts b/tools/tslint-rules/validateDecoratorsRule.ts index 7d399cafe219..c1feac1cb5c3 100644 --- a/tools/tslint-rules/validateDecoratorsRule.ts +++ b/tools/tslint-rules/validateDecoratorsRule.ts @@ -1,4 +1,4 @@ -import minimatch from 'minimatch'; +import {minimatch} from 'minimatch'; import * as Lint from 'tslint'; import ts from 'typescript';