expo-file-system 18.1.1 → 18.1.2

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 -0
  2. package/android/build.gradle +2 -2
  3. package/build/FileSystem.types.d.ts +1 -1
  4. package/build/next/ExpoFileSystem.types.d.ts +10 -11
  5. package/build/next/ExpoFileSystem.types.d.ts.map +1 -1
  6. package/build/next/FileSystem.d.ts +10 -1
  7. package/build/next/FileSystem.d.ts.map +1 -1
  8. package/build/next/index.d.ts +2 -1
  9. package/build/next/index.d.ts.map +1 -1
  10. package/expo-module.config.json +1 -1
  11. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{18.1.1/expo.modules.filesystem-18.1.1.module → 18.1.2/expo.modules.filesystem-18.1.2.module} +7 -7
  12. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/18.1.2/expo.modules.filesystem-18.1.2.module.md5 +1 -0
  13. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/18.1.2/expo.modules.filesystem-18.1.2.module.sha1 +1 -0
  14. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/18.1.2/expo.modules.filesystem-18.1.2.module.sha256 +1 -0
  15. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/18.1.2/expo.modules.filesystem-18.1.2.module.sha512 +1 -0
  16. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{18.1.1/expo.modules.filesystem-18.1.1.pom → 18.1.2/expo.modules.filesystem-18.1.2.pom} +1 -1
  17. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/18.1.2/expo.modules.filesystem-18.1.2.pom.md5 +1 -0
  18. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/18.1.2/expo.modules.filesystem-18.1.2.pom.sha1 +1 -0
  19. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/18.1.2/expo.modules.filesystem-18.1.2.pom.sha256 +1 -0
  20. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/18.1.2/expo.modules.filesystem-18.1.2.pom.sha512 +1 -0
  21. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml +4 -4
  22. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml.md5 +1 -1
  23. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml.sha1 +1 -1
  24. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml.sha256 +1 -1
  25. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml.sha512 +1 -1
  26. package/package.json +2 -2
  27. package/src/FileSystem.types.ts +1 -1
  28. package/src/next/ExpoFileSystem.types.ts +12 -12
  29. package/src/next/FileSystem.ts +12 -2
  30. package/src/next/index.ts +3 -1
  31. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/18.1.1/expo.modules.filesystem-18.1.1.module.md5 +0 -1
  32. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/18.1.1/expo.modules.filesystem-18.1.1.module.sha1 +0 -1
  33. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/18.1.1/expo.modules.filesystem-18.1.1.module.sha256 +0 -1
  34. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/18.1.1/expo.modules.filesystem-18.1.1.module.sha512 +0 -1
  35. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/18.1.1/expo.modules.filesystem-18.1.1.pom.md5 +0 -1
  36. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/18.1.1/expo.modules.filesystem-18.1.1.pom.sha1 +0 -1
  37. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/18.1.1/expo.modules.filesystem-18.1.1.pom.sha256 +0 -1
  38. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/18.1.1/expo.modules.filesystem-18.1.1.pom.sha512 +0 -1
  39. /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{18.1.1/expo.modules.filesystem-18.1.1-sources.jar → 18.1.2/expo.modules.filesystem-18.1.2-sources.jar} +0 -0
  40. /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{18.1.1/expo.modules.filesystem-18.1.1-sources.jar.md5 → 18.1.2/expo.modules.filesystem-18.1.2-sources.jar.md5} +0 -0
  41. /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{18.1.1/expo.modules.filesystem-18.1.1-sources.jar.sha1 → 18.1.2/expo.modules.filesystem-18.1.2-sources.jar.sha1} +0 -0
  42. /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{18.1.1/expo.modules.filesystem-18.1.1-sources.jar.sha256 → 18.1.2/expo.modules.filesystem-18.1.2-sources.jar.sha256} +0 -0
  43. /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{18.1.1/expo.modules.filesystem-18.1.1-sources.jar.sha512 → 18.1.2/expo.modules.filesystem-18.1.2-sources.jar.sha512} +0 -0
  44. /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{18.1.1/expo.modules.filesystem-18.1.1.aar → 18.1.2/expo.modules.filesystem-18.1.2.aar} +0 -0
  45. /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{18.1.1/expo.modules.filesystem-18.1.1.aar.md5 → 18.1.2/expo.modules.filesystem-18.1.2.aar.md5} +0 -0
  46. /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{18.1.1/expo.modules.filesystem-18.1.1.aar.sha1 → 18.1.2/expo.modules.filesystem-18.1.2.aar.sha1} +0 -0
  47. /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{18.1.1/expo.modules.filesystem-18.1.1.aar.sha256 → 18.1.2/expo.modules.filesystem-18.1.2.aar.sha256} +0 -0
  48. /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{18.1.1/expo.modules.filesystem-18.1.1.aar.sha512 → 18.1.2/expo.modules.filesystem-18.1.2.aar.sha512} +0 -0
package/CHANGELOG.md CHANGED
@@ -10,6 +10,10 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 18.1.2 — 2025-04-11
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
13
17
  ## 18.1.1 — 2025-04-09
14
18
 
15
19
  _This version does not introduce any user-facing changes._
@@ -4,13 +4,13 @@ plugins {
4
4
  }
5
5
 
6
6
  group = 'host.exp.exponent'
7
- version = '18.1.1'
7
+ version = '18.1.2'
8
8
 
9
9
  android {
10
10
  namespace "expo.modules.filesystem"
11
11
  defaultConfig {
12
12
  versionCode 30
13
- versionName "18.1.1"
13
+ versionName "18.1.2"
14
14
  }
15
15
  }
16
16
 
@@ -265,7 +265,7 @@ export type InfoOptions = {
265
265
  };
266
266
  export type RelocatingOptions = {
267
267
  /**
268
- * URI or [SAF](#saf-uri) URI to the asset, file, or directory. See [supported URI schemes](#supported-uri-schemes-1).
268
+ * URI or [SAF](#saf-uri) URI to the asset, file, or directory. See [supported URI schemes](#supported-uri-schemes).
269
269
  */
270
270
  from: string;
271
271
  /**
@@ -1,4 +1,4 @@
1
- type CreateOptions = {
1
+ export type CreateOptions = {
2
2
  /**
3
3
  * Whether to create intermediate directories if they do not exist.
4
4
  * @default false
@@ -13,7 +13,7 @@ type CreateOptions = {
13
13
  export declare class Directory {
14
14
  /**
15
15
  * Creates an instance of a directory.
16
- * @param uris - An array of: `file:///` string URIs, `File` instances, `Directory` instances representing an arbitrary location on the file system. The location does not need to exist, or it may already contain a file.
16
+ * @param uris An array of: `file:///` string URIs, `File` instances, `Directory` instances representing an arbitrary location on the file system. The location does not need to exist, or it may already contain a file.
17
17
  * @example
18
18
  * ```ts
19
19
  * const directory = new Directory("file:///path/to/directory");
@@ -37,7 +37,7 @@ export declare class Directory {
37
37
  delete(): void;
38
38
  /**
39
39
  * A boolean representing if a directory exists. `true` if the directory exists, `false` otherwise.
40
- * Also `false` if the application does not have read access to the file.
40
+ * Also, `false` if the application does not have read access to the file.
41
41
  */
42
42
  exists: boolean;
43
43
  /**
@@ -75,7 +75,7 @@ export declare class File {
75
75
  /**
76
76
  * Creates an instance of File.
77
77
  *
78
- * @param uri - A `file:///` URI representing an arbitrary location on the file system. The location does not need to exist, or it may already contain a directory.
78
+ * @param uris A `file:///` URI representing an arbitrary location on the file system. The location does not need to exist, or it may already contain a directory.
79
79
  */
80
80
  constructor(...uris: (string | File | Directory)[]);
81
81
  /**
@@ -83,8 +83,8 @@ export declare class File {
83
83
  */
84
84
  readonly uri: string;
85
85
  /**
86
- * Validates a directory path.
87
86
  * @hidden This method is not meant to be used directly. It is called by the JS constructor.
87
+ * Validates a directory path.
88
88
  */
89
89
  validatePath(): void;
90
90
  /**
@@ -104,7 +104,7 @@ export declare class File {
104
104
  bytes(): Uint8Array;
105
105
  /**
106
106
  * Writes content to the file.
107
- * @param content - The content to write into the file.
107
+ * @param content The content to write into the file.
108
108
  */
109
109
  write(content: string | Uint8Array): void;
110
110
  /**
@@ -115,7 +115,7 @@ export declare class File {
115
115
  delete(): void;
116
116
  /**
117
117
  * A boolean representing if a file exists. `true` if the file exists, `false` otherwise.
118
- * Also `false` if the application does not have read access to the file.
118
+ * Also, `false` if the application does not have read access to the file.
119
119
  */
120
120
  exists: boolean;
121
121
  /**
@@ -149,15 +149,15 @@ export declare class File {
149
149
  */
150
150
  static downloadFileAsync(url: string, destination: Directory | File): Promise<File>;
151
151
  /**
152
- * A size of the file in bytes. Null if the file does not exist or it cannot be read.
152
+ * A size of the file in bytes. Null if the file does not exist, or it cannot be read.
153
153
  */
154
154
  size: number | null;
155
155
  /**
156
- * An md5 hash of the file. Null if the file does not exist or it cannot be read.
156
+ * A md5 hash of the file. Null if the file does not exist, or it cannot be read.
157
157
  */
158
158
  md5: string | null;
159
159
  /**
160
- * A mime type of the file. Null if the file does not exist or it cannot be read.
160
+ * A mime type of the file. Null if the file does not exist, or it cannot be read.
161
161
  */
162
162
  type: string | null;
163
163
  }
@@ -168,5 +168,4 @@ export declare class FileHandle {
168
168
  offset: number | null;
169
169
  size: number | null;
170
170
  }
171
- export {};
172
171
  //# sourceMappingURL=ExpoFileSystem.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExpoFileSystem.types.d.ts","sourceRoot":"","sources":["../../src/next/ExpoFileSystem.types.ts"],"names":[],"mappings":"AAAA,KAAK,aAAa,GAAG;IACnB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,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;;;OAGG;IACH,YAAY,IAAI,IAAI;IAEpB;;;;OAIG;IACH,MAAM,IAAI,IAAI;IAEd;;;OAGG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;;;OAIG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI;IAErC;;OAEG;IACH,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,IAAI,GAAG,IAAI;IAEzC;;OAEG;IACH,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,IAAI,GAAG,IAAI;IAEzC;;;;OAIG;IACH,aAAa,IAAI;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE;IAExD;;OAEG;IACH,IAAI,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,EAAE;CAC7B;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,IAAI;IACvB;;;;OAIG;gBACS,GAAG,IAAI,EAAE,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE;IAElD;;OAEG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,YAAY,IAAI,IAAI;IAEpB;;;OAGG;IACH,IAAI,IAAI,MAAM;IA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,OAAO,CAAC;IAEhB;;;;OAIG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI;IAErC;;OAEG;IACH,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,IAAI,GAAG,IAAI;IAEzC;;OAEG;IACH,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,IAAI,GAAG,IAAI;IAEzC;;;OAGG;IACH,IAAI,IAAI,UAAU;IAElB;;;;;;;;;OASG;IACH,MAAM,CAAC,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAEnF;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpB;;OAEG;IACH,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,OAAO,UAAU;IAI7B,KAAK,IAAI,IAAI;IAKb,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU;IAKrC,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAMnC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAItB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB"}
@@ -12,11 +12,20 @@ export declare class Paths extends PathUtilities {
12
12
  static get document(): Directory;
13
13
  static get appleSharedContainers(): Record<string, Directory>;
14
14
  }
15
+ /**
16
+ * @hidden
17
+ */
15
18
  export declare class FileBlob extends Blob {
16
19
  file: File;
20
+ /**
21
+ * @internal
22
+ */
17
23
  key: string;
18
24
  constructor(file: File);
19
25
  get size(): number;
26
+ /**
27
+ * @internal
28
+ */
20
29
  get name(): string;
21
30
  get type(): string;
22
31
  arrayBuffer(): Promise<ArrayBuffer>;
@@ -28,7 +37,7 @@ export declare class FileBlob extends Blob {
28
37
  export declare class File extends ExpoFileSystem.FileSystemFile {
29
38
  /**
30
39
  * Creates an instance of a file.
31
- * @param uris - An array of: `file:///` string URIs, `File` instances, `Directory` instances representing an arbitrary location on the file system. The location does not need to exist, or it may already contain a directory.
40
+ * @param uris An array of: `file:///` string URIs, `File` instances, `Directory` instances representing an arbitrary location on the file system. The location does not need to exist, or it may already contain a directory.
32
41
  * @example
33
42
  * ```ts
34
43
  * const file = new File("file:///path/to/file.txt");
@@ -1 +1 @@
1
- {"version":3,"file":"FileSystem.d.ts","sourceRoot":"","sources":["../../src/next/FileSystem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtE,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,qBAAa,KAAM,SAAQ,aAAa;IACtC;;OAEG;IACH,MAAM,KAAK,KAAK,cAEf;IAED;;OAEG;IACH,MAAM,KAAK,QAAQ,cAElB;IACD,MAAM,KAAK,qBAAqB,8BAO/B;CACF;AAED,qBAAa,QAAS,SAAQ,IAAI;IAChC,IAAI,EAAE,IAAI,CAAC;IACX,GAAG,EAAE,MAAM,CAAc;gBAEb,IAAI,EAAE,IAAI;IAKtB,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,IAAI,IAAI,MAAM,CAEjB;IAEK,WAAW,IAAI,OAAO,CAAC,WAAW,CAAC;IAInC,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC;IAIvB,KAAK,IAAI,OAAO,CAAC,UAAU,CAAC;IAIlC,MAAM,IAAI,cAAc,CAAC,UAAU,CAAC;IAIpC,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI;CAGhE;AAED,qBAAa,IAAK,SAAQ,cAAc,CAAC,cAAc;IACrD;;;;;;;OAOG;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CAAC,MAAM,CAAC;IAIvB,KAAK,IAAI,OAAO,CAAC,UAAU,CAAC;IAIlC,MAAM,IAAI,cAAc,CAAC,UAAU,CAAC;IAIpC,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI;CAGhE;AAED,qBAAa,IAAK,SAAQ,cAAc,CAAC,cAAc;IACrD;;;;;;;OAOG;gBACS,GAAG,IAAI,EAAE,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE;IAQlD,IAAI,IAAI,IAAI;IAOZ,IAAI,eAAe,cAElB;IAED;;;OAGG;IACH,IAAI,SAAS,WAEZ;IAED;;OAEG;IACH,IAAI,IAAI,WAEP;IAED,cAAc;IAId,cAAc;CAGf;AAQD;;;;GAIG;AACH,qBAAa,SAAU,SAAQ,cAAc,CAAC,mBAAmB;IAC/D;;;;;;;OAOG;gBACS,GAAG,IAAI,EAAE,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE;IAQlD,IAAI,eAAe,cAElB;IAED;;;;OAIG;IACH,IAAI,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,EAAE;IAO5B;;OAEG;IACH,IAAI,IAAI,WAEP;CACF"}
@@ -1,2 +1,3 @@
1
- export { Directory, File, Paths } from './FileSystem';
1
+ export * from './FileSystem';
2
+ export { type CreateOptions, type FileHandle } from './ExpoFileSystem.types';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/next/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/next/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAE7B,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,UAAU,EAAE,MAAM,wBAAwB,CAAC"}
@@ -12,7 +12,7 @@
12
12
  "publication": {
13
13
  "groupId": "host.exp.exponent",
14
14
  "artifactId": "expo.modules.filesystem",
15
- "version": "18.1.1",
15
+ "version": "18.1.2",
16
16
  "repository": "local-maven-repo"
17
17
  }
18
18
  }
@@ -3,7 +3,7 @@
3
3
  "component": {
4
4
  "group": "host.exp.exponent",
5
5
  "module": "expo.modules.filesystem",
6
- "version": "18.1.1",
6
+ "version": "18.1.2",
7
7
  "attributes": {
8
8
  "org.gradle.status": "release"
9
9
  }
@@ -68,8 +68,8 @@
68
68
  ],
69
69
  "files": [
70
70
  {
71
- "name": "expo.modules.filesystem-18.1.1.aar",
72
- "url": "expo.modules.filesystem-18.1.1.aar",
71
+ "name": "expo.modules.filesystem-18.1.2.aar",
72
+ "url": "expo.modules.filesystem-18.1.2.aar",
73
73
  "size": 288336,
74
74
  "sha512": "c5250b0095f828c42ce6c6bbde69e13487834110c22190c2e77d45611cb361831248aeaf60da105347be9cdb075d7f21a88737bffdb7fcd8106dac6a311c7eb1",
75
75
  "sha256": "ecf0738f662b846ac391916f7fae32061f69d5cd9e8a7cd587f72eea07704408",
@@ -139,8 +139,8 @@
139
139
  ],
140
140
  "files": [
141
141
  {
142
- "name": "expo.modules.filesystem-18.1.1.aar",
143
- "url": "expo.modules.filesystem-18.1.1.aar",
142
+ "name": "expo.modules.filesystem-18.1.2.aar",
143
+ "url": "expo.modules.filesystem-18.1.2.aar",
144
144
  "size": 288336,
145
145
  "sha512": "c5250b0095f828c42ce6c6bbde69e13487834110c22190c2e77d45611cb361831248aeaf60da105347be9cdb075d7f21a88737bffdb7fcd8106dac6a311c7eb1",
146
146
  "sha256": "ecf0738f662b846ac391916f7fae32061f69d5cd9e8a7cd587f72eea07704408",
@@ -159,8 +159,8 @@
159
159
  },
160
160
  "files": [
161
161
  {
162
- "name": "expo.modules.filesystem-18.1.1-sources.jar",
163
- "url": "expo.modules.filesystem-18.1.1-sources.jar",
162
+ "name": "expo.modules.filesystem-18.1.2-sources.jar",
163
+ "url": "expo.modules.filesystem-18.1.2-sources.jar",
164
164
  "size": 21369,
165
165
  "sha512": "b6bdf273b246dc203665575b202da95d1b55df87fd28b2bb72143c20ee0b7dabfba672fe0af670c00549baef919ac9c3eab49337149ef22f533be258fe35f2af",
166
166
  "sha256": "d082e9b59caa284729d2cfb4707f9e1f3cb78bfdf6cc6d6959ce144e92062963",
@@ -0,0 +1 @@
1
+ 8ffea503cbf4b43d3f74b829b27d17dcee45c78664a5f3d719c5b935dc2355c9
@@ -0,0 +1 @@
1
+ 0332e346d00a0bbdd1913e4e5433cd964b0afc090d2149bc5c593950b833d69081ac30c827ca38245a8425f372fde84f570c0f5a28741639d86c92c676240d20
@@ -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>18.1.1</version>
12
+ <version>18.1.2</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
+ 93f5ec8e6aa660299e7d3d3193cc2234ad389e6c1b8eda6c5c885c9361bde754
@@ -0,0 +1 @@
1
+ 47d21dd89278ee95e66161fd6be182c82d9cc6ca524b8a5db026bee422440ea0eff1bc502cee3ced0a4e0e3cc350247e1f7a461328087b75e5f752c2101bdfdb
@@ -3,11 +3,11 @@
3
3
  <groupId>host.exp.exponent</groupId>
4
4
  <artifactId>expo.modules.filesystem</artifactId>
5
5
  <versioning>
6
- <latest>18.1.1</latest>
7
- <release>18.1.1</release>
6
+ <latest>18.1.2</latest>
7
+ <release>18.1.2</release>
8
8
  <versions>
9
- <version>18.1.1</version>
9
+ <version>18.1.2</version>
10
10
  </versions>
11
- <lastUpdated>20250409202822</lastUpdated>
11
+ <lastUpdated>20250411043202</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- 6a3ac40ca958158286acdb84e1a2c186
1
+ 8a2dcf5cae5d09cf4158661008117ef1
@@ -1 +1 @@
1
- d4547f0915d91fff8ea393ed799622151e6fa437
1
+ ccef8c1efde337ec844d7a1162d53f76f964ee5c
@@ -1 +1 @@
1
- 7bf3c192f6fc05c36f2fa79e2bca0c9890bd5d1788854cc939ac84e1e6000957
1
+ 519ae4dc06fb0746fb486dc624e7a750c8c215527c0e692c91e11e56f1317030
@@ -1 +1 @@
1
- be64219012daccd9ee559bd0fe8f572d7477f2cdbb119eca24a71578c35071a92c2bc492d680f9a059475d2b7dc296471f28f419f9436dcac1d336d470238d31
1
+ 2bfb200d7ff9f7aaa0ba4efbe44f71018aa9de89ad6450ecd79db86ba2bafa1e366f3ed11fb0a2837f06845482d69e9774b6f2df47ff4334bce39c420dcbeede
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-file-system",
3
- "version": "18.1.1",
3
+ "version": "18.1.2",
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",
@@ -45,5 +45,5 @@
45
45
  "dependencies": {
46
46
  "web-streams-polyfill": "^3.3.2"
47
47
  },
48
- "gitHead": "1914bb35d23af23078da37e70988261844436505"
48
+ "gitHead": "c81263062bf24ad09e51e019f1d7dc29fa651c55"
49
49
  }
@@ -293,7 +293,7 @@ export type InfoOptions = {
293
293
 
294
294
  export type RelocatingOptions = {
295
295
  /**
296
- * URI or [SAF](#saf-uri) URI to the asset, file, or directory. See [supported URI schemes](#supported-uri-schemes-1).
296
+ * URI or [SAF](#saf-uri) URI to the asset, file, or directory. See [supported URI schemes](#supported-uri-schemes).
297
297
  */
298
298
  from: string;
299
299
  /**
@@ -1,4 +1,4 @@
1
- type CreateOptions = {
1
+ export type CreateOptions = {
2
2
  /**
3
3
  * Whether to create intermediate directories if they do not exist.
4
4
  * @default false
@@ -14,7 +14,7 @@ type CreateOptions = {
14
14
  export declare class Directory {
15
15
  /**
16
16
  * Creates an instance of a directory.
17
- * @param uris - An array of: `file:///` string URIs, `File` instances, `Directory` instances representing an arbitrary location on the file system. The location does not need to exist, or it may already contain a file.
17
+ * @param uris An array of: `file:///` string URIs, `File` instances, `Directory` instances representing an arbitrary location on the file system. The location does not need to exist, or it may already contain a file.
18
18
  * @example
19
19
  * ```ts
20
20
  * const directory = new Directory("file:///path/to/directory");
@@ -42,7 +42,7 @@ export declare class Directory {
42
42
 
43
43
  /**
44
44
  * A boolean representing if a directory exists. `true` if the directory exists, `false` otherwise.
45
- * Also `false` if the application does not have read access to the file.
45
+ * Also, `false` if the application does not have read access to the file.
46
46
  */
47
47
  exists: boolean;
48
48
 
@@ -83,7 +83,7 @@ export declare class File {
83
83
  /**
84
84
  * Creates an instance of File.
85
85
  *
86
- * @param uri - A `file:///` URI representing an arbitrary location on the file system. The location does not need to exist, or it may already contain a directory.
86
+ * @param uris A `file:///` URI representing an arbitrary location on the file system. The location does not need to exist, or it may already contain a directory.
87
87
  */
88
88
  constructor(...uris: (string | File | Directory)[]);
89
89
 
@@ -93,8 +93,8 @@ export declare class File {
93
93
  readonly uri: string;
94
94
 
95
95
  /**
96
- * Validates a directory path.
97
96
  * @hidden This method is not meant to be used directly. It is called by the JS constructor.
97
+ * Validates a directory path.
98
98
  */
99
99
  validatePath(): void;
100
100
 
@@ -118,7 +118,7 @@ export declare class File {
118
118
 
119
119
  /**
120
120
  * Writes content to the file.
121
- * @param content - The content to write into the file.
121
+ * @param content The content to write into the file.
122
122
  */
123
123
  write(content: string | Uint8Array): void;
124
124
 
@@ -131,7 +131,7 @@ export declare class File {
131
131
 
132
132
  /**
133
133
  * A boolean representing if a file exists. `true` if the file exists, `false` otherwise.
134
- * Also `false` if the application does not have read access to the file.
134
+ * Also, `false` if the application does not have read access to the file.
135
135
  */
136
136
  exists: boolean;
137
137
 
@@ -171,17 +171,17 @@ export declare class File {
171
171
  static downloadFileAsync(url: string, destination: Directory | File): Promise<File>;
172
172
 
173
173
  /**
174
- * A size of the file in bytes. Null if the file does not exist or it cannot be read.
174
+ * A size of the file in bytes. Null if the file does not exist, or it cannot be read.
175
175
  */
176
176
  size: number | null;
177
177
 
178
178
  /**
179
- * An md5 hash of the file. Null if the file does not exist or it cannot be read.
179
+ * A md5 hash of the file. Null if the file does not exist, or it cannot be read.
180
180
  */
181
181
  md5: string | null;
182
182
 
183
183
  /**
184
- * A mime type of the file. Null if the file does not exist or it cannot be read.
184
+ * A mime type of the file. Null if the file does not exist, or it cannot be read.
185
185
  */
186
186
  type: string | null;
187
187
  }
@@ -193,12 +193,12 @@ export declare class FileHandle {
193
193
  close(): void;
194
194
  /*
195
195
  * Reads the specified amount of bytes from the file at the current offset.
196
- * @param length - The number of bytes to read.
196
+ * @param length The number of bytes to read.
197
197
  */
198
198
  readBytes(length: number): Uint8Array;
199
199
  /*
200
200
  * Writes the specified bytes to the file at the current offset.
201
- * @param bytes - A Uint8Array array containing bytes to write.
201
+ * @param bytes A `Uint8Array` array containing bytes to write.
202
202
  */
203
203
  writeBytes(bytes: Uint8Array): void;
204
204
  /*
@@ -28,8 +28,15 @@ export class Paths extends PathUtilities {
28
28
  }
29
29
  }
30
30
 
31
+ /**
32
+ * @hidden
33
+ */
31
34
  export class FileBlob extends Blob {
32
35
  file: File;
36
+
37
+ /**
38
+ * @internal
39
+ */
33
40
  key: string = 'FileBlob';
34
41
 
35
42
  constructor(file: File) {
@@ -41,6 +48,9 @@ export class FileBlob extends Blob {
41
48
  return this.file.size ?? 0;
42
49
  }
43
50
 
51
+ /**
52
+ * @internal
53
+ */
44
54
  get name(): string {
45
55
  return this.file.name;
46
56
  }
@@ -73,7 +83,7 @@ export class FileBlob extends Blob {
73
83
  export class File extends ExpoFileSystem.FileSystemFile {
74
84
  /**
75
85
  * Creates an instance of a file.
76
- * @param uris - An array of: `file:///` string URIs, `File` instances, `Directory` instances representing an arbitrary location on the file system. The location does not need to exist, or it may already contain a directory.
86
+ * @param uris An array of: `file:///` string URIs, `File` instances, `Directory` instances representing an arbitrary location on the file system. The location does not need to exist, or it may already contain a directory.
77
87
  * @example
78
88
  * ```ts
79
89
  * const file = new File("file:///path/to/file.txt");
@@ -85,7 +95,7 @@ export class File extends ExpoFileSystem.FileSystemFile {
85
95
  }
86
96
 
87
97
  /*
88
- * Returns the file as a Blob. The blob can be used in `@expo/fetch` to send files over network and for other uses.
98
+ * Returns the file as a `Blob`. The blob can be used in `@expo/fetch` to send files over network and for other uses.
89
99
  */
90
100
  blob(): Blob {
91
101
  return new FileBlob(this);
package/src/next/index.ts CHANGED
@@ -1 +1,3 @@
1
- export { Directory, File, Paths } from './FileSystem';
1
+ export * from './FileSystem';
2
+
3
+ export { type CreateOptions, type FileHandle } from './ExpoFileSystem.types';
@@ -1 +0,0 @@
1
- b621f3a1da4b964a54d11403d06778e21ea43d12a96b7415097930394b6bbd7b
@@ -1 +0,0 @@
1
- 0f9c705fc28dcceb46f8cd5c08d3089a495210747eb1c18581f7f6d9b78e6793c010bf6d090d31208d5852658b7feecba4b56784c94170f474d0d472c1a8ef49
@@ -1 +0,0 @@
1
- 9196ab7983f80bc2d6071ec595ea13243fb2e89891b23117f93834f0f3e6a2ea
@@ -1 +0,0 @@
1
- 3370ea47d3b507a83fba46bf171dc7d9142fa87ccb32133f13372d5aaec77dac7af247061a3e9bf55161f865ef3f46cde80dceb0b2511f456df9f7ee0886304c