Aggiornare minimatch da 10.x a 11.x
Confronto dell’API pubblica di minimatch 10.2.6 e 11.0.8, calcolato automaticamente dai tipi TypeScript. Una firma modificata è una possibile modifica incompatibile, non una certezza.
Riepilogo
| Percorsi di import rimossi | 0 |
|---|---|
| Export rimossi | 3 |
| Firme modificate | 3 |
| Membri di classi o interfacce rimossi | 9 |
| Membri di classi o interfacce modificati | 2 |
| Nuove deprecazioni | 0 |
| Requisiti cambiati (engines, dipendenze peer) | 1 |
| Nuovi export | 5 |
Export rimossi
| import | export | kind | Prima |
|---|---|---|---|
minimatch | AST | class | class |
minimatch | makeRe | variable | (pattern: string, options?: MinimatchOptions | undefined): false | MMRegExp |
minimatch | MMRegExp | type | RegExp & { _src?: string | undefined; _glob?: string | undefined; } |
Firme modificate
| export | Prima | Dopo |
|---|---|---|
minimatch · defaults | (def: MinimatchOptions): { (p: string, pattern: string, options?: MinimatchOptions | undefined): boolean; sep: Sep; GLOBSTAR: typeof GLOBSTAR; filter: (pattern: string, options?: MinimatchOptions | undefined) => (p: string) => boolean; defaults: (def: MinimatchOptions) => any; braceExpand: (pattern: string, options?: MinimatchOptions | undefined) => string[]; makeRe: (pattern: string, options?: MinimatchOptions | undefined) => false | MMRegExp; match: (list: string[], pattern: string, options?: MinimatchOptions | undefined) => string[]; AST: typeof AST; Minimatch: typeof Minimatch; escape: (s:… | (def: MinimatchOptions): { (p: string, pattern: string, options?: MinimatchOptions | undefined): boolean; sep: Sep; GLOBSTAR: typeof GLOBSTAR; filter: (pattern: string, options?: MinimatchOptions | undefined) => (p: string) => boolean; defaults: (def: MinimatchOptions) => any; braceExpand: (pattern: string, options?: MinimatchOptions | undefined) => string[]; match: (list: string[], pattern: string, options?: MinimatchOptions | undefined) => string[]; Minimatch: typeof Minimatch; escape: (s: string, { windowsPathsNoEscape, magicalBraces, }?: Pick<MinimatchOptions, "windowsPathsNoEscape" | "mag… |
minimatch · ParseReturn | false | ParseReturnFiltered | any |
minimatch · ParseReturnFiltered | string | typeof GLOBSTAR | MMRegExp | any |
Membri di classi o interfacce rimossi
| member | import | Prima |
|---|---|---|
Minimatch.debug | minimatch | (..._: unknown[]): void |
Minimatch.makeRe | minimatch | (): false | MMRegExp |
Minimatch.regexp | minimatch | false | MMRegExp | null |
Minimatch.matchOne | minimatch | (file: string[], pattern: ParseReturn[], partial?: boolean | undefined): boolean |
Minimatch.partsMatch | minimatch | (a: string[], b: string[], emptyGSMatch?: boolean | undefined): false | string[] |
Minimatch.slashSplit | minimatch | (p: string): string[] |
Minimatch.levelTwoFileOptimize | minimatch | (parts: string | string[]): string[] |
MinimatchOptions.debug | minimatch | boolean | undefined |
MinimatchOptions.maxExtglobRecursion | minimatch | number | undefined |
Membri di classi o interfacce modificati
| member | Prima | Dopo |
|---|---|---|
Minimatch.set | ParseReturnFiltered[][] | any[][] |
Minimatch.parse | (pattern: string): ParseReturn | (pattern: string): any |
Nuove deprecazioni
Nessuna rilevata.
Requisiti cambiati (engines, dipendenze peer)
| Prima | Dopo | |
|---|---|---|
engines.node | 18 || 20 || >=22 | — |
Nuovi export (5)
| import | export | kind |
|---|---|---|
minimatch | Form | variable |
minimatch | PathSeps | type |
minimatch | RowShape | type |
minimatch | SplitPath | type |
minimatch | GlobstarParts | type |
Dai questi dati al tuo agente IA
Vigia è un server MCP gratuito: il tuo agente di programmazione verifica versioni, modifiche incompatibili e vulnerabilità prima di scrivere codice. Senza registrazione né chiave API.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Aggiungi a CursorAggiungi a VS Code★ Stella su GitHub
Qualsiasi altro client MCP
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Skill per agenti (SKILL.md): dice all'agente quando usare Vigia · GitHub Action per le pull request
Domande frequenti
Quali sono le modifiche incompatibili aggiornando minimatch da 10 a 11?
Tra minimatch 10.2.6 e 11.0.8, Vigia ha trovato 3 export rimossi, 3 firme modificate e 11 membri di classi o interfacce rimossi o modificati.
Cosa è stato deprecato in minimatch 11?
0 export o membri risultano ora deprecati in minimatch 11.0.8.
Per gli agenti
GET https://vigia.coredls.cloud/v1/packages/npm/minimatch/upgrade?from=10.2.6&to=11.0.8