将 fast-glob 从 2.x 升级到 3.x
根据 TypeScript 类型自动比较 fast-glob 2.2.7 与 3.3.3 的公开 API。签名变化表示可能存在不兼容变更,并非确定结论。
概要
| 已删除的导入路径 | 0 |
|---|---|
| 已删除的导出 | 2 |
| 已修改的签名 | 2 |
| 已删除的类或接口成员 | 0 |
| 已修改的类或接口成员 | 0 |
| 新增弃用 | 0 |
| 要求变化(engines、peer 依赖) | 1 |
| 新增导出 | 15 |
已删除的导出
| import | export | kind | 之前 |
|---|---|---|---|
fast-glob | IApi | interface | interface |
fast-glob | TransformFunction | type | (entry: EntryItem) => T |
已修改的签名
| export | 之前 | 之后 |
|---|---|---|
fast-glob · Task | ITask | { base: string; dynamic: boolean; patterns: string[]; positive: string[]; negative: string[]; } |
fast-glob · Options | { cwd?: string | undefined; deep?: number | boolean | undefined; ignore?: string[] | undefined; dot?: boolean | undefined; stats?: boolean | undefined; onlyFiles?: boolean | undefined; onlyDirectories?: boolean | undefined; followSymlinkedDirectories?: boolean | undefined; unique?: boolean | undefined; markDirectories?: boolean | undefined; absolute?: boolean | undefined; nobrace?: boolean | undefined; brace?: boolean | undefined; noglobstar?: boolean | undefined; globstar?: boolean | undefined; noext?: boolean | undefined; extension?: boolean | undefined; nocase?: boolean | undefined; case?: … | { absolute?: boolean | undefined; baseNameMatch?: boolean | undefined; braceExpansion?: boolean | undefined; caseSensitiveMatch?: boolean | undefined; concurrency?: number | undefined; cwd?: string | undefined; deep?: number | undefined; dot?: boolean | undefined; extglob?: boolean | undefined; followSymbolicLinks?: boolean | undefined; fs?: any; globstar?: boolean | undefined; ignore?: string[] | undefined; markDirectories?: boolean | undefined; objectMode?: boolean | undefined; onlyDirectories?: boolean | undefined; onlyFiles?: boolean | undefined; stats?: boolean | undefined; suppressErrors… |
已删除的类或接口成员
未发现。
已修改的类或接口成员
未发现。
新增弃用
未发现。
要求变化(engines、peer 依赖)
| 之前 | 之后 | |
|---|---|---|
engines.node | >=4.0.0 | >=8.6.0 |
新增导出 (15)
| import | export | kind |
|---|---|---|
fast-glob | glob | variable |
fast-glob | sync | function |
fast-glob | Entry | type |
fast-glob | async | variable |
fast-glob | posix | namespace |
fast-glob | win32 | namespace |
fast-glob | stream | function |
fast-glob | Pattern | type |
fast-glob | globSync | variable |
fast-glob | escapePath | function |
fast-glob | globStream | variable |
fast-glob | generateTasks | function |
fast-glob | isDynamicPattern | function |
fast-glob | FileSystemAdapter | type |
fast-glob | convertPathToPattern | function |
常见问题
将 fast-glob 从 2 升级到 3 有哪些不兼容变更?
在 fast-glob 2.2.7 与 3.3.3 之间,Vigia 发现 2 个已删除的导出、2 个已修改的签名,以及 0 个已删除或修改的类或接口成员。
fast-glob 3 中弃用了哪些内容?
fast-glob 3.3.3 中有 0 个导出或成员新被标记为弃用。
供智能体使用
GET https://vigia.coredls.cloud/v1/packages/npm/fast-glob/upgrade?from=2.2.7&to=3.3.3