将 convert-source-map 从 1.x 升级到 2.x
根据 TypeScript 类型自动比较 convert-source-map 1.9.0 与 2.0.0 的公开 API。签名变化表示可能存在不兼容变更,并非确定结论。
概要
| 已删除的导入路径 | 0 |
|---|---|
| 已删除的导出 | 0 |
| 已修改的签名 | 2 |
| 已删除的类或接口成员 | 0 |
| 已修改的类或接口成员 | 1 |
| 新增弃用 | 0 |
| 要求变化(engines、peer 依赖) | 0 |
| 新增导出 | 1 |
已删除的导出
未发现。
已修改的签名
| export | 之前 | 之后 |
|---|---|---|
convert-source-map · fromMapFileSource | (content: string, commentFileDir: string): SourceMapConverter | null | (content: string, readMap: (filename: string) => string): SourceMapConverter | null | (content: string, readMap: (filename: string) => Promise<string>): Promise<SourceMapConverter | null> |
convert-source-map · fromMapFileComment | (comment: string, commentFileDir: string): SourceMapConverter | (comment: string, readMap: (filename: string) => string): SourceMapConverter | (comment: string, readMap: (filename: string) => Promise<string>): Promise<SourceMapConverter> |
已删除的类或接口成员
未发现。
已修改的类或接口成员
| member | 之前 | 之后 |
|---|---|---|
SourceMapConverter.toComment | (options?: { multiline?: boolean | undefined; } | undefined): string | (options?: { multiline?: boolean | undefined; encoding?: "uri" | undefined; } | undefined): string |
新增弃用
未发现。
要求变化(engines、peer 依赖)
未发现。
新增导出 (1)
| import | export | kind |
|---|---|---|
convert-source-map | fromURI | function |
常见问题
将 convert-source-map 从 1 升级到 2 有哪些不兼容变更?
在 convert-source-map 1.9.0 与 2.0.0 之间,Vigia 发现 0 个已删除的导出、2 个已修改的签名,以及 1 个已删除或修改的类或接口成员。
convert-source-map 2 中弃用了哪些内容?
convert-source-map 2.0.0 中有 0 个导出或成员新被标记为弃用。
供智能体使用
GET https://vigia.coredls.cloud/v1/packages/npm/convert-source-map/upgrade?from=1.9.0&to=2.0.0