Vigia

Atualizar chokidar de 5.x para 6.x

Comparação da API pública de chokidar 5.0.0 e 6.0.0, calculada automaticamente a partir dos tipos TypeScript. Uma assinatura alterada é uma possível mudança incompatível, não uma certeza.

Resumo

Caminhos de importação removidos0
Exports removidos1
Assinaturas alteradas7
Membros de classes ou interfaces removidos33
Membros de classes ou interfaces alterados4
Novas descontinuações0
Mudanças de requisitos (engines, dependências peer)1
Novos exports4

Exports removidos

importexportkindAntes
chokidarWatchHelperclassclass

Assinaturas alteradas

exportAntesDepois
chokidar · watch(paths: string | string[], options?: Partial<BasicOpts & { ignored: Matcher | Matcher[]; awaitWriteFinish: boolean | Partial<AWF>; }> | undefined): FSWatcher(paths: string | string[], options?: Partial<BasicOptions & { ignored: Matcher | Matcher[]; awaitWriteFinish: boolean | Partial<AWF>; }> | undefined): FSWatcher
chokidar · default{ watch: (paths: string | string[], options?: Partial<BasicOpts & { ignored: Matcher | Matcher[]; awaitWriteFinish: boolean | Partial<AWF>; }> | undefined) => FSWatcher; FSWatcher: typeof FSWatcher; }{ watch: (paths: string | string[], options?: Partial<BasicOptions & { ignored: Matcher | Matcher[]; awaitWriteFinish: boolean | Partial<AWF>; }> | undefined) => FSWatcher; FSWatcher: typeof FSWatcher; }
chokidar · Throttler{ timeoutObject: NodeJS.Timeout; clear: () => void; count: number; }{ timeoutObject: SchedulerTimer; clear: (invokeRelease?: boolean | undefined) => number; count: number; }
chokidar · ThrottleType"readdir" | "watch" | "add" | "remove" | "change""add" | "change" | "readdir" | "watch" | "remove"
chokidar · MatcherObjectinterface{ path: string; recursive?: boolean | undefined; }
chokidar · ChokidarOptions{ persistent?: boolean | undefined; ignoreInitial?: boolean | undefined; followSymlinks?: boolean | undefined; cwd?: string | undefined; usePolling?: boolean | undefined; interval?: number | undefined; binaryInterval?: number | undefined; alwaysStat?: boolean | undefined; depth?: number | undefined; ignorePermissionErrors?: boolean | undefined; atomic?: number | boolean | undefined; ignored?: Matcher | Matcher[] | undefined; awaitWriteFinish?: boolean | Partial<AWF> | undefined; }{ persistent?: boolean | undefined; ignoreInitial?: boolean | undefined; followSymlinks?: boolean | undefined; cwd?: string | undefined; backend?: WatchBackend | undefined; usePolling?: boolean | undefined; pollingInterval?: number | undefined; pollingBinaryInterval?: number | undefined; interval?: number | undefined; binaryInterval?: number | undefined; alwaysStat?: boolean | undefined; depth?: number | undefined; ignorePermissionErrors?: boolean | undefined; atomic?: number | boolean | undefined; ignored?: Matcher | Matcher[] | undefined; awaitWriteFinish?: boolean | Partial<AWF> | undefined…
chokidar · FSWInstanceOptionsBasicOpts & { ignored: Matcher[]; awaitWriteFinish: false | AWF; }BasicOptions & { ignored: readonly Matcher[]; awaitWriteFinish: false | AWF; backendStrategy: BackendStrategy; backendCapabilities: Readonly<{ kind: BackendStrategy; polling: boolean; recursive: boolean; perDirectory: boolean; }>; }

Membros de classes ou interfaces removidos

memberimportAntes
FSWatcher._emitchokidar(event: EventName, path: string, stats?: any): Promise<FSWatcher | undefined>
FSWatcher._removechokidar(directory: string, item: string, isDirectory?: boolean | undefined): void
FSWatcher._closerschokidarMap<string, any[]>
FSWatcher._emitRawchokidar(ev: WatchEventType, path: string, opts: unknown): void
FSWatcher._streamschokidarSet<ReaddirpStream>
FSWatcher._watchedchokidarMap<string, DirEntry>
FSWatcher._readdirpchokidar(root: string, opts?: any): any
FSWatcher._throttlechokidar(actionType: ThrottleType, path: string, timeout: number): false | Throttler
FSWatcher._closeFilechokidar(path: string): void
FSWatcher._closePathchokidar(path: string): void
FSWatcher._emitReadychokidar(): void
FSWatcher._isIgnoredchokidar(path: string, stats?: any): boolean
FSWatcher._throttledchokidarMap<ThrottleType, Map<any, any>>
FSWatcher._readyCountchokidarnumber
FSWatcher._boundRemovechokidar(dir: string, item: string): void
FSWatcher._handleErrorchokidar(error: Error): boolean | Error
FSWatcher._isntIgnoredchokidar(path: string, stat?: any): boolean
FSWatcher._userIgnoredchokidarMatchFunction | undefined
FSWatcher._closePromisechokidarPromise<void> | undefined
FSWatcher._ignoredPathschokidarSet<Matcher>
FSWatcher._readyEmittedchokidarboolean
FSWatcher._symlinkPathschokidarMap<string, string | boolean>
FSWatcher._addPathCloserchokidar(path: string, closer: () => void): void
FSWatcher._getWatchedDirchokidar(directory: string): DirEntry
FSWatcher._nodeFsHandlerchokidarNodeFsHandler
FSWatcher._pendingWriteschokidarMap<string, any>
FSWatcher._addIgnoredPathchokidar(matcher: Matcher): void
FSWatcher._incrReadyCountchokidar(): number
FSWatcher._pendingUnlinkschokidarMap<string, [event: EventName, path: string, stats?: any]>
FSWatcher._getWatchHelperschokidar(path: string): WatchHelper
FSWatcher._awaitWriteFinishchokidar(path: string, threshold: number, event: EventName, awfEmit: (err?: Error | undefined, stat?: any) => void): void
FSWatcher._removeIgnoredPathchokidar(matcher: Matcher): void
FSWatcher._hasReadPermissionschokidar(stats: Stats): boolean

Membros de classes ou interfaces alterados

memberAntesDepois
FSWatcher.add(paths_: string | string[], _origAdd?: string | undefined, _internal?: boolean | undefined): FSWatcher(paths_: string | string[]): FSWatcher
FSWatcher.constructor(_opts?: Partial<BasicOpts & { ignored: Matcher | Matcher[]; awaitWriteFinish: boolean | Partial<AWF>; }> | undefined): FSWatcher(_opts?: Partial<BasicOptions & { ignored: Matcher | Matcher[]; awaitWriteFinish: boolean | Partial<AWF>; }> | undefined, scheduler?: Scheduler | undefined): FSWatcher
FSWatcher.emitWithAll(event: EventName, args: EmitArgs): voidany
FSWatcherEventMap.raw[ev: WatchEventType, path: string, opts: unknown][ev: WatchEventType, path: string | null, opts: unknown]

Novas descontinuações

Nenhuma detectada.

Mudanças de requisitos (engines, dependências peer)

AntesDepois
engines.node>= 20.19.0—
Novos exports (4)
importexportkind
chokidarSchedulerinterface
chokidarWatchBackendtype
chokidarSchedulerTimerinterface
chokidarBackendStrategytype

Dê estes dados ao seu agente de IA

Vigia é um servidor MCP gratuito: seu agente de programação verifica versões, mudanças incompatíveis e vulnerabilidades antes de escrever código. Sem cadastro, sem chave de API.

claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp

Adicionar ao CursorAdicionar ao VS Code★ Estrela no GitHub

Qualquer outro cliente MCP
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }

Skill para agentes (SKILL.md): diz ao agente quando usar o Vigia · GitHub Action para pull requests

Perguntas frequentes

Quais são as mudanças incompatíveis ao atualizar chokidar de 5 para 6?

Entre chokidar 5.0.0 e 6.0.0, o Vigia encontrou 1 exports removidos, 7 assinaturas alteradas e 37 membros de classes ou interfaces removidos ou alterados.

O que foi descontinuado em chokidar 6?

0 exports ou membros foram marcados como descontinuados em chokidar 6.0.0.

Para agentes

GET https://vigia.coredls.cloud/v1/packages/npm/chokidar/upgrade?from=5.0.0&to=6.0.0