将 @rsdoctor/core 从 1.x 升级到 2.x
根据 TypeScript 类型自动比较 @rsdoctor/core 1.6.5 与 2.0.0 的公开 API。签名变化表示可能存在不兼容变更,并非确定结论。
概要
| 已删除的导入路径 | 4 |
|---|---|
| 已删除的导出 | 14 |
| 已修改的签名 | 1 |
| 已删除的类或接口成员 | 0 |
| 已修改的类或接口成员 | 1 |
| 新增弃用 | 0 |
| 要求变化(engines、peer 依赖) | 2 |
| 新增导出 | 11 |
已删除的导入路径
| 已删除的导入路径 |
|---|
@rsdoctor/core/rules |
@rsdoctor/core/types |
@rsdoctor/core/plugins |
@rsdoctor/core/build-utils |
已删除的导出
| import | export | kind | 之前 |
|---|---|---|---|
@rsdoctor/core | Rule | interface | interface |
@rsdoctor/core | Build | namespace | namespace |
@rsdoctor/core | InnerPlugins | namespace | namespace |
@rsdoctor/core | AssetsModules | type | { label?: string | undefined; isAsset?: boolean | undefined; modules?: Plugin.StatsModule[] | undefined; } |
@rsdoctor/core | InternalPlugin | interface | interface |
@rsdoctor/core | BasePluginInstance | interface | interface |
@rsdoctor/core | NativePluginConfig | interface | interface |
@rsdoctor/core | ProxyLoaderOptions | interface | interface |
@rsdoctor/core | ProxyLoaderInternalOptions | interface | interface |
@rsdoctor/core | RsdoctorRspackPluginInstance | interface | interface |
@rsdoctor/core | RsdoctorMultiplePluginOptions | interface | interface |
@rsdoctor/core | RsdoctorRspackPluginExperiments | interface | interface |
@rsdoctor/core | RsdoctorRspackPluginOptionsNormalized | type | any |
@rsdoctor/core | RsdoctorRspackPluginExperimentsNormalized | interface | interface |
已修改的签名
| export | 之前 | 之后 |
|---|---|---|
@rsdoctor/core · RsdoctorRspackPluginOptions | interface | Plugin_2.RsdoctorRspackPluginOptions<Rules> |
已删除的类或接口成员
未发现。
已修改的类或接口成员
| member | 之前 | 之后 |
|---|---|---|
RsdoctorPluginInstance.options | Plugin.RsdoctorPluginOptionsNormalized<Rules> | Plugin_2.RsdoctorPluginOptionsNormalized<Rules> |
新增弃用
未发现。
要求变化(engines、peer 依赖)
| 之前 | 之后 | |
|---|---|---|
engines.node | — | ^20.19.0 || >=22.12.0 |
peerDependencies.@rspack/core | — | ^2.0.0 |
新增导出 (11)
| import | export | kind |
|---|---|---|
@rsdoctor/core | rules | variable |
@rsdoctor/core | Linter | class |
@rsdoctor/core | logger | variable |
@rsdoctor/core | LinterRule | class |
@rsdoctor/core | LinterType | variable |
@rsdoctor/core | defineRule | function |
@rsdoctor/core | RsdoctorSDK | class |
@rsdoctor/core | RsdoctorRspackPlugin | class |
@rsdoctor/core | migrateRsdoctorOptions | function |
@rsdoctor/core | CompatibleRsdoctorOptions | type |
@rsdoctor/core | resolveClientDiffHtmlPath | variable |
把这些数据交给你的 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" } } }常见问题
将 @rsdoctor/core 从 1 升级到 2 有哪些不兼容变更?
在 @rsdoctor/core 1.6.5 与 2.0.0 之间,Vigia 发现 14 个已删除的导出、1 个已修改的签名,以及 1 个已删除或修改的类或接口成员。
@rsdoctor/core 2 中弃用了哪些内容?
@rsdoctor/core 2.0.0 中有 0 个导出或成员新被标记为弃用。
供智能体使用
GET https://vigia.coredls.cloud/v1/packages/npm/@rsdoctor/core/upgrade?from=1.6.5&to=2.0.0