Vigia

Nâng cấp @nuxt/devtools-kit từ 3.x lên 4.x

So sánh API công khai của @nuxt/devtools-kit 3.4.4 và 4.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óa3
Export bị xóa0
Chữ ký thay đổi1
Thành viên lớp hoặc interface bị xóa0
Thành viên lớp hoặc interface thay đổi0
Mới bị ngừng hỗ trợ4
Thay đổi yêu cầu (engines, phụ thuộc peer)3
Export mới15

Đường dẫn import bị xóa

Đường dẫn import bị xóa
@nuxt/devtools-kit/types
@nuxt/devtools-kit/host-client
@nuxt/devtools-kit/iframe-client

Export bị xóa

Không phát hiện.

Chữ ký thay đổi

exportTrướcSau
@nuxt/devtools-kit · startSubprocess(execaOptions: SubprocessOptions, tabOptions: TerminalState, nuxt?: any): { getProcess: () => ExecaChildProcess<string>; terminate: () => void; restart: () => void; clear: () => void; }(execaOptions: SubprocessOptions, tabOptions: TerminalState, nuxt?: any): StartSubprocessReturn

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
@nuxt/devtools-kit · addCustomTabRegister a dock entry from the `devtools:ready` hook instead: `onDevtoolsReady((ctx) => ctx.docks.register(...))`. Still works as a shim, but emits the `NDT_DEP_0005` deprecation diagnostic. Note the docks host does not yet cover `vnode` views or tab categories.
@nuxt/devtools-kit · extendServerRpcRegister RPC functions from the `devtools:ready` hook instead: `onDevtoolsReady((ctx) => ctx.rpc.register(defineRpcFunction(...)))`. Still works as a shim, but emits the `NDT_DEP_0003` deprecation diagnostic.
@nuxt/devtools-kit · startSubprocessUse the Vite DevTools terminals host from the `devtools:ready` hook instead: `onDevtoolsReady((ctx) => ctx.terminals.startChildProcess(...))`. Still works as a shim, but emits the `NDT_DEP_0004` deprecation diagnostic.
@nuxt/devtools-kit · refreshCustomTabsUpdate dock entries directly via the handle returned by `ctx.docks.register(...)` inside the `devtools:ready` hook. Still works as a shim, but emits the `NDT_DEP_0006` deprecation diagnostic.

Thay đổi yêu cầu (engines, phụ thuộc peer)

TrướcSau
peerDependencies.nitro—*
peerDependencies.@nuxt/kit—^4.0.0-0 || ^5.0.0-0
peerDependencies.nitropack—^2.0.0
Export mới (15)
importexportkind
@nuxt/devtools-kitdeprecatefunction
@nuxt/devtools-kitdiagnosticCodesvariable
@nuxt/devtools-kitonDevtoolsReadyfunction
@nuxt/devtools-kitDeprecateOptionsinterface
@nuxt/devtools-kitDeprecationParamsinterface
@nuxt/devtools-kitdefineDiagnosticsvariable
@nuxt/devtools-kitdeprecateWithNuxtfunction
@nuxt/devtools-kitNuxtDiagnosticCodetype
@nuxt/devtools-kitconsoleDiagnosticsvariable
@nuxt/devtools-kitdiagnosticsDocsBasefunction
@nuxt/devtools-kitStartSubprocessReturninterface
@nuxt/devtools-kitcreateConsoleReportervariable
@nuxt/devtools-kitNUXT_DEVTOOLS_GROUP_IDvariable
@nuxt/devtools-kitregisterHostDiagnosticsfunction
@nuxt/devtools-kitdefineStandaloneDiagnosticsfunction

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 @nuxt/devtools-kit từ 3 lên 4 có những thay đổi không tương thích nào?

Giữa @nuxt/devtools-kit 3.4.4 và 4.0.0, Vigia tìm thấy 0 export bị xóa, 1 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 @nuxt/devtools-kit 4?

4 export hoặc thành viên mới bị đánh dấu ngừng hỗ trợ trong @nuxt/devtools-kit 4.0.0.

Dành cho tác tử

GET https://vigia.coredls.cloud/v1/packages/npm/@nuxt/devtools-kit/upgrade?from=3.4.4&to=4.0.0