Releases: birdofpreyru/react-native-fs
Releases · birdofpreyru/react-native-fs
v2.30.1
- For Windows:
- [#76] Verified to work with [email protected] (for UWP apps, same as previous version of the library).
- [#81] Fixes
.isDirectory()
and.isFile()
checks of readDir() and stat() methods. - [#82][#84][#85] Fixes support of special (Unicode) characters in path names.
- Implements pickFile() method.
- Refactored Example App.
Thanks to @pcprinz for these fixes & updates (PRs #87, #88, #90).
- Update of dependencies.
v2.30.0
Breaking Changes
- [#81] iOS, macOS: Fixes
.isDirectory()
and.isFile()
checks of readDir() results. Presumably, they were broken due to a regression in v2.27.1, and both were always evaluating false since then. - [#82][#85] iOS, macOS: Improves support of special characters in paths, which alters paths returned by readDir(), if they have special characters.
Other Updates
- [#79] Minor code improvements.
- Update of dependencies.
v2.29.1
- Android:
- Fixes copyFileAssets() implementation for Android SDKs older than v35.
- Slightly corrects the error code & message thrown by stat() when the specified path is not found.
- Minor code clean-up, guided by Android Studio's code analysis.
- Update of dependencies.
v2.29.0
Breaking Changes
-
[#76] Upgrade to [email protected] for Android, iOS, macOS.
- Windows: Consider broken, and stick to the previous library v2.28.1 and [email protected] for the time being. It will be addressed later, after react-native-windows v0.76 is released.
-
[#75] iOS, macOS: Fixed support of «Bookmark URLs» by hash() and stat() methods.
- At least for now, dropped
mode
(UNIX file mode) value from the stat()'s result, StatResultT; it now equals undefined on all platforms.
- At least for now, dropped
Other Updates
- Update of dependencies.
v2.28.1
- [#40] Support of native macOS builds — thanks to PR #69 by @hsjoberg
- Update of dependencies, including among other stuff:
- PR #67 by @christianchown (moves
eslint-plugin-ft-flow
to dev dependencies) - [#66] Demand specific versions for
react-native
(^0.75.2
) andreact-native-windows
(^0.75.0
) peer dependencies (both were required as*
before).
- PR #67 by @christianchown (moves
v2.28.0
Breaking Changes
- [#60] The library and its Example App have been migrated from [email protected] to the latest [email protected].
- This breaks builds targeting macOS (Catalyst) (#65).
- Support of the old RN architecture has not been tested.
Other Updates
- Update of dependencies.
v2.27.1
- iOS, macOS: readDir() is refactored to support security-scoped «Bookmark URLs» (see pickFile() documentation for additional details re. such URLs). — with contribution by @zenoxs (PR #52)
v2.27.0
Breaking Changes
-
[#48] uploadFiles() is patched / updated for all platforms to ensure:
- Uniform handling of HTTP errors — in case of HTTP response having 4xx or 5xx status code the upload promise is rejected with a proper Error instance, with its message set to the human-readable error HTTP error reason (according to http-status-codes), and UploadResultT object attached to the
.result
field of that error. - Ensures
statusCode
value in UploadResultT is a number on all platforms (it was already promised so by TypeScript definitions, but it turned out it was string during runtime on Windows).
— Thanks to @Crare for help with troubleshooting this, and PR #49!
- Uniform handling of HTTP errors — in case of HTTP response having 4xx or 5xx status code the upload promise is rejected with a proper Error instance, with its message set to the human-readable error HTTP error reason (according to http-status-codes), and UploadResultT object attached to the
Other Updates
- Update of dependencies.
v2.26.0
- iOS (old arch), macOS (old arch): Fixes the transport of boolean arguments / options from JS into Native layer in a number of functions. It presumably fixes a subtle bug (#24) in downloadFile(), and may alter (fix) behavior of some other methods. — Thanks to @stetbern for identifying the issue, and contributing PR #47.