expo-file-system 19.0.17 → 19.0.18-canary-20251013-623c5a6

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.
Files changed (48) hide show
  1. package/CHANGELOG.md +4 -8
  2. package/android/build.gradle +2 -2
  3. package/build/ExpoFileSystem.types.d.ts +13 -5
  4. package/build/ExpoFileSystem.types.d.ts.map +1 -1
  5. package/build/index.d.ts +1 -1
  6. package/build/index.d.ts.map +1 -1
  7. package/expo-module.config.json +1 -1
  8. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.18-canary-20251013-623c5a6/expo.modules.filesystem-19.0.18-canary-20251013-623c5a6.aar +0 -0
  9. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.18-canary-20251013-623c5a6/expo.modules.filesystem-19.0.18-canary-20251013-623c5a6.aar.md5 +1 -0
  10. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.18-canary-20251013-623c5a6/expo.modules.filesystem-19.0.18-canary-20251013-623c5a6.aar.sha1 +1 -0
  11. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.18-canary-20251013-623c5a6/expo.modules.filesystem-19.0.18-canary-20251013-623c5a6.aar.sha256 +1 -0
  12. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.18-canary-20251013-623c5a6/expo.modules.filesystem-19.0.18-canary-20251013-623c5a6.aar.sha512 +1 -0
  13. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.17/expo.modules.filesystem-19.0.17.module → 19.0.18-canary-20251013-623c5a6/expo.modules.filesystem-19.0.18-canary-20251013-623c5a6.module} +18 -18
  14. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.18-canary-20251013-623c5a6/expo.modules.filesystem-19.0.18-canary-20251013-623c5a6.module.md5 +1 -0
  15. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.18-canary-20251013-623c5a6/expo.modules.filesystem-19.0.18-canary-20251013-623c5a6.module.sha1 +1 -0
  16. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.18-canary-20251013-623c5a6/expo.modules.filesystem-19.0.18-canary-20251013-623c5a6.module.sha256 +1 -0
  17. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.18-canary-20251013-623c5a6/expo.modules.filesystem-19.0.18-canary-20251013-623c5a6.module.sha512 +1 -0
  18. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.17/expo.modules.filesystem-19.0.17.pom → 19.0.18-canary-20251013-623c5a6/expo.modules.filesystem-19.0.18-canary-20251013-623c5a6.pom} +1 -1
  19. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.18-canary-20251013-623c5a6/expo.modules.filesystem-19.0.18-canary-20251013-623c5a6.pom.md5 +1 -0
  20. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.18-canary-20251013-623c5a6/expo.modules.filesystem-19.0.18-canary-20251013-623c5a6.pom.sha1 +1 -0
  21. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.18-canary-20251013-623c5a6/expo.modules.filesystem-19.0.18-canary-20251013-623c5a6.pom.sha256 +1 -0
  22. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.18-canary-20251013-623c5a6/expo.modules.filesystem-19.0.18-canary-20251013-623c5a6.pom.sha512 +1 -0
  23. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml +4 -4
  24. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml.md5 +1 -1
  25. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml.sha1 +1 -1
  26. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml.sha256 +1 -1
  27. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml.sha512 +1 -1
  28. package/package.json +5 -6
  29. package/src/ExpoFileSystem.types.ts +13 -5
  30. package/src/index.ts +1 -0
  31. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.17/expo.modules.filesystem-19.0.17.aar +0 -0
  32. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.17/expo.modules.filesystem-19.0.17.aar.md5 +0 -1
  33. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.17/expo.modules.filesystem-19.0.17.aar.sha1 +0 -1
  34. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.17/expo.modules.filesystem-19.0.17.aar.sha256 +0 -1
  35. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.17/expo.modules.filesystem-19.0.17.aar.sha512 +0 -1
  36. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.17/expo.modules.filesystem-19.0.17.module.md5 +0 -1
  37. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.17/expo.modules.filesystem-19.0.17.module.sha1 +0 -1
  38. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.17/expo.modules.filesystem-19.0.17.module.sha256 +0 -1
  39. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.17/expo.modules.filesystem-19.0.17.module.sha512 +0 -1
  40. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.17/expo.modules.filesystem-19.0.17.pom.md5 +0 -1
  41. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.17/expo.modules.filesystem-19.0.17.pom.sha1 +0 -1
  42. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.17/expo.modules.filesystem-19.0.17.pom.sha256 +0 -1
  43. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.17/expo.modules.filesystem-19.0.17.pom.sha512 +0 -1
  44. /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.17/expo.modules.filesystem-19.0.17-sources.jar → 19.0.18-canary-20251013-623c5a6/expo.modules.filesystem-19.0.18-canary-20251013-623c5a6-sources.jar} +0 -0
  45. /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.17/expo.modules.filesystem-19.0.17-sources.jar.md5 → 19.0.18-canary-20251013-623c5a6/expo.modules.filesystem-19.0.18-canary-20251013-623c5a6-sources.jar.md5} +0 -0
  46. /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.17/expo.modules.filesystem-19.0.17-sources.jar.sha1 → 19.0.18-canary-20251013-623c5a6/expo.modules.filesystem-19.0.18-canary-20251013-623c5a6-sources.jar.sha1} +0 -0
  47. /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.17/expo.modules.filesystem-19.0.17-sources.jar.sha256 → 19.0.18-canary-20251013-623c5a6/expo.modules.filesystem-19.0.18-canary-20251013-623c5a6-sources.jar.sha256} +0 -0
  48. /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.17/expo.modules.filesystem-19.0.17-sources.jar.sha512 → 19.0.18-canary-20251013-623c5a6/expo.modules.filesystem-19.0.18-canary-20251013-623c5a6-sources.jar.sha512} +0 -0
package/CHANGELOG.md CHANGED
@@ -8,15 +8,11 @@
8
8
 
9
9
  ### 🐛 Bug fixes
10
10
 
11
- ### 💡 Others
12
-
13
- ## 19.0.17 — 2025-10-09
14
-
15
- ### 🐛 Bug fixes
16
-
17
11
  - [Android] Fix recursive file deletion. ([#40248](https://github.com/expo/expo/pull/40248) by [@aleqsio](https://github.com/aleqsio))
18
12
 
19
- ## 19.0.16 — 2025-10-01
13
+ ### 💡 Others
14
+
15
+ ## 19.0.16 - 2025-10-01
20
16
 
21
17
  ### 🎉 New features
22
18
 
@@ -27,7 +23,7 @@
27
23
  - Fix typedoc in the File class. ([#40064](https://github.com/expo/expo/pull/40064) by [@aleqsio](https://github.com/aleqsio))
28
24
  - [Android] Fix getContentUri. ([#40001](https://github.com/expo/expo/pull/40001) by [@aleqsio](https://github.com/aleqsio))
29
25
 
30
- ## 19.0.15 2025-09-22
26
+ ## 19.0.15 - 2025-09-22
31
27
 
32
28
  ### 🎉 New features
33
29
 
@@ -4,13 +4,13 @@ plugins {
4
4
  }
5
5
 
6
6
  group = 'host.exp.exponent'
7
- version = '19.0.17'
7
+ version = '19.0.18-canary-20251013-623c5a6'
8
8
 
9
9
  android {
10
10
  namespace "expo.modules.filesystem"
11
11
  defaultConfig {
12
12
  versionCode 30
13
- versionName "19.0.17"
13
+ versionName "19.0.18-canary-20251013-623c5a6"
14
14
  }
15
15
  }
16
16
 
@@ -184,7 +184,7 @@ export declare class File {
184
184
  * Retrieves content of the file as base64.
185
185
  * @returns A promise that resolves with the contents of the file as a base64 string.
186
186
  */
187
- base64(): string;
187
+ base64(): Promise<string>;
188
188
  /**
189
189
  * Retrieves content of the file as base64.
190
190
  * @returns The contents of the file as a base64 string.
@@ -192,12 +192,12 @@ export declare class File {
192
192
  base64Sync(): string;
193
193
  /**
194
194
  * Retrieves byte content of the entire file.
195
- * @returns A promise that resolves with the contents of the file as a Uint8Array.
195
+ * @returns A promise that resolves with the contents of the file as a `Uint8Array`.
196
196
  */
197
197
  bytes(): Promise<Uint8Array<ArrayBuffer>>;
198
198
  /**
199
199
  * Retrieves byte content of the entire file.
200
- * @returns A promise that resolves with the contents of the file as a Uint8Array.
200
+ * @returns The contents of the file as a `Uint8Array`.
201
201
  */
202
202
  bytesSync(): Uint8Array;
203
203
  /**
@@ -248,10 +248,18 @@ export declare class File {
248
248
  /**
249
249
  * A static method that downloads a file from the network.
250
250
  *
251
+ * On Android, the response body streams directly into the target file. If the download fails after
252
+ * it starts, a partially written file may remain at the destination. On iOS, the download first
253
+ * completes in a temporary location and the file is moved into place only after success, so no
254
+ * file is left behind when the request fails.
255
+ *
251
256
  * @param url - The URL of the file to download.
252
257
  * @param destination - The destination directory or file. If a directory is provided, the resulting filename will be determined based on the response headers.
258
+ * @param options - Download options. When the destination already contains a file, the promise rejects with a `DestinationAlreadyExists` error unless `options.idempotent` is set to `true`. With `idempotent: true`, the download overwrites the existing file instead of failing.
253
259
  *
254
- * @returns A promise that resolves to the downloaded file.
260
+ * @returns A promise that resolves to the downloaded file. When the server responds with
261
+ * a non-2xx HTTP status, the promise rejects with an `UnableToDownload` error whose
262
+ * message includes the status code. No file is created in that scenario.
255
263
  *
256
264
  * @example
257
265
  * ```ts
@@ -266,7 +274,7 @@ export declare class File {
266
274
  *
267
275
  * @param initialUri An optional URI pointing to an initial folder on which the file picker is opened.
268
276
  * @param mimeType A mime type that is used to filter out files that can be picked out.
269
- * @returns a `File` instance or an array of `File` instances.
277
+ * @returns A `File` instance or an array of `File` instances.
270
278
  */
271
279
  static pickFileAsync(initialUri?: string, mimeType?: string): Promise<File | File[]>;
272
280
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ExpoFileSystem.types.d.ts","sourceRoot":"","sources":["../src/ExpoFileSystem.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,oBAAY,YAAY;IACtB;;OAEG;IACH,IAAI,SAAS;IACb;;OAEG;IACH,MAAM,WAAW;CAClB;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;OAGG;IACH,QAAQ,CAAC,EAAE,YAAY,GAAG,MAAM,GAAG,QAAQ,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,SAAS;IAC5B;;;;;;;OAOG;gBACS,GAAG,IAAI,EAAE,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE;IAElD;;OAEG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAErB;;;O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,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC"}
package/build/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export * from './FileSystem';
2
- export { type FileCreateOptions, type DirectoryCreateOptions, type FileHandle, type FileInfo, type InfoOptions, type PathInfo, type DirectoryInfo, } from './ExpoFileSystem.types';
2
+ export { type FileCreateOptions, type DirectoryCreateOptions, type FileHandle, type FileInfo, type InfoOptions, type PathInfo, type DirectoryInfo, type DownloadOptions, } from './ExpoFileSystem.types';
3
3
  export * from './legacyWarnings';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAE7B,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,aAAa,GACnB,MAAM,wBAAwB,CAAC;AAEhC,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAE7B,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,eAAe,GACrB,MAAM,wBAAwB,CAAC;AAEhC,cAAc,kBAAkB,CAAC"}
@@ -12,7 +12,7 @@
12
12
  "publication": {
13
13
  "groupId": "host.exp.exponent",
14
14
  "artifactId": "expo.modules.filesystem",
15
- "version": "19.0.17",
15
+ "version": "19.0.18-canary-20251013-623c5a6",
16
16
  "repository": "local-maven-repo"
17
17
  }
18
18
  }
@@ -0,0 +1 @@
1
+ 97f919a3acbdf9fc8bd3e5c8fc638ca0a5af58d16e8e894a729318fa694f1f7e1c1e2ad0938722134a2c1f0391abb2b27e099789b93e898f2762651ea731908c
@@ -3,14 +3,14 @@
3
3
  "component": {
4
4
  "group": "host.exp.exponent",
5
5
  "module": "expo.modules.filesystem",
6
- "version": "19.0.17",
6
+ "version": "19.0.18-canary-20251013-623c5a6",
7
7
  "attributes": {
8
8
  "org.gradle.status": "release"
9
9
  }
10
10
  },
11
11
  "createdBy": {
12
12
  "gradle": {
13
- "version": "8.14.3"
13
+ "version": "9.0.0"
14
14
  }
15
15
  },
16
16
  "variants": [
@@ -75,13 +75,13 @@
75
75
  ],
76
76
  "files": [
77
77
  {
78
- "name": "expo.modules.filesystem-19.0.17.aar",
79
- "url": "expo.modules.filesystem-19.0.17.aar",
80
- "size": 391292,
81
- "sha512": "d60c88e7f21f358f02194c14c3927265dfe2d1d87fc6b95752762eac2e0b58aacd0e978c76b0dcf63a8307024d4c456905e7e6e8525b69311b92c4e923ee1877",
82
- "sha256": "202752b28c46047281346722d634f17d97177e857bee9905d2637127213146b3",
83
- "sha1": "b04ea6436b34d528574e89f14e16e0f214d73d01",
84
- "md5": "676ac9e485b903778ac23c483eac4cf5"
78
+ "name": "expo.modules.filesystem-19.0.18-canary-20251013-623c5a6.aar",
79
+ "url": "expo.modules.filesystem-19.0.18-canary-20251013-623c5a6.aar",
80
+ "size": 391285,
81
+ "sha512": "97f919a3acbdf9fc8bd3e5c8fc638ca0a5af58d16e8e894a729318fa694f1f7e1c1e2ad0938722134a2c1f0391abb2b27e099789b93e898f2762651ea731908c",
82
+ "sha256": "59357a92b15218c7ca51945f48306ee5c83fd3b0029c7579227a7633b1c49afb",
83
+ "sha1": "6ba51c2cd4269602d70ea24d8689799ea73d73a1",
84
+ "md5": "3bea5490d96bf70ecd9175d5bd1688f2"
85
85
  }
86
86
  ]
87
87
  },
@@ -153,13 +153,13 @@
153
153
  ],
154
154
  "files": [
155
155
  {
156
- "name": "expo.modules.filesystem-19.0.17.aar",
157
- "url": "expo.modules.filesystem-19.0.17.aar",
158
- "size": 391292,
159
- "sha512": "d60c88e7f21f358f02194c14c3927265dfe2d1d87fc6b95752762eac2e0b58aacd0e978c76b0dcf63a8307024d4c456905e7e6e8525b69311b92c4e923ee1877",
160
- "sha256": "202752b28c46047281346722d634f17d97177e857bee9905d2637127213146b3",
161
- "sha1": "b04ea6436b34d528574e89f14e16e0f214d73d01",
162
- "md5": "676ac9e485b903778ac23c483eac4cf5"
156
+ "name": "expo.modules.filesystem-19.0.18-canary-20251013-623c5a6.aar",
157
+ "url": "expo.modules.filesystem-19.0.18-canary-20251013-623c5a6.aar",
158
+ "size": 391285,
159
+ "sha512": "97f919a3acbdf9fc8bd3e5c8fc638ca0a5af58d16e8e894a729318fa694f1f7e1c1e2ad0938722134a2c1f0391abb2b27e099789b93e898f2762651ea731908c",
160
+ "sha256": "59357a92b15218c7ca51945f48306ee5c83fd3b0029c7579227a7633b1c49afb",
161
+ "sha1": "6ba51c2cd4269602d70ea24d8689799ea73d73a1",
162
+ "md5": "3bea5490d96bf70ecd9175d5bd1688f2"
163
163
  }
164
164
  ]
165
165
  },
@@ -173,8 +173,8 @@
173
173
  },
174
174
  "files": [
175
175
  {
176
- "name": "expo.modules.filesystem-19.0.17-sources.jar",
177
- "url": "expo.modules.filesystem-19.0.17-sources.jar",
176
+ "name": "expo.modules.filesystem-19.0.18-canary-20251013-623c5a6-sources.jar",
177
+ "url": "expo.modules.filesystem-19.0.18-canary-20251013-623c5a6-sources.jar",
178
178
  "size": 28829,
179
179
  "sha512": "2f568bfaeec3afab683022062a45f4bc0b36c57b34b03c594770668d0b7a85542a7c8ef9d7ea015a0ca2b1cefdfdd6c81af52d5a8cb986734006c731cbd2efb0",
180
180
  "sha256": "fd56e8219c4f981d84e5dfa36830c59279bf486acfcc80c143b18ec1860260e3",
@@ -0,0 +1 @@
1
+ e49884a3bad47cef41b84d98e7b78223e418b911ab7e90673cfdc8ecad36c26e6811758f5d1b50c03cb49a24218e829758b5bb0ff2690dda46902971b6d810fa
@@ -9,7 +9,7 @@
9
9
  <modelVersion>4.0.0</modelVersion>
10
10
  <groupId>host.exp.exponent</groupId>
11
11
  <artifactId>expo.modules.filesystem</artifactId>
12
- <version>19.0.17</version>
12
+ <version>19.0.18-canary-20251013-623c5a6</version>
13
13
  <packaging>aar</packaging>
14
14
  <name>expo.modules.filesystem</name>
15
15
  <url>https://github.com/expo/expo</url>
@@ -0,0 +1 @@
1
+ 75f92a13087bab32a3868a545d93af7b243b35b3f61c5ab663b9a5042e850e90118607d0855b40e4cc691bd637dcd9df6f22992c77b472e4f1f133989e9754f3
@@ -3,11 +3,11 @@
3
3
  <groupId>host.exp.exponent</groupId>
4
4
  <artifactId>expo.modules.filesystem</artifactId>
5
5
  <versioning>
6
- <latest>19.0.17</latest>
7
- <release>19.0.17</release>
6
+ <latest>19.0.18-canary-20251013-623c5a6</latest>
7
+ <release>19.0.18-canary-20251013-623c5a6</release>
8
8
  <versions>
9
- <version>19.0.17</version>
9
+ <version>19.0.18-canary-20251013-623c5a6</version>
10
10
  </versions>
11
- <lastUpdated>20251009193303</lastUpdated>
11
+ <lastUpdated>20251013171018</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- df84806d5d8e27ea227f838fc536616d
1
+ 52fd5be7bf9c900ca1fe51086a1007a2
@@ -1 +1 @@
1
- 821a7a9711221da8f8dfe09d41adca5dda209a04
1
+ 7431123069e1c390ceb9c73152392fb8c36f3d39
@@ -1 +1 @@
1
- 799fcc9461a0a09c6ac0bafcce852b9acc0de2ea4e64d3fd601af7d2f706c79b
1
+ 2cbe293e3498b3e9300651a40a69ab1bb8b3873d3efaf56fe703ceabc61aed90
@@ -1 +1 @@
1
- 07baa476bb44740ba4992588f00e20fcb4ab6ed7758d49ff5f33392b30f48108682d62508ca5542a9d3bea37cfb3f0d3ebdb3854858bb59944880fcc42718022
1
+ 9ce337bea1dee4d70326ebf66673613099f458acf1d94ef94a9acdd8f48d78b5643f5a222c7d141606546d1f1ed0eaa49c382ade33258d608c6cc4fe6ca9cd56
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-file-system",
3
- "version": "19.0.17",
3
+ "version": "19.0.18-canary-20251013-623c5a6",
4
4
  "description": "Provides access to the local file system on the device.",
5
5
  "main": "src/index.ts",
6
6
  "types": "build/index.d.ts",
@@ -35,12 +35,11 @@
35
35
  "preset": "expo-module-scripts"
36
36
  },
37
37
  "devDependencies": {
38
- "expo-module-scripts": "^5.0.7",
39
- "jest-expo": "~54.0.12"
38
+ "expo-module-scripts": "5.0.8-canary-20251013-623c5a6",
39
+ "jest-expo": "55.0.0-canary-20251013-623c5a6"
40
40
  },
41
41
  "peerDependencies": {
42
- "expo": "*",
42
+ "expo": "55.0.0-canary-20251013-623c5a6",
43
43
  "react-native": "*"
44
- },
45
- "gitHead": "a2c8477a3fc5744980494805ae46f20dda94c852"
44
+ }
46
45
  }
@@ -207,7 +207,7 @@ export declare class File {
207
207
  * Retrieves content of the file as base64.
208
208
  * @returns A promise that resolves with the contents of the file as a base64 string.
209
209
  */
210
- base64(): string;
210
+ base64(): Promise<string>;
211
211
 
212
212
  /**
213
213
  * Retrieves content of the file as base64.
@@ -217,13 +217,13 @@ export declare class File {
217
217
 
218
218
  /**
219
219
  * Retrieves byte content of the entire file.
220
- * @returns A promise that resolves with the contents of the file as a Uint8Array.
220
+ * @returns A promise that resolves with the contents of the file as a `Uint8Array`.
221
221
  */
222
222
  bytes(): Promise<Uint8Array<ArrayBuffer>>;
223
223
 
224
224
  /**
225
225
  * Retrieves byte content of the entire file.
226
- * @returns A promise that resolves with the contents of the file as a Uint8Array.
226
+ * @returns The contents of the file as a `Uint8Array`.
227
227
  */
228
228
  bytesSync(): Uint8Array;
229
229
 
@@ -284,10 +284,18 @@ export declare class File {
284
284
  /**
285
285
  * A static method that downloads a file from the network.
286
286
  *
287
+ * On Android, the response body streams directly into the target file. If the download fails after
288
+ * it starts, a partially written file may remain at the destination. On iOS, the download first
289
+ * completes in a temporary location and the file is moved into place only after success, so no
290
+ * file is left behind when the request fails.
291
+ *
287
292
  * @param url - The URL of the file to download.
288
293
  * @param destination - The destination directory or file. If a directory is provided, the resulting filename will be determined based on the response headers.
294
+ * @param options - Download options. When the destination already contains a file, the promise rejects with a `DestinationAlreadyExists` error unless `options.idempotent` is set to `true`. With `idempotent: true`, the download overwrites the existing file instead of failing.
289
295
  *
290
- * @returns A promise that resolves to the downloaded file.
296
+ * @returns A promise that resolves to the downloaded file. When the server responds with
297
+ * a non-2xx HTTP status, the promise rejects with an `UnableToDownload` error whose
298
+ * message includes the status code. No file is created in that scenario.
291
299
  *
292
300
  * @example
293
301
  * ```ts
@@ -307,7 +315,7 @@ export declare class File {
307
315
  *
308
316
  * @param initialUri An optional URI pointing to an initial folder on which the file picker is opened.
309
317
  * @param mimeType A mime type that is used to filter out files that can be picked out.
310
- * @returns a `File` instance or an array of `File` instances.
318
+ * @returns A `File` instance or an array of `File` instances.
311
319
  */
312
320
  static pickFileAsync(initialUri?: string, mimeType?: string): Promise<File | File[]>;
313
321
 
package/src/index.ts CHANGED
@@ -8,6 +8,7 @@ export {
8
8
  type InfoOptions,
9
9
  type PathInfo,
10
10
  type DirectoryInfo,
11
+ type DownloadOptions,
11
12
  } from './ExpoFileSystem.types';
12
13
 
13
14
  export * from './legacyWarnings';
@@ -1 +0,0 @@
1
- 202752b28c46047281346722d634f17d97177e857bee9905d2637127213146b3
@@ -1 +0,0 @@
1
- d60c88e7f21f358f02194c14c3927265dfe2d1d87fc6b95752762eac2e0b58aacd0e978c76b0dcf63a8307024d4c456905e7e6e8525b69311b92c4e923ee1877
@@ -1 +0,0 @@
1
- 0f8244800bb9ba5dab6271c68d219f827a127e34c87bc0a1c23c9b2010e6789d
@@ -1 +0,0 @@
1
- 80b3bf9150498c34228ffef88f72161f07a8808307f75ce611b38ff3092d75e1f953855b10c2906ada17cbe9ba6448918673c51459f6ca61ebecef685d91c2af
@@ -1 +0,0 @@
1
- f4591341074ab39f6a9049a9bb8525ae529d0f9cb42ed0e63b7a2b742664c136
@@ -1 +0,0 @@
1
- 00da494744eb93de2fce2358af36e0866da77d81980d0f1940e64859b6eedbf030819b4cd062fa96007dce2fb853c81fde5a97cd7dfcca62abcd80cb8f7ddfcc