expo-file-system 19.0.0-canary-20250811-5c940c0 → 19.0.1

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 (50) hide show
  1. package/CHANGELOG.md +17 -2
  2. package/android/build.gradle +2 -2
  3. package/build/ExpoFileSystem.types.d.ts +2 -2
  4. package/build/ExpoFileSystem.types.d.ts.map +1 -1
  5. package/build/FileSystem.d.ts +6 -2
  6. package/build/FileSystem.d.ts.map +1 -1
  7. package/expo-module.config.json +1 -1
  8. package/ios/FileSystemExceptions.swift +6 -0
  9. package/ios/FileSystemPath.swift +6 -7
  10. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.1/expo.modules.filesystem-19.0.1.aar +0 -0
  11. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.1/expo.modules.filesystem-19.0.1.aar.md5 +1 -0
  12. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.1/expo.modules.filesystem-19.0.1.aar.sha1 +1 -0
  13. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.1/expo.modules.filesystem-19.0.1.aar.sha256 +1 -0
  14. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.1/expo.modules.filesystem-19.0.1.aar.sha512 +1 -0
  15. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.0-canary-20250811-5c940c0/expo.modules.filesystem-19.0.0-canary-20250811-5c940c0.module → 19.0.1/expo.modules.filesystem-19.0.1.module} +18 -18
  16. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.1/expo.modules.filesystem-19.0.1.module.md5 +1 -0
  17. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.1/expo.modules.filesystem-19.0.1.module.sha1 +1 -0
  18. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.1/expo.modules.filesystem-19.0.1.module.sha256 +1 -0
  19. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.1/expo.modules.filesystem-19.0.1.module.sha512 +1 -0
  20. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.0-canary-20250811-5c940c0/expo.modules.filesystem-19.0.0-canary-20250811-5c940c0.pom → 19.0.1/expo.modules.filesystem-19.0.1.pom} +1 -1
  21. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.1/expo.modules.filesystem-19.0.1.pom.md5 +1 -0
  22. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.1/expo.modules.filesystem-19.0.1.pom.sha1 +1 -0
  23. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.1/expo.modules.filesystem-19.0.1.pom.sha256 +1 -0
  24. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.1/expo.modules.filesystem-19.0.1.pom.sha512 +1 -0
  25. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml +4 -4
  26. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml.md5 +1 -1
  27. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml.sha1 +1 -1
  28. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml.sha256 +1 -1
  29. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml.sha512 +1 -1
  30. package/package.json +6 -5
  31. package/src/ExpoFileSystem.types.ts +2 -2
  32. package/src/FileSystem.ts +7 -1
  33. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.0-canary-20250811-5c940c0/expo.modules.filesystem-19.0.0-canary-20250811-5c940c0.aar +0 -0
  34. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.0-canary-20250811-5c940c0/expo.modules.filesystem-19.0.0-canary-20250811-5c940c0.aar.md5 +0 -1
  35. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.0-canary-20250811-5c940c0/expo.modules.filesystem-19.0.0-canary-20250811-5c940c0.aar.sha1 +0 -1
  36. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.0-canary-20250811-5c940c0/expo.modules.filesystem-19.0.0-canary-20250811-5c940c0.aar.sha256 +0 -1
  37. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.0-canary-20250811-5c940c0/expo.modules.filesystem-19.0.0-canary-20250811-5c940c0.aar.sha512 +0 -1
  38. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.0-canary-20250811-5c940c0/expo.modules.filesystem-19.0.0-canary-20250811-5c940c0.module.md5 +0 -1
  39. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.0-canary-20250811-5c940c0/expo.modules.filesystem-19.0.0-canary-20250811-5c940c0.module.sha1 +0 -1
  40. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.0-canary-20250811-5c940c0/expo.modules.filesystem-19.0.0-canary-20250811-5c940c0.module.sha256 +0 -1
  41. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.0-canary-20250811-5c940c0/expo.modules.filesystem-19.0.0-canary-20250811-5c940c0.module.sha512 +0 -1
  42. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.0-canary-20250811-5c940c0/expo.modules.filesystem-19.0.0-canary-20250811-5c940c0.pom.md5 +0 -1
  43. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.0-canary-20250811-5c940c0/expo.modules.filesystem-19.0.0-canary-20250811-5c940c0.pom.sha1 +0 -1
  44. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.0-canary-20250811-5c940c0/expo.modules.filesystem-19.0.0-canary-20250811-5c940c0.pom.sha256 +0 -1
  45. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.0-canary-20250811-5c940c0/expo.modules.filesystem-19.0.0-canary-20250811-5c940c0.pom.sha512 +0 -1
  46. /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.0-canary-20250811-5c940c0/expo.modules.filesystem-19.0.0-canary-20250811-5c940c0-sources.jar → 19.0.1/expo.modules.filesystem-19.0.1-sources.jar} +0 -0
  47. /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.0-canary-20250811-5c940c0/expo.modules.filesystem-19.0.0-canary-20250811-5c940c0-sources.jar.md5 → 19.0.1/expo.modules.filesystem-19.0.1-sources.jar.md5} +0 -0
  48. /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.0-canary-20250811-5c940c0/expo.modules.filesystem-19.0.0-canary-20250811-5c940c0-sources.jar.sha1 → 19.0.1/expo.modules.filesystem-19.0.1-sources.jar.sha1} +0 -0
  49. /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.0-canary-20250811-5c940c0/expo.modules.filesystem-19.0.0-canary-20250811-5c940c0-sources.jar.sha256 → 19.0.1/expo.modules.filesystem-19.0.1-sources.jar.sha256} +0 -0
  50. /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.0-canary-20250811-5c940c0/expo.modules.filesystem-19.0.0-canary-20250811-5c940c0-sources.jar.sha512 → 19.0.1/expo.modules.filesystem-19.0.1-sources.jar.sha512} +0 -0
package/CHANGELOG.md CHANGED
@@ -4,10 +4,27 @@
4
4
 
5
5
  ### 🛠 Breaking changes
6
6
 
7
+ ### 🎉 New features
8
+
9
+ ### 🐛 Bug fixes
10
+
11
+ ### 💡 Others
12
+
13
+ ## 19.0.1 — 2025-08-15
14
+
15
+ ### 💡 Others
16
+
17
+ - Update typings for `typescript@5.9` ([#38833](https://github.com/expo/expo/pull/38833) by [@kitten](https://github.com/kitten))
18
+
19
+ ## 19.0.0 — 2025-08-13
20
+
21
+ ### 🛠 Breaking changes
22
+
7
23
  - Make the modern filesystem API the default, move previous one to `expo-file-system/legacy`. ([#38404](https://github.com/expo/expo/pull/38404) by [@aleqsio](https://github.com/aleqsio))
8
24
 
9
25
  ### 🎉 New features
10
26
 
27
+ - Add support for asset uris. ([#38785](https://github.com/expo/expo/pull/38785) by [@aleqsio](https://github.com/aleqsio))
11
28
  - Make file implement blob interface directly. ([#38160](https://github.com/expo/expo/pull/38160) by [@aleqsio](https://github.com/aleqsio))
12
29
  - Add directory info function ([#37910](https://github.com/expo/expo/pull/37910) by [@Wenszel](https://github.com/Wenszel))
13
30
  - Add total and available sizes, directory sizes. ([#37594](https://github.com/expo/expo/pull/37594) by [@aleqsio](https://github.com/aleqsio))
@@ -23,8 +40,6 @@
23
40
  - Improved type safety in the FileSystem module to support tsconfig setups with stricter rules than the default. ([#37107](https://github.com/expo/expo/pull/37107) by [@hirbod](https://github.com/hirbod))
24
41
  - Added required modifiers in the FileSystem module to support tsconfig setups with stricter rules than the default. ([#37467](https://github.com/expo/expo/pull/37467)
25
42
 
26
- ### 💡 Others
27
-
28
43
  ## 18.1.11 - 2025-07-01
29
44
 
30
45
  ### 💡 Others
@@ -4,13 +4,13 @@ plugins {
4
4
  }
5
5
 
6
6
  group = 'host.exp.exponent'
7
- version = '19.0.0-canary-20250811-5c940c0'
7
+ version = '19.0.1'
8
8
 
9
9
  android {
10
10
  namespace "expo.modules.filesystem"
11
11
  defaultConfig {
12
12
  versionCode 30
13
- versionName "19.0.0-canary-20250811-5c940c0"
13
+ versionName "19.0.1"
14
14
  }
15
15
  }
16
16
 
@@ -130,7 +130,7 @@ export declare class File {
130
130
  * Retrieves byte content of the entire file.
131
131
  * @returns A promise that resolves with the contents of the file as a Uint8Array.
132
132
  */
133
- bytes(): Promise<Uint8Array>;
133
+ bytes(): Promise<Uint8Array<ArrayBuffer>>;
134
134
  /**
135
135
  * Retrieves byte content of the entire file.
136
136
  * @returns A promise that resolves with the contents of the file as a Uint8Array.
@@ -211,7 +211,7 @@ export declare class File {
211
211
  }
212
212
  export declare class FileHandle {
213
213
  close(): void;
214
- readBytes(length: number): Uint8Array;
214
+ readBytes(length: number): Uint8Array<ArrayBuffer>;
215
215
  writeBytes(bytes: Uint8Array): void;
216
216
  offset: number | null;
217
217
  size: number | null;
@@ -1 +1 @@
1
- {"version":3,"file":"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;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC"}
@@ -6,6 +6,10 @@ export declare class Paths extends PathUtilities {
6
6
  * A property containing the cache directory – a place to store files that can be deleted by the system when the device runs low on storage.
7
7
  */
8
8
  static get cache(): Directory;
9
+ /**
10
+ * A property containing the bundle directory – the directory where assets bundled with the application are stored.
11
+ */
12
+ static get bundle(): Directory;
9
13
  /**
10
14
  * A property containing the document directory – a place to store files that are safe from being deleted by the system.
11
15
  */
@@ -44,10 +48,10 @@ export declare class File extends ExpoFileSystem.FileSystemFile implements Blob
44
48
  * File name. Includes the extension.
45
49
  */
46
50
  get name(): string;
47
- readableStream(): ReadableStream<Uint8Array<ArrayBufferLike>>;
51
+ readableStream(): ReadableStream<Uint8Array<ArrayBuffer>>;
48
52
  writableStream(): WritableStream<Uint8Array<ArrayBufferLike>>;
49
53
  arrayBuffer(): Promise<ArrayBuffer>;
50
- stream(): ReadableStream<Uint8Array>;
54
+ stream(): ReadableStream<Uint8Array<ArrayBuffer>>;
51
55
  slice(start?: number, end?: number, contentType?: string): Blob;
52
56
  }
53
57
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"FileSystem.d.ts","sourceRoot":"","sources":["../src/FileSystem.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,EAAmB,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,qBAAa,KAAM,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AAe,cAElB;IAED;;;;OAIG;IACM,IAAI,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,EAAE;IAOrC;;OAEG;IACH,IAAI,IAAI,WAEP;IAED,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAKvD,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS;CAGzC"}
@@ -12,7 +12,7 @@
12
12
  "publication": {
13
13
  "groupId": "host.exp.exponent",
14
14
  "artifactId": "expo.modules.filesystem",
15
- "version": "19.0.0-canary-20250811-5c940c0",
15
+ "version": "19.0.1",
16
16
  "repository": "local-maven-repo"
17
17
  }
18
18
  }
@@ -66,3 +66,9 @@ internal final class DestinationAlreadyExistsException: Exception {
66
66
  "Destination already exists"
67
67
  }
68
68
  }
69
+
70
+ internal final class MissingPermissionException: GenericException<String> {
71
+ override var reason: String {
72
+ "Missing permission for uri: \(param)"
73
+ }
74
+ }
@@ -9,15 +9,14 @@ internal class FileSystemPath: SharedObject {
9
9
  self.url = standardizedUrl
10
10
  }
11
11
 
12
- func validatePermission(_ flag: EXFileSystemPermissionFlags) throws {
13
- try ensurePathPermission(appContext, path: url.path, flag: flag)
12
+ func validatePermission(_ flag: FileSystemPermissionFlags) throws {
13
+ if !checkPermission(flag) {
14
+ throw MissingPermissionException(url.absoluteString)
15
+ }
14
16
  }
15
17
 
16
- func checkPermission(_ flag: EXFileSystemPermissionFlags) -> Bool {
17
- guard let permissionsManager: EXFilePermissionModuleInterface = appContext?.legacyModule(implementing: EXFilePermissionModuleInterface.self) else {
18
- return false
19
- }
20
- return permissionsManager.getPathPermissions(url.path).contains(flag)
18
+ func checkPermission(_ flag: FileSystemPermissionFlags) -> Bool {
19
+ return FileSystemUtilities.permissions(appContext, for: url).contains(flag)
21
20
  }
22
21
 
23
22
  func validateCanCreate(_ options: CreateOptions) throws {
@@ -0,0 +1 @@
1
+ a83e3d54e55fb18bd393412ab7f85aacf27246eadd5f137f9d8c4c5f98e13630
@@ -0,0 +1 @@
1
+ 65ea717a289b2788e5ad9143eaa05e625b2135b9a9e08e900928caee25e356c42773b639687aa07fc0ae996c85a74605aea7acf7dd7d31ed304694312724d118
@@ -3,14 +3,14 @@
3
3
  "component": {
4
4
  "group": "host.exp.exponent",
5
5
  "module": "expo.modules.filesystem",
6
- "version": "19.0.0-canary-20250811-5c940c0",
6
+ "version": "19.0.1",
7
7
  "attributes": {
8
8
  "org.gradle.status": "release"
9
9
  }
10
10
  },
11
11
  "createdBy": {
12
12
  "gradle": {
13
- "version": "8.14"
13
+ "version": "8.14.3"
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.0-canary-20250811-5c940c0.aar",
79
- "url": "expo.modules.filesystem-19.0.0-canary-20250811-5c940c0.aar",
80
- "size": 347355,
81
- "sha512": "0f7b75431b4af46874d9f492d3ec3112f430b4c5f655a3ea9eba165799a574e4f4950f7e68619d27a811a04e92dcc2fe2669baca76d189addab8c9249fa1fd25",
82
- "sha256": "6cd9483d0c006a1ab74e49947566e345dfe2b81b8e2f19fd60f3176130c5700c",
83
- "sha1": "35583624deadb07007b535b8e3db8bf5d9e2fa98",
84
- "md5": "67c1e662690720fa4871dba82f62104d"
78
+ "name": "expo.modules.filesystem-19.0.1.aar",
79
+ "url": "expo.modules.filesystem-19.0.1.aar",
80
+ "size": 347320,
81
+ "sha512": "65ea717a289b2788e5ad9143eaa05e625b2135b9a9e08e900928caee25e356c42773b639687aa07fc0ae996c85a74605aea7acf7dd7d31ed304694312724d118",
82
+ "sha256": "a83e3d54e55fb18bd393412ab7f85aacf27246eadd5f137f9d8c4c5f98e13630",
83
+ "sha1": "68fa94eb248341effd8afe92bee7335ec2df9c01",
84
+ "md5": "b1651ae06af2d05498af6f6ba2eb1ca8"
85
85
  }
86
86
  ]
87
87
  },
@@ -153,13 +153,13 @@
153
153
  ],
154
154
  "files": [
155
155
  {
156
- "name": "expo.modules.filesystem-19.0.0-canary-20250811-5c940c0.aar",
157
- "url": "expo.modules.filesystem-19.0.0-canary-20250811-5c940c0.aar",
158
- "size": 347355,
159
- "sha512": "0f7b75431b4af46874d9f492d3ec3112f430b4c5f655a3ea9eba165799a574e4f4950f7e68619d27a811a04e92dcc2fe2669baca76d189addab8c9249fa1fd25",
160
- "sha256": "6cd9483d0c006a1ab74e49947566e345dfe2b81b8e2f19fd60f3176130c5700c",
161
- "sha1": "35583624deadb07007b535b8e3db8bf5d9e2fa98",
162
- "md5": "67c1e662690720fa4871dba82f62104d"
156
+ "name": "expo.modules.filesystem-19.0.1.aar",
157
+ "url": "expo.modules.filesystem-19.0.1.aar",
158
+ "size": 347320,
159
+ "sha512": "65ea717a289b2788e5ad9143eaa05e625b2135b9a9e08e900928caee25e356c42773b639687aa07fc0ae996c85a74605aea7acf7dd7d31ed304694312724d118",
160
+ "sha256": "a83e3d54e55fb18bd393412ab7f85aacf27246eadd5f137f9d8c4c5f98e13630",
161
+ "sha1": "68fa94eb248341effd8afe92bee7335ec2df9c01",
162
+ "md5": "b1651ae06af2d05498af6f6ba2eb1ca8"
163
163
  }
164
164
  ]
165
165
  },
@@ -173,8 +173,8 @@
173
173
  },
174
174
  "files": [
175
175
  {
176
- "name": "expo.modules.filesystem-19.0.0-canary-20250811-5c940c0-sources.jar",
177
- "url": "expo.modules.filesystem-19.0.0-canary-20250811-5c940c0-sources.jar",
176
+ "name": "expo.modules.filesystem-19.0.1-sources.jar",
177
+ "url": "expo.modules.filesystem-19.0.1-sources.jar",
178
178
  "size": 25388,
179
179
  "sha512": "3a192ba23bc4b2423142c3aae16cc8014ff5e1f9a29d1f0d7c8ce2fca93418b45b974272071cc4091da2485b8a037a7459c1dc5fc0ab29892e1ce92682368930",
180
180
  "sha256": "8fb9d4425d07c85743203381f588a6e3f7310078986d26bdd4553b7eed770d89",
@@ -0,0 +1 @@
1
+ a362f09e2f97192a1de20786ef91ec5046ade2a6efdb9327b66f4d02ae25673f
@@ -0,0 +1 @@
1
+ 10795b45afd43b375e68c129e8d558397b473abed07b89c11da2a961970d1c1fa3c96e362eda4e9f00b6fa339406c40f85e8736322b0bace838c4094b0ed0de9
@@ -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.0-canary-20250811-5c940c0</version>
12
+ <version>19.0.1</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
+ 7307f9f95088cead485919da171b0b855e5db2365c4aedf1db0e66221f76d454
@@ -0,0 +1 @@
1
+ ded938ebd869a254178235b669d2d047d82cae8af4384dba8326b51ead203ce090545d45d08b69cb58e25d9b05616987a2e109f95d2e18be3022d69ef944c471
@@ -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.0-canary-20250811-5c940c0</latest>
7
- <release>19.0.0-canary-20250811-5c940c0</release>
6
+ <latest>19.0.1</latest>
7
+ <release>19.0.1</release>
8
8
  <versions>
9
- <version>19.0.0-canary-20250811-5c940c0</version>
9
+ <version>19.0.1</version>
10
10
  </versions>
11
- <lastUpdated>20250811152949</lastUpdated>
11
+ <lastUpdated>20250815180456</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- 918b7d64bb2f00b1320b26cbd6312629
1
+ 74f380c71369c25e05ff551dd1fee4ce
@@ -1 +1 @@
1
- 84f77a4ee29b07a096e64bc04e2c01e51c7a7427
1
+ 3dec2781a53ebd73b694ccc65d4a3b502b03cc53
@@ -1 +1 @@
1
- d7ff3fb9537d30dbe26eaa5723ab0fa58fd3cd407157ec33b8339a7a9cbe5885
1
+ 0da105927685e318e377648bcf661250781d55163e90b9763c8a2722137d6258
@@ -1 +1 @@
1
- e4f5a89a096d4dd9d276ac8c776cfc49ced587e18a6f537dc6c0f86b57d4f2ee5085529a034e5b496d5b18508139915f3bc39ca383663b81dfb4fa3f2b7b8463
1
+ 337292dcd06601d036fad37cb67fa81df65d9d7f0a29f7b915f182436923fff964d54cb53b930ec96e0c72c9dec110bfa1e58e91d97dde75c142d6caebd97aa3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-file-system",
3
- "version": "19.0.0-canary-20250811-5c940c0",
3
+ "version": "19.0.1",
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,11 +35,12 @@
35
35
  "preset": "expo-module-scripts"
36
36
  },
37
37
  "devDependencies": {
38
- "expo-module-scripts": "4.1.11-canary-20250811-5c940c0",
39
- "jest-expo": "54.0.0-canary-20250811-5c940c0"
38
+ "expo-module-scripts": "^5.0.1",
39
+ "jest-expo": "~54.0.0"
40
40
  },
41
41
  "peerDependencies": {
42
- "expo": "54.0.0-canary-20250811-5c940c0",
42
+ "expo": "*",
43
43
  "react-native": "*"
44
- }
44
+ },
45
+ "gitHead": "2f7f90d0736af48cb542ccbc8addb836e330693a"
45
46
  }
@@ -150,7 +150,7 @@ export declare class File {
150
150
  * Retrieves byte content of the entire file.
151
151
  * @returns A promise that resolves with the contents of the file as a Uint8Array.
152
152
  */
153
- bytes(): Promise<Uint8Array>;
153
+ bytes(): Promise<Uint8Array<ArrayBuffer>>;
154
154
 
155
155
  /**
156
156
  * Retrieves byte content of the entire file.
@@ -258,7 +258,7 @@ export declare class FileHandle {
258
258
  * Reads the specified amount of bytes from the file at the current offset.
259
259
  * @param length The number of bytes to read.
260
260
  */
261
- readBytes(length: number): Uint8Array;
261
+ readBytes(length: number): Uint8Array<ArrayBuffer>;
262
262
  /*
263
263
  * Writes the specified bytes to the file at the current offset.
264
264
  * @param bytes A `Uint8Array` array containing bytes to write.
package/src/FileSystem.ts CHANGED
@@ -10,6 +10,12 @@ export class Paths extends PathUtilities {
10
10
  static get cache() {
11
11
  return new Directory(ExpoFileSystem.cacheDirectory);
12
12
  }
13
+ /**
14
+ * A property containing the bundle directory – the directory where assets bundled with the application are stored.
15
+ */
16
+ static get bundle() {
17
+ return new Directory(ExpoFileSystem.bundleDirectory);
18
+ }
13
19
 
14
20
  /**
15
21
  * A property containing the document directory – a place to store files that are safe from being deleted by the system.
@@ -99,7 +105,7 @@ export class File extends ExpoFileSystem.FileSystemFile implements Blob {
99
105
  return bytes.buffer as ArrayBuffer;
100
106
  }
101
107
 
102
- stream(): ReadableStream<Uint8Array> {
108
+ stream(): ReadableStream<Uint8Array<ArrayBuffer>> {
103
109
  return this.readableStream();
104
110
  }
105
111
 
@@ -1 +0,0 @@
1
- 0f7b75431b4af46874d9f492d3ec3112f430b4c5f655a3ea9eba165799a574e4f4950f7e68619d27a811a04e92dcc2fe2669baca76d189addab8c9249fa1fd25
@@ -1 +0,0 @@
1
- 17c18c463814cd6d277f90e15f57d557db9312eb603298699267b17fb1caf1b97a7502096d30eccadd471f9081141ebbe2f1ec8ff6bfa7f3396d32770c68a88b
@@ -1 +0,0 @@
1
- 16324f9fc03571f78b6b1ff07cc9c135722d322b548070697e4ae76541f7e4681f0403b01ebd7b3a751cfc2b9f4a886542801941ec1e5787f0e19b8944b53af4