Skip to content

Releases: GoogleChromeLabs/browser-fs-access

v0.38.0

18 Jun 10:49
Compare
Choose a tag to compare
  • Fix TypeScript types for directoryOpen() (via #160)

v0.37.0

25 Apr 07:51
Compare
Choose a tag to compare

v0.36.0

24 Apr 11:43
Compare
Choose a tag to compare
  • Use the cancel method for better exception handling with legacy methods. (#153, #158)

v0.35.0

14 Sep 08:57
Compare
Choose a tag to compare
  • Fix cross-origin iframe detection. The minifier logic changed and replaced self.top.location + '' to just top, causing the exception to no longer throw.

v0.34.1

22 May 10:53
Compare
Choose a tag to compare
  • Don't use useCapture. (#142)

v0.34.0

19 May 13:35
Compare
Choose a tag to compare
  • Set useCapture option for removeEventListener() (#142).

v0.33.0

27 Feb 11:40
Compare
Choose a tag to compare
  • Properly detect support in same- and cross-origin iframes. Before, it would erroneously use the fallback solution. (#138)

v0.32.1

20 Feb 19:04
Compare
Choose a tag to compare
  • When the File System Access API is supported, the directoryOpen() function now returns the directory handle in the results array in case the directory is empty. Before, the function would return an empty array. This is a breaking change.

Warning

Breaking change:

// If the directory is empty, rather than `[]`,
// this function now returns `[directoryHandle]`
// when the File System Access API is supported.
const files = await directoryOpen();
// Check if there are files in the directory.
if (files.length && !(files[0] instanceof File)) {
  // The directory is empty and the returned item
  // is a `FileSystemDirectoryHandle`.
  const directoryHandle = files[0];
  return directoryHandle;
}
// There are files in the directory.
for (file of files) {
  // Iterate over the files.
}

v0.31.2

12 Jan 15:43
Compare
Choose a tag to compare
  • Add exported types to package resolution (#137)

v0.31.1

07 Oct 11:17
Compare
Choose a tag to compare
  • Use HTMLInputElement.showPicker() when possible (#126).