Nâng cấp @nx/next từ 23.x lên 24.x
So sánh API công khai của @nx/next 23.3.1 và 24.0.0, được tính tự động từ kiểu TypeScript. Chữ ký thay đổi là thay đổi có thể không tương thích, không phải điều chắc chắn.
Tóm tắt
| Đường dẫn import bị xóa | 0 |
|---|---|
| Export bị xóa | 5 |
| Chữ ký thay đổi | 2 |
| Thành viên lớp hoặc interface bị xóa | 0 |
| Thành viên lớp hoặc interface thay đổi | 0 |
| Mới bị ngừng hỗ trợ | 2 |
| Thay đổi yêu cầu (engines, phụ thuộc peer) | 1 |
| Export mới | 0 |
Export bị xóa
| import | export | kind | Trước |
|---|---|---|---|
@nx/next/src/utils/deprecation | warnNextExecutorGenerating | function | (): void |
@nx/next/src/utils/deprecation | warnNextBuildExecutorDeprecation | function | (): void |
@nx/next/src/utils/deprecation | warnNextServerExecutorDeprecation | function | (): void |
@nx/next/src/utils/deprecation | NEXT_BUILD_EXECUTOR_DEPRECATION_MESSAGE | variable | "The `@nx/next:build` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/next:convert-to-inferred` to migrate to the `@nx/next/plugin` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details." |
@nx/next/src/utils/deprecation | NEXT_SERVER_EXECUTOR_DEPRECATION_MESSAGE | variable | "The `@nx/next:server` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/next:convert-to-inferred` to migrate to the `@nx/next/plugin` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details." |
Chữ ký thay đổi
| export | Trước | Sau |
|---|---|---|
@nx/next · withNx | (_nextConfig?: WithNxOptions | undefined, context?: WithNxContext | undefined): NextConfigFn | (config?: WithNxOptions | undefined, _context?: WithNxContext | undefined): NextConfigFn |
@nx/next · composePlugins | (...plugins: (NextPlugin | NextPluginThatReturnsConfigFn)[]): (baseConfig: NextConfig) => NextConfigFn | (..._plugins: (NextPlugin | NextPluginThatReturnsConfigFn)[]): (baseConfig: NextConfig) => NextConfigFn |
Thành viên lớp hoặc interface bị xóa
Không phát hiện.
Thành viên lớp hoặc interface thay đổi
Không phát hiện.
Mới bị ngừng hỗ trợ
| export | @deprecated |
|---|---|
@nx/next · withNx | Export the Next.js config directly and compose any other wrappers yourself. This inert stub will be removed in Nx v25. |
@nx/next · composePlugins | Export the Next.js config directly and compose any other wrappers yourself. This inert stub will be removed in Nx v25. |
Thay đổi yêu cầu (engines, phụ thuộc peer)
| Trước | Sau | |
|---|---|---|
peerDependencies.@nx/webpack | 23.3.1 | 24.0.0 |
Cung cấp dữ liệu này cho tác tử AI của bạn
Vigia là máy chủ MCP miễn phí: tác tử lập trình của bạn kiểm tra phiên bản, thay đổi phá vỡ tương thích và lỗ hổng trước khi viết mã. Không cần đăng ký, không cần khóa API.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Thêm vào CursorThêm vào VS Code★ Gắn sao trên GitHub
Mọi ứng dụng MCP khác
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Kỹ năng cho tác tử (SKILL.md): cho tác tử biết khi nào dùng Vigia · GitHub Action cho pull request
Câu hỏi thường gặp
Nâng cấp @nx/next từ 23 lên 24 có những thay đổi không tương thích nào?
Giữa @nx/next 23.3.1 và 24.0.0, Vigia tìm thấy 5 export bị xóa, 2 chữ ký thay đổi và 0 thành viên lớp hoặc interface bị xóa hay thay đổi.
Những gì bị ngừng hỗ trợ trong @nx/next 24?
2 export hoặc thành viên mới bị đánh dấu ngừng hỗ trợ trong @nx/next 24.0.0.
Dành cho tác tử
GET https://vigia.coredls.cloud/v1/packages/npm/@nx/next/upgrade?from=23.3.1&to=24.0.0