Vigia

将 @nx/rspack 从 23.x 升级到 24.x

根据 TypeScript 类型自动比较 @nx/rspack 23.3.1 与 24.0.0 的公开 API。签名变化表示可能存在不兼容变更,并非确定结论。

概要

已删除的导入路径0
已删除的导出2
已修改的签名10
已删除的类或接口成员0
已修改的类或接口成员0
新增弃用4
要求变化(engines、peer 依赖)0
新增导出0

已删除的导出

importexportkind之前
@nx/rspack/plugincreateDependenciesvariableCreateDependencies
@nx/rspack/plugin.jscreateDependenciesvariableCreateDependencies

已修改的签名

export之前之后
@nx/rspack · withNx(pluginOptions?: Partial<NxAppRspackPluginOptions> | undefined): NxComposableRspackPlugin(_options?: Partial<NxAppRspackPluginOptions> | undefined): NxComposableRspackPlugin
@nx/rspack · withWeb(pluginOptions?: WithWebOptions | undefined): (config: Configuration, { options, context }: NxRspackExecutionContext) => Configuration(_options?: WithWebOptions | undefined): NxComposableRspackPlugin
@nx/rspack · withReact(opts?: WithReactOptions | undefined): (config: Configuration, { options, context }: NxRspackExecutionContext) => Configuration(_options?: WithReactOptions | undefined): NxComposableRspackPlugin
@nx/rspack · composePlugins(...plugins: (AsyncNxComposableRspackPlugin | NxComposableRspackPlugin | Promise<AsyncNxComposableRspackPlugin | NxComposableRspackPlugin>)[]): ((config: Configuration, ctx: NxRspackExecutionContext) => Promise<Configuration>) & { nxRspackComposablePlugin: boolean; }(..._plugins: (AsyncNxComposableRspackPlugin | NxComposableRspackPlugin | Promise<AsyncNxComposableRspackPlugin | NxComposableRspackPlugin>)[]): ((config?: any, ctx?: NxRspackExecutionContext | undefined) => Promise<Configuration>) & { nxRspackComposablePlugin: boolean; }
@nx/rspack · composePluginsSync(...plugins: NxComposableRspackPlugin[]): ((config: Configuration, ctx: NxRspackExecutionContext) => Configuration) & { nxRspackComposablePlugin: boolean; }(..._plugins: NxComposableRspackPlugin[]): ((config?: any, ctx?: NxRspackExecutionContext | undefined) => Configuration) & { nxRspackComposablePlugin: boolean; }
@nx/rspack · getRspackE2EWebServerInfo(tree: Tree, projectName: string, configFilePath: string, isPluginBeingAdded: boolean, e2ePortOverride?: number | undefined): Promise<any>(tree: Tree, projectName: string, configFilePath: string, e2ePortOverride?: number | undefined): Promise<any>
@nx/rspack/module-federation · withModuleFederationany(..._args: unknown[]): Promise<IdentityConfigFn>
@nx/rspack/module-federation · withModuleFederationForSSRany(..._args: unknown[]): Promise<IdentityConfigFn>
@nx/rspack/module-federation.js · withModuleFederationany(..._args: unknown[]): Promise<IdentityConfigFn>
@nx/rspack/module-federation.js · withModuleFederationForSSRany(..._args: unknown[]): Promise<IdentityConfigFn>

已删除的类或接口成员

未发现。

已修改的类或接口成员

未发现。

新增弃用

export@deprecated
@nx/rspack/module-federation · withModuleFederationRemoved in Nx v24. Use `ModuleFederationPlugin` from `@module-federation/enhanced`. This stub will be removed in Nx v25.
@nx/rspack/module-federation · withModuleFederationForSSRRemoved in Nx v24. Use `ModuleFederationPlugin` from `@module-federation/enhanced`. This stub will be removed in Nx v25.
@nx/rspack/module-federation.js · withModuleFederationRemoved in Nx v24. Use `ModuleFederationPlugin` from `@module-federation/enhanced`. This stub will be removed in Nx v25.
@nx/rspack/module-federation.js · withModuleFederationForSSRRemoved in Nx v24. Use `ModuleFederationPlugin` from `@module-federation/enhanced`. This stub will be removed in Nx v25.

要求变化(engines、peer 依赖)

未发现。

把这些数据交给你的 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" } } }

智能体技能(SKILL.md):告诉智能体何时使用 Vigia · 用于拉取请求的 GitHub Action

常见问题

将 @nx/rspack 从 23 升级到 24 有哪些不兼容变更?

在 @nx/rspack 23.3.1 与 24.0.0 之间,Vigia 发现 2 个已删除的导出、10 个已修改的签名,以及 0 个已删除或修改的类或接口成员。

@nx/rspack 24 中弃用了哪些内容?

@nx/rspack 24.0.0 中有 4 个导出或成员新被标记为弃用。

供智能体使用

GET https://vigia.coredls.cloud/v1/packages/npm/@nx/rspack/upgrade?from=23.3.1&to=24.0.0