flat-cache을(를) 5.x에서 6.x로 업그레이드하기
flat-cache 5.0.0과 6.1.23의 공개 API를 TypeScript 타입에서 자동으로 비교한 결과입니다. 시그니처 변경은 호환성이 깨질 가능성이 있다는 뜻이며 확정은 아닙니다.
요약
| 삭제된 import 경로 | 0 |
|---|---|
| 삭제된 export | 2 |
| 변경된 시그니처 | 4 |
| 삭제된 클래스·인터페이스 멤버 | 0 |
| 변경된 클래스·인터페이스 멤버 | 0 |
| 새로 지원 중단됨 | 0 |
| 요구 사항 변경 (engines, peer 의존성) | 1 |
| 새 export | 4 |
삭제된 export
| import | export | kind | 이전 |
|---|---|---|---|
flat-cache | load | function | (cacheId: string, cacheDir?: string | undefined): Cache |
flat-cache | Cache | interface | interface |
변경된 시그니처
| export | 이전 | 이후 |
|---|---|---|
flat-cache · create | (cacheId: string, cacheDir?: string | undefined): Cache | (options?: FlatCacheOptions | undefined): FlatCache |
flat-cache · clearAll | (cacheDir?: string | undefined): boolean | (cacheDirectory?: string | undefined): void |
flat-cache · clearCacheById | (cacheId: string, cacheDir?: string | undefined): boolean | (cacheId: string, cacheDirectory?: string | undefined): void |
flat-cache · createFromFile | (filePath: string): Cache | (filePath: string, options?: FlatCacheOptions | undefined): FlatCache |
삭제된 클래스·인터페이스 멤버
감지되지 않았습니다.
변경된 클래스·인터페이스 멤버
감지되지 않았습니다.
새로 지원 중단됨
감지되지 않았습니다.
요구 사항 변경 (engines, peer 의존성)
| 이전 | 이후 | |
|---|---|---|
engines.node | >=18 | — |
새 export (4)
| import | export | kind |
|---|---|---|
flat-cache | default | class |
flat-cache | FlatCache | class |
flat-cache | FlatCacheEvents | enum |
flat-cache | FlatCacheOptions | type |
자주 묻는 질문
flat-cache을(를) 5에서 6(으)로 업그레이드할 때 호환성이 깨지는 변경은 무엇인가요?
flat-cache 5.0.0과 6.1.23 사이에서 Vigia는 삭제된 export 2개, 변경된 시그니처 4개, 삭제되거나 변경된 클래스·인터페이스 멤버 0개를 찾았습니다.
flat-cache 6에서 지원 중단된 것은 무엇인가요?
flat-cache 6.1.23에서 export 또는 멤버 0개가 새로 지원 중단으로 표시되었습니다.
에이전트용
GET https://vigia.coredls.cloud/v1/packages/npm/flat-cache/upgrade?from=5.0.0&to=6.1.23