Vigia

Nâng cấp react-native-blob-util từ 0.x lên 1.x

So sánh API công khai của react-native-blob-util 0.25.3 và 1.1.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óa15
Chữ ký thay đổi6
Thành viên lớp hoặc interface bị xóa5
Thành viên lớp hoặc interface thay đổi46
Mới bị ngừng hỗ trợ24
Thay đổi yêu cầu (engines, phụ thuộc peer)1
Export mới33

Export bị xóa

importexportkindTrước
react-native-blob-utilNetinterfaceinterface
react-native-blob-utilPolyfillinterfaceinterface
react-native-blob-utilPolyfillBlobclassclass
react-native-blob-utilPolyfillFileclassclass
react-native-blob-utilPolyfillEventclassclass
react-native-blob-utilPolyfillFetchclassclass
react-native-blob-utilRNFetchBlobDfIOSinterfaceinterface
react-native-blob-utilPolyfillFileReaderinterfaceinterface
react-native-blob-utilRNFetchBlobDfAndroidinterfaceinterface
react-native-blob-utilPolyfillProgressEventinterfaceinterface
react-native-blob-utilPolyfillXMLHttpRequestinterfaceinterface
react-native-blob-utilReactNativeBlobUtilFileclassclass
react-native-blob-utilReactNativeBlobUtilFetchPolyfillclassclass
react-native-blob-utilReactNativeBlobUtilFetchRepsonseinterfaceinterface
react-native-blob-utilPolyfillXMLHttpRequestEventTargetinterfaceinterface

Chữ ký thay đổi

exportTrướcSau
react-native-blob-util · RNFetchBlobDfRNFetchBlobDfIOS & RNFetchBlobDfAndroidReactNativeBlobUtilDf
react-native-blob-util · FetchBlobResponseinterfaceclass
react-native-blob-util · ReactNativeBlobUtilStatclassinterface
react-native-blob-util · ReactNativeBlobUtilStreaminterfaceReactNativeBlobUtilReadStream
react-native-blob-util · ReactNativeBlobUtilReadStreaminterfaceclass
react-native-blob-util · ReactNativeBlobUtilWriteStreaminterfaceclass

Thành viên lớp hoặc interface bị xóa

memberimportTrước
StatefulPromise.expirereact-native-blob-util(callback: () => void): StatefulPromise<void>
FetchBlobResponse.blobreact-native-blob-util(contentType: string, sliceSize: number): Promise<PolyfillBlob>
ReactNativeBlobUtilConfig.Progressreact-native-blob-util{ count?: number | undefined; interval?: number | undefined; } | undefined
ReactNativeBlobUtilConfig.indicatorreact-native-blob-utilboolean | undefined
ReactNativeBlobUtilConfig.UploadProgressreact-native-blob-util{ count?: number | undefined; interval?: number | undefined; } | undefined

Thành viên lớp hoặc interface thay đổi

memberTrướcSau
FS.cp(path: string, dest: string): Promise<boolean>(path: string, dest: string): Promise<void>
FS.df(): Promise<RNFetchBlobDf>(): Promise<ReactNativeBlobUtilDf>
FS.ls(path: string): Promise<string[]>(path: string, options?: { stats?: false | undefined; } | undefined): Promise<string[]> | (path: string, options: { stats: true; }): Promise<ReactNativeBlobUtilStat[]>
FS.mv(path: string, dest: string): Promise<boolean>(path: string, dest: string): Promise<void>
FS.slice(src: string, dest: string, start: number, end: number): Promise<string>(src: string, dest: string, start?: number | undefined, end?: number | undefined): Promise<void>
FS.readFile(path: string, encoding: Encoding, bufferSize?: number | undefined): Promise<any>(path: string, encoding: "ascii"): Promise<number[]> | (path: string, encoding?: "base64" | "utf8" | undefined): Promise<string> | (path: string, encoding: "ascii", options: { transform?: boolean | undefined; }): Promise<number[]> | (path: string, encoding: "base64" | "utf8" | undefined, options: { …
FS.scanFile(pairs: { [key: string]: string; }[]): Promise<void>(files: { path: string; mime?: string | undefined; }[]): Promise<void>
FS.writeFile(path: string, data: string | number[], encoding?: Encoding | undefined): Promise<void>(path: string, data: string, encoding?: "base64" | "utf8" | "uri" | undefined): Promise<number> | (path: string, data: number[], encoding: "ascii"): Promise<number> | (path: string, data: string, encoding: "base64" | "utf8" | "uri" | undefined, options: { transform?: boolean | undefined; }): Promise…
FS.appendFile(path: string, data: string | number[], encoding?: Encoding | "uri" | undefined): Promise<number>(path: string, data: string, encoding?: "base64" | "utf8" | "uri" | undefined): Promise<number> | (path: string, data: number[], encoding: "ascii"): Promise<number> | (path: string, data: string | number[], encoding?: WriteEncoding | undefined): Promise<number> | (path: string, data: string | number…
FS.createFile(path: string, data: string, encoding: Encoding): Promise<void>(path: string, data: string, encoding?: "base64" | "utf8" | "uri" | undefined): Promise<void> | (path: string, data: number[], encoding: "ascii"): Promise<void> | (path: string, data: string | number[], options: { encoding?: WriteEncoding | undefined; }): Promise<void>
FS.readStream(path: string, encoding: Encoding, bufferSize?: number | undefined, tick?: number | undefined): Promise<ReactNativeBlobUtilReadStream>(path: string, encoding?: Encoding | undefined, bufferSize?: number | undefined, tick?: number | undefined): Promise<ReactNativeBlobUtilReadStream> | (path: string, options: { encoding?: Encoding | undefined; bufferSize?: number | undefined; tick?: number | undefined; }): Promise<ReactNativeBlobUtil…
FS.writeStream(path: string, encoding: Encoding, append?: boolean | undefined): Promise<ReactNativeBlobUtilWriteStream>(path: string, encoding?: Encoding | undefined, append?: boolean | undefined): Promise<ReactNativeBlobUtilWriteStream> | (path: string, options: { encoding?: Encoding | undefined; append?: boolean | undefined; }): Promise<ReactNativeBlobUtilWriteStream>
FS.readFileWithTransform(path: string, encoding: Encoding, bufferSize?: number | undefined): Promise<any>(path: string, encoding: "ascii"): Promise<number[]> | (path: string, encoding?: "base64" | "utf8" | undefined): Promise<string>
FS.writeFileWithTransform(path: string, data: string | number[], encoding?: Encoding | undefined): Promise<void>(path: string, data: string, encoding?: "base64" | "utf8" | "uri" | undefined): Promise<number>
FS.ReactNativeBlobUtilSessionReactNativeBlobUtilSessiontypeof ReactNativeBlobUtilSession
IOSApi.presentPreview(path: string, scheme?: string | undefined): void(path: string, scheme?: string | undefined): Promise<void>
IOSApi.previewDocument(path: string, scheme?: string | undefined): void(path: string, scheme?: string | undefined): Promise<void>
IOSApi.presentOpenInMenu(path: string, scheme?: string | undefined): void(path: string, scheme?: string | undefined): Promise<void>
IOSApi.presentOptionsMenu(path: string, scheme?: string | undefined): void(path: string, scheme?: string | undefined): Promise<void>
AndroidApi.actionViewIntent(path: string, mime: string, chooserTitle?: string | undefined): Promise<boolean | null>(path: string, mime: string, chooserTitle?: string | undefined): Promise<void>
AndroidApi.getContentIntent(mime: string): Promise<any>(mime: string): Promise<string | null>
MediaCollection.getBlob(contenturi: string, encoding: string): Promise<string>(contenturi: string, encoding: "ascii"): Promise<number[]> | (contenturi: string, encoding: "base64" | "utf8"): Promise<string>
StatefulPromise.cancel(cb?: ((reason: any) => void) | undefined): StatefulPromise<FetchBlobResponse>(callback?: ((reason?: any) => void) | undefined): Promise<void>
StatefulPromise.progress(callback: (received: number, total: number) => void): StatefulPromise<FetchBlobResponse> | (config: { count?: number | undefined; interval?: number | undefined; }, callback: (received: number, total: number) => void): StatefulPromise<FetchBlobResponse>(callback: ProgressHandler): StatefulPromise<T> | (config: ProgressConfig, callback: ProgressHandler): StatefulPromise<T>
StatefulPromise.uploadProgress(callback: (sent: number, total: number) => void): StatefulPromise<FetchBlobResponse> | (config: { count?: number | undefined; interval?: number | undefined; }, callback: (sent: number, total: number) => void): StatefulPromise<FetchBlobResponse>(callback: UploadProgressHandler): StatefulPromise<T> | (config: ProgressConfig, callback: UploadProgressHandler): StatefulPromise<T>
FetchBlobResponse.json(): any(): Promise<any>
FetchBlobResponse.path(): string(): string | null
FetchBlobResponse.text(): string | Promise<any>(): Promise<string>
FetchBlobResponse.flush(): void(): Promise<void>
FetchBlobResponse.base64(): any(): Promise<string>
FetchBlobResponse.session(name: string): ReactNativeBlobUtilSession | null(name: string): ReactNativeBlobUtilSession
FetchBlobResponse.readFile(encode: Encoding): Promise<any> | null(encoding: "ascii"): Promise<number[]> | (encoding: "base64" | "utf8"): Promise<string>
FetchBlobResponse.readStream(encode: Encoding): ReactNativeBlobUtilStream | null(encoding: Encoding): Promise<ReactNativeBlobUtilReadStream>
AndroidDownloadOption.showNotificationbooleanboolean | undefined
ReactNativeBlobUtilStat.type"directory" | "file""file" | "directory" | "asset"
ReactNativeBlobUtilStat.constructor(): ReactNativeBlobUtilStat
ReactNativeBlobUtilSession.constructor(name: string, list: string[]): ReactNativeBlobUtilSession(name: string, list?: string[] | undefined): ReactNativeBlobUtilSession
ReactNativeBlobUtilSession.static getSession(name: string): any(name: string): string[] | undefined
ReactNativeBlobUtilSession.static setSession(name: string): void(name: string, list: string[]): void
ReactNativeBlobUtilReadStream.open(): void(): Promise<void>
ReactNativeBlobUtilReadStream.onError(fn: (err: any) => void): void(fn: (err: CodedError) => void): void
ReactNativeBlobUtilWriteStream.write(data: string): Promise<void>(data: string | number[]): Promise<ReactNativeBlobUtilWriteStream>
ReactNativeBlobUtilResponseInfo.headersany{ [name: string]: string; }
ReactNativeBlobUtilResponseInfo.timeoutbooleanboolean | undefined
ReactNativeBlobUtilResponseInfo.redirectsstring[]string[] | undefined
ReactNativeBlobUtilResponseInfo.rnfbEncode"base64" | "path" | "utf8" | "ascii""base64" | "path" | "utf8"

Mới bị ngừng hỗ trợ

export@deprecated
react-native-blob-util · FS.lstatuse `ls(path, {stats: true})`
react-native-blob-util · FS.scanFileuse `media.scan`
react-native-blob-util · FS.pathForAppGroupuse `fs.appGroupDir`
react-native-blob-util · FS.readFileWithTransformuse `readFile(path, encoding, {transform: true})`
react-native-blob-util · FS.writeFileWithTransformuse `writeFile(path, data, encoding, {transform: true})`
react-native-blob-util · Dirs.SDCardDir—
react-native-blob-util · Dirs.LegacySDCardDir—
react-native-blob-util · IOSApiThe names from before 1.0; each forwards to `open.*` or `fs.*`.
react-native-blob-util · IOSApi.openDocumentuse `open.optionsMenu`
react-native-blob-util · IOSApi.previewDocumentuse `open.file`
react-native-blob-util · AndroidApiThe names from before 1.0; each forwards to `open.*` or `media.*`.
react-native-blob-util · AndroidApi.actionViewIntentuse `open.file` or `open.chooser`
react-native-blob-util · RNFetchBlobDfuse ReactNativeBlobUtilDf
react-native-blob-util · MediaCollectionThe names from before 1.0; each forwards to `media.*`.
react-native-blob-util · MediaCollection.createMediafileuse `media.createFile`
react-native-blob-util · MediaCollection.writeToMediafileuse `media.write`
react-native-blob-util · MediaCollection.writeToMediafileWithTransformuse `media.write(uri, path, {transform: true})`
react-native-blob-util · AndroidDownloadOption.showNotificationuse `notification`
react-native-blob-util · ReactNativeBlobUtilConfig.wifiOnlyuse `android.wifiOnly`
react-native-blob-util · ReactNativeBlobUtilConfig.targetHostIpuse `android.targetHostIp`
react-native-blob-util · ReactNativeBlobUtilConfig.transformFileuse `transform`
react-native-blob-util · ReactNativeBlobUtilConfig.IOSBackgroundTaskuse `ios.backgroundTask`
react-native-blob-util · ReactNativeBlobUtilConfig.addAndroidDownloadsuse `android.downloadManager`
react-native-blob-util · ReactNativeBlobUtilStreamuse ReactNativeBlobUtilReadStream

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

TrướcSau
peerDependencies.react-native*>=0.84.0
Export mới (33)
importexportkind
react-native-blob-utilfsvariable
react-native-blob-utilopenvariable
react-native-blob-utilwrapvariable
react-native-blob-utilfetchvariable
react-native-blob-utilmediavariable
react-native-blob-utilbase64variable
react-native-blob-utilconfigvariable
react-native-blob-utilMethodstype
react-native-blob-utilOpenApiinterface
react-native-blob-utilURIUtilvariable
react-native-blob-utilgetUUIDfunction
react-native-blob-utilsessionvariable
react-native-blob-utilFileBodyinterface
react-native-blob-utilMediaApiinterface
react-native-blob-utilTextBodyinterface
react-native-blob-utilErrorCodetype
react-native-blob-utilFormFieldinterface
react-native-blob-utilBase64Bodyinterface
react-native-blob-utilCodedErrorinterface
react-native-blob-utilFetchErrorinterface
react-native-blob-utilFileOptionsinterface
react-native-blob-utilRequestBodytype
react-native-blob-utilExplicitBodytype
react-native-blob-utilHashAlgorithmtype
react-native-blob-utilWriteEncodingtype
react-native-blob-utilProgressConfiginterface
react-native-blob-utilRequestHeaderstype
react-native-blob-utilfiledescriptorinterface
react-native-blob-utilProgressHandlertype
react-native-blob-utilCanceledFetchErrorclass
react-native-blob-utilReactNativeBlobUtilDfinterface
react-native-blob-utilUploadProgressHandlertype
react-native-blob-utilReactNativeBlobUtilStaticinterface

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 react-native-blob-util từ 0 lên 1 có những thay đổi không tương thích nào?

Giữa react-native-blob-util 0.25.3 và 1.1.0, Vigia tìm thấy 15 export bị xóa, 6 chữ ký thay đổi và 51 thành viên lớp hoặc interface bị xóa hay thay đổi.

Những gì bị ngừng hỗ trợ trong react-native-blob-util 1?

24 export hoặc thành viên mới bị đánh dấu ngừng hỗ trợ trong react-native-blob-util 1.1.0.

Dành cho tác tử

GET https://vigia.coredls.cloud/v1/packages/npm/react-native-blob-util/upgrade?from=0.25.3&to=1.1.0