Vigia

Nâng cấp espree từ 10.x lên 11.x

So sánh API công khai của espree 10.4.0 và 11.2.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óa0
Export bị xóa0
Chữ ký thay đổi6
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ợ0
Thay đổi yêu cầu (engines, phụ thuộc peer)1
Export mới6

Export bị xóa

Không phát hiện.

Chữ ký thay đổi

exportTrướcSau
espree · parse(code: string, options?: Options | undefined): Program(code: string, options?: Options | undefined): acorn.Program
espree · Optionsinterface{ allowReserved?: boolean | undefined; ecmaVersion?: EcmaVersion | undefined; sourceType?: "script" | "module" | "commonjs" | undefined; ecmaFeatures?: { jsx?: boolean | undefined; globalReturn?: boolean | undefined; impliedStrict?: boolean | undefined; } | undefined; range?: boolean | undefined; loc?: boolean | undefined; tokens?: boolean | undefined; comment?: boolean | undefined; }
espree · tokenize(code: string, options?: Options | undefined): Token[](code: string, options?: Options | undefined): EspreeTokens
espree · VisitorKeysVisitorKeysany
espree · latestEcmaVersionnumber17
espree · supportedEcmaVersionsnumber[][3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]

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ợ

Không phát hiện.

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

TrướcSau
engines.node^18.18.0 || ^20.9.0 || >=21.1.0^20.19.0 || ^22.13.0 || >=24
Export mới (6)
importexportkind
espreenamevariable
espreeSyntaxvariable
espreeEcmaVersiontype
espreeEspreeTokentype
espreeEspreeTokenstype
espreeEspreeCommenttype

Câu hỏi thường gặp

Nâng cấp espree từ 10 lên 11 có những thay đổi không tương thích nào?

Giữa espree 10.4.0 và 11.2.0, Vigia tìm thấy 0 export bị xóa, 6 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 espree 11?

0 export hoặc thành viên mới bị đánh dấu ngừng hỗ trợ trong espree 11.2.0.

Dành cho tác tử

GET https://vigia.coredls.cloud/v1/packages/npm/espree/upgrade?from=10.4.0&to=11.2.0