expo-file-system 57.0.7 → 58.0.10: deprecates 24 API(s)
Compared with 57.0.7: `InfoOptions`, `getInfoAsync`, `readAsStringAsync`, `getContentUriAsync`, `writeAsStringAsync`, and 19 more. 4 newly deprecated.
registry.npmjs.orgquote checked
- 58.0.10from 57.0.7
- Your code24 things to find
Nemotron fixes
In its own wordsread from the page
- InfoOptions: Use `await file.digest('MD5')` to calculate an MD5 digest.
- getInfoAsync: Use `new File().info` or import this method from `expo-file-system/legacy`. This method will throw in runtime.
- readAsStringAsync: Use `new File().text()` or import this method from `expo-file-system/legacy`. This method will throw in runtime.
- getContentUriAsync: Import this method from `expo-file-system/legacy`. This method will throw in runtime.
- writeAsStringAsync: Use `await new File().write()` or `new File().writeSync()` or import this method from `expo-file-system/legacy`. This method will throw in runtime.
- deleteAsync: Use `new File().delete()` or `new Directory().delete()` or import this method from `expo-file-system/legacy`. This method will throw in runtime.
- moveAsync: Use `new File().move()` or import this method from `expo-file-system/legacy`. This method will throw in runtime.
What Teire looks for in your code
- InfoOptions (ts)
- getInfoAsync (ts)
- readAsStringAsync (ts)
- getContentUriAsync (ts)
- writeAsStringAsync (ts)
- deleteAsync (ts)
- deleteLegacyDocumentDirectoryAndroid (ts)
- moveAsync (ts)
- copyAsync (ts)
- makeDirectoryAsync (ts)
- readDirectoryAsync (ts)
- getFreeDiskStorageAsync (ts)
- getTotalDiskCapacityAsync (ts)
- downloadAsync (ts)
- uploadAsync (ts)
- createDownloadResumable (ts)
- createUploadTask (ts)
Does it reach your code?