@ohos-ports/react-native-fs 2.20.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +117 -0
- package/FS.common.js +997 -0
- package/LICENSE +21 -0
- package/README.md +765 -0
- package/index.d.ts +294 -0
- package/package.json +48 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## Changes for v2.20
|
|
4
|
+
|
|
5
|
+
- #1037 Invalidate upload session
|
|
6
|
+
|
|
7
|
+
## Changes vor v2.19
|
|
8
|
+
|
|
9
|
+
- #1048 fix: use correct type for stat size #1048
|
|
10
|
+
- #1063 RNFSManager:readDir iOS crash fix #1063
|
|
11
|
+
- #1036 fix: addListener and removeListeners methods wass added to pass warning with Native Event Emitter #1036
|
|
12
|
+
- RNFSManager iOS crash in readDir
|
|
13
|
+
- fix: use correct type for stat size
|
|
14
|
+
- make react-native-windows peer dependency optional #1016
|
|
15
|
+
|
|
16
|
+
## Changes for v2.17
|
|
17
|
+
|
|
18
|
+
- #938 Manually flush & invalidate session upon completion
|
|
19
|
+
- #954 Switch to using channels for byte copying.
|
|
20
|
+
- #962 Size limit with copyAssetsVideoIOS
|
|
21
|
+
- #963 Add basic support for Android content URIs in stat
|
|
22
|
+
- #972 Manually flush & invalidate completed session
|
|
23
|
+
- #974 Add content for copyAssetsFileIOS method
|
|
24
|
+
- #975 Fix copyAssetsFileIOS's image resizing option to resize to exact width and height
|
|
25
|
+
- #985 README.md: clarify usage of readFileRes
|
|
26
|
+
- #986 macOS support
|
|
27
|
+
|
|
28
|
+
## Changes for v2.16
|
|
29
|
+
- #797 Added path to the Android download folder
|
|
30
|
+
- #842 Fixes #811 Concurrent downloads send progress updates to all progress callbacks
|
|
31
|
+
- #783 Import RCTImageLoaderProtocol instead of RCTImageLoader to fix iOS build on RN>0.60
|
|
32
|
+
|
|
33
|
+
## Changes for v2.15
|
|
34
|
+
- #717 bugfix #443: Add option progressInterval for downloadFile
|
|
35
|
+
- #759 Fix for issue #749: RNFS.uploadFiles upload raw not multipart
|
|
36
|
+
- #728 Correctly read binaryStreamOnly param
|
|
37
|
+
- #752 Fix Xcode and Java deprecation warnings
|
|
38
|
+
- #779 Add conditional comments around methods not supported in Mac Catalyst
|
|
39
|
+
- #736 Added support for ph:// uris to copyAssetsFileIOS
|
|
40
|
+
|
|
41
|
+
## Changes for v2.14
|
|
42
|
+
- #718 Add tvOS deployment target to podspec
|
|
43
|
+
- #710 Added existsRes function to Android
|
|
44
|
+
- #702 Fix: S3 pre signed uploads or similar binary stream uploads writing corrupt files
|
|
45
|
+
- #695 Added .Net46 side of windows support
|
|
46
|
+
- #691 Add `androidx` suppport
|
|
47
|
+
- #669 Changed "size" from Int to Double
|
|
48
|
+
- #660 add a custom error for cancelled downloadFile Requests
|
|
49
|
+
|
|
50
|
+
## Changes for v2.13
|
|
51
|
+
- #544 [Android] Add scanFile method
|
|
52
|
+
- #597 [Android] Perform copyFile in background thread to prevent UI blocking
|
|
53
|
+
- #587 [Windows] Fixed implementation for Windows
|
|
54
|
+
- #585 [Android] Fix EISDIR on stat directory
|
|
55
|
+
- #583 [Android] fix Android downloadFile overflow contentLength and bytesWritten
|
|
56
|
+
|
|
57
|
+
## Changes for v2.12
|
|
58
|
+
- #601 [iOS] Another fix for copyAssetsVideoIOS
|
|
59
|
+
- #599 [iOS] Fix for copyAssetsVideoIOS regarding iCloud-Files
|
|
60
|
+
- #564 [Android] Upgrade to Gradle 3 (BREAKING compatiblity for < RN 0.57)
|
|
61
|
+
- #571 [Android] Fix issue #566 android progress callback not sync and handle uppercase file extension mimetype
|
|
62
|
+
|
|
63
|
+
## Changes for v2.11
|
|
64
|
+
- Prepared for RN 0.56 thanx to [#535](https://github.com/itinance/react-native-fs/pull/535) by [rmevans9](https://github.com/rmevans9)
|
|
65
|
+
- #503 make sure to return the original file uri if content:// scheme is not used
|
|
66
|
+
- #510 Fixes an IndexOutOfBounds while uploading files in Android
|
|
67
|
+
- #515 Add cacheable option to downloadFile on iOScompletion callback
|
|
68
|
+
- #516 [iOS] Ensure _bytesWritten is correct in download
|
|
69
|
+
- #519 updated compilesdkversion and buildtoolsversion
|
|
70
|
+
- #535 Make this work with RN56
|
|
71
|
+
- #558 [Android] fixed missing parameter in movefile and writefile
|
|
72
|
+
- #557 [Android] copyFile: fix missing parameter on Android
|
|
73
|
+
- #564 [Android] Replace deprecated 'compile' gradle configuration with 'implementation
|
|
74
|
+
|
|
75
|
+
## Changes for v2.10
|
|
76
|
+
- UploadFiles is now also available for Android [#486](https://github.com/itinance/react-native-fs/pull/486) by [hank121314](https://github.com/hank121314)
|
|
77
|
+
- Fixed a memory leak that caused after running many simultaneous upload jobs on iOS [#502](https://github.com/itinance/react-native-fs/pull/502) by [Ignigena](https://github.com/Ignigena)
|
|
78
|
+
- Android: Resolve filepath for content URI [480](https://github.com/itinance/react-native-fs/pull/480) by [andtos90](https://github.com/andtos90)
|
|
79
|
+
- (Android only) Add ExternalCachesDirectoryPath [490](https://github.com/itinance/react-native-fs/pull/490) by [superandrew213](https://github.com/superandrew213)
|
|
80
|
+
|
|
81
|
+
## Changes for v2.9
|
|
82
|
+
- (iOS only) Resumable downloads and better background downloads handling [#335](https://github.com/itinance/react-native-fs/pull/335) by [ptelad](https://github.com/ptelad)
|
|
83
|
+
- (Android only) getAllExternalFilesDirs() added by [ngrj](https://github.com/ngrj)
|
|
84
|
+
- Content URI support [#395](https://github.com/itinance/react-native-fs/pull/395) by [krzysztof-miemiec](https://github.com/krzysztof-miemiec)
|
|
85
|
+
- Fixed Cocoapods-Installation
|
|
86
|
+
|
|
87
|
+
## Changes for v2.8
|
|
88
|
+
- Fix for [#346](https://github.com/itinance/react-native-fs/pull/347): compressed file assets are detected as directories thx to [jacargentina](https://github.com/jacargentina)
|
|
89
|
+
- added support for Video-Assets on iOS (copyAssetsVideoIOS) and setReadable() on Android by [itinance](https://github.com/itinance)
|
|
90
|
+
- Added react-native-windows support for UWP [#337](https://github.com/itinance/react-native-fs/pull/337) thx to [rozele](https://github.com/rozele)
|
|
91
|
+
- Expose the iOS `discretionary` flag on `downloadFile` [#360](https://github.com/itinance/react-native-fs/pull/360) thx to [jamesreggio](https://github.com/jamesreggio)
|
|
92
|
+
|
|
93
|
+
## Changes for v2.5
|
|
94
|
+
- breaking change for RN 0.47 at android (https://github.com/facebook/react-native/releases/tag/v0.47.0)
|
|
95
|
+
|
|
96
|
+
## Changes for v2.4
|
|
97
|
+
- Made new thread for other native processes [ANDROID] (https://github.com/itinance/react-native-fs/commit/ad36b078db9728489155a55c1b7daa42ed191945) thx to [codesinghanoop](https://github.com/codesinghanoop)
|
|
98
|
+
- Upgrade gradle build tools to 25 (https://github.com/itinance/react-native-fs/commit/239bccb9d56fe9308daafb86920ed29eb9e5cfe4) thx to [markusguenther](https://github.com/markusguenther)
|
|
99
|
+
- Fixed Podfile Path-Error (https://github.com/itinance/react-native-fs/commit/9fd51e7e977400f3194c100af88b4c25e7510530) thx to [colorfulberry](https://github.com/colorfulberry)
|
|
100
|
+
- Add read-method with length and position params (https://github.com/itinance/react-native-fs/commit/a39c22be81f0c1f2263dbe60f3cd6cfcc902d2ac) thx to [simitti](https://github.com/simitii)
|
|
101
|
+
|
|
102
|
+
## Changes for v2.3
|
|
103
|
+
|
|
104
|
+
- React-Native 0.40 is minimum required for compiling on iOS (otherwise install an older release, see below)
|
|
105
|
+
- Access to iOS-based "assets-library" is now supported with `copyAssetsFileIOS`
|
|
106
|
+
- `readDir` will return now creation- and modification-time of files as with `stat()` (thanks @Ignigena)
|
|
107
|
+
- optional connectionTimeout and readTimeout-Settings on `downloadFile` for Android (thanks @drunksaint)
|
|
108
|
+
|
|
109
|
+
## Breaking change in v2.0
|
|
110
|
+
|
|
111
|
+
- Removed attributes from `writeFile` and `appendFile` for iOS / Android consistency
|
|
112
|
+
- `downloadFile` takes `options` object rather than parameters
|
|
113
|
+
- `stopDownload` will cause the rejection of promise returned by `downloadFile`
|
|
114
|
+
- `uploadFiles` promise result `response` property is now `body`
|
|
115
|
+
- A boolean is no longer returned from any method except `exists`
|
|
116
|
+
- `downloadFile` and `uploadFiles` return an object of the form `{ jobId: number, promise: Promise }`
|
|
117
|
+
- `mkdir` takes optional 2nd parameter `options` for iOS users to set the `NSURLIsExcludedFromBackupKey` attribute
|