将 unbash 从 5.x 升级到 6.x
根据 TypeScript 类型自动比较 unbash 5.1.0 与 6.0.0 的公开 API。签名变化表示可能存在不兼容变更,并非确定结论。
概要
| 已删除的导入路径 | 0 |
|---|---|
| 已删除的导出 | 0 |
| 已修改的签名 | 4 |
| 已删除的类或接口成员 | 5 |
| 已修改的类或接口成员 | 4 |
| 新增弃用 | 0 |
| 要求变化(engines、peer 依赖) | 0 |
| 新增导出 | 7 |
已删除的导出
未发现。
已修改的签名
| export | 之前 | 之后 |
|---|---|---|
unbash · WordPart | LiteralPart | SingleQuotedPart | DoubleQuotedPart | AnsiCQuotedPart | LocaleStringPart | SimpleExpansionPart | ParameterExpansionPart | CommandExpansionPart | ArithmeticExpansionPart | ProcessSubstitutionPart | ExtendedGlobPart | BraceExpansionPart | LiteralPart | GlobPart | SingleQuotedPart | DoubleQuotedPart | AnsiCQuotedPart | LocaleStringPart | SimpleExpansionPart | ParameterExpansionPart | CommandExpansionPart | ArithmeticExpansionPart | ProcessSubstitutionPart | ExtendedGlobPart | BraceExpansionPart |
unbash · SyntaxNode | ParsedScript | Word | WordPart | ParameterOperation | ArithmeticExpression | Assignment | ArrayValue | Redirection | RedirectDescriptor | HereDocDelimiter | HereDocBody | PipelineNode | AndOr | CompoundList | Statement | CaseItem | TestExpression | ParsedScript | Statement | CompoundList | CaseItem | Elif | PipelineNode | PipelinePrefix | AndOr | Word | WordPart | Assignment | ArrayValue | Redirection | RedirectDescriptor | HereDocDelimiter | HereDocBody | ArithmeticExpression | TestExpression | ParameterOperation |
unbash · CommandNode | Command | Redirected | CompoundCommand | Function | Coproc | Command | CompoundCommand | Redirected | Function | Coproc |
unbash · PipelineNode | CommandNode | Pipeline | Time | Negation | CommandNode | Pipeline |
已删除的类或接口成员
| member | import | 之前 |
|---|---|---|
Time.command | unbash | PipelineNode | undefined |
Negation.command | unbash | PipelineNode | undefined |
Negation.keywordEnd | unbash | number |
TestLogicalExpression.left | unbash | TestExpression |
TestLogicalExpression.right | unbash | TestExpression |
已修改的类或接口成员
| member | 之前 | 之后 |
|---|---|---|
If.else | If | CompoundList | undefined | CompoundList | undefined |
Coproc.body | Command | Redirected | CompoundCommand | CompoundList | CompoundList | Command | CompoundCommand | Redirected |
Command.suffix | readonly (CommandArgument | Redirection)[] | readonly (Redirection | CommandArgument)[] |
Function.body | Redirected | CompoundCommand | CompoundList | CompoundList | CompoundCommand | Redirected |
新增弃用
未发现。
要求变化(engines、peer 依赖)
未发现。
新增导出 (7)
| import | export | kind |
|---|---|---|
unbash | Elif | interface |
unbash | GlobPart | type |
unbash | StarGlobPart | interface |
unbash | forEachChild | function |
unbash | PipelinePrefix | type |
unbash | BracketGlobPart | interface |
unbash | QuestionGlobPart | interface |
把这些数据交给你的 AI 智能体
Vigia 是免费的 MCP 服务器:你的编程智能体在写代码之前就能检查版本、不兼容变更和安全漏洞。无需注册,无需 API 密钥。
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
添加到 Cursor添加到 VS Code★ 在 GitHub 上加星
任何其他 MCP 客户端
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }常见问题
将 unbash 从 5 升级到 6 有哪些不兼容变更?
在 unbash 5.1.0 与 6.0.0 之间,Vigia 发现 0 个已删除的导出、4 个已修改的签名,以及 9 个已删除或修改的类或接口成员。
unbash 6 中弃用了哪些内容?
unbash 6.0.0 中有 0 个导出或成员新被标记为弃用。
供智能体使用
GET https://vigia.coredls.cloud/v1/packages/npm/unbash/upgrade?from=5.1.0&to=6.0.0