Vigia

react-native-blob-util को 0.x से 1.x पर अपग्रेड करना

react-native-blob-util 0.25.3 और 1.1.0 के सार्वजनिक API की तुलना, उनके TypeScript टाइप से अपने-आप निकाली गई। बदला हुआ सिग्नेचर संभावित असंगत बदलाव है, निश्चितता नहीं।

सारांश

हटाए गए इम्पोर्ट पाथ0
हटाए गए एक्सपोर्ट15
बदले गए सिग्नेचर6
क्लास या इंटरफ़ेस के हटाए गए सदस्य5
क्लास या इंटरफ़ेस के बदले गए सदस्य46
नए डिप्रिकेटेड24
आवश्यकताओं में बदलाव (engines, peer निर्भरताएँ)1
नए एक्सपोर्ट33

हटाए गए एक्सपोर्ट

importexportkindपहले
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

बदले गए सिग्नेचर

exportपहलेबाद में
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

क्लास या इंटरफ़ेस के हटाए गए सदस्य

memberimportपहले
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

क्लास या इंटरफ़ेस के बदले गए सदस्य

memberपहलेबाद में
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"

नए डिप्रिकेटेड

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

आवश्यकताओं में बदलाव (engines, peer निर्भरताएँ)

पहलेबाद में
peerDependencies.react-native*>=0.84.0
नए एक्सपोर्ट (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

अपने AI एजेंट को ये तथ्य दें

Vigia एक मुफ़्त MCP सर्वर है: आपका कोडिंग एजेंट कोड लिखने से पहले वर्ज़न, ब्रेकिंग बदलाव और कमज़ोरियाँ जाँचता है। न साइनअप, न API कुंजी।

claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp

Cursor में जोड़ेंVS Code में जोड़ें★ GitHub पर स्टार दें

कोई भी दूसरा MCP क्लाइंट
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }

एजेंट स्किल (SKILL.md): एजेंट को बताती है कि Vigia कब इस्तेमाल करना है · पुल रिक्वेस्ट के लिए GitHub Action

अक्सर पूछे जाने वाले प्रश्न

react-native-blob-util को 0 से 1 पर अपग्रेड करने पर कौन-से असंगत बदलाव हैं?

react-native-blob-util 0.25.3 और 1.1.0 के बीच Vigia को 15 हटाए गए एक्सपोर्ट, 6 बदले गए सिग्नेचर और 51 हटाए या बदले गए क्लास/इंटरफ़ेस सदस्य मिले।

react-native-blob-util 1 में क्या डिप्रिकेट हुआ?

react-native-blob-util 1.1.0 में 24 एक्सपोर्ट या सदस्य नए रूप से डिप्रिकेटेड चिह्नित हैं।

एजेंटों के लिए

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