All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Removed
FilePickerOptionsStartInWellKnownDirectoryandFilePickerOptionsStartInFileSystemHandleand replaced their usages with the newFilePickerOptionsclass. - Removed
DirectoryPickerOptionsStartInWellKnownDirectoryandDirectoryPickerOptionsStartInFileSystemHandle. UseDirectoryPickerOptionsinstead. - Removed
OpenFilePickerOptionsStartInWellKnownDirectoryandOpenFilePickerOptionsStartInFileSystemHandle. UseOpenFilePickerOptionsinstead. - Removed
SaveFilePickerOptionsStartInWellKnownDirectoryandSaveFilePickerOptionsStartInFileSystemHandle. UseSaveFilePickerOptionsinstead. - Removed
FileSystemAccessOptionsas we can achieve the same by using an import map to reduce cluttered and inconsistent APIs.
- Reduced number of overloads for the
ShowDirectoryPickerAsyncmethod inIFileSystemAccessServiceandIFileSystemAccessServiceInProcessto only include a single that has an optionalDirectoryPickerOptionsparameter. - Reduced number of overloads for the
ShowOpenFilePickerAsyncmethod inIFileSystemAccessServiceandIFileSystemAccessServiceInProcessto only include a single that has an optionalOpenFilePickerOptionsparameter. - Reduced number of overloads for the
ShowSaveFilePickerAsyncmethod inIFileSystemAccessServiceandIFileSystemAccessServiceInProcessto only include a single that has an optionalSaveFilePickerOptionsparameter. - Changed the version of
Blazor.FileSystemto use the newest version which is1.0.3.
- Added
DirectoryPickerOptionsthat encompases all the ways that we can adjust how we open a directory. - Added
OpenFilePickerOptionsthat encompases all the ways that we can adjust how we open a file. - Added
SaveFilePickerOptionsthat encompases all the ways that we can adjust how we save a file. - Added
FilePickerOptionswhich better reflects the same as the WebIDL specification.
- Added Mode option for BaseDirectoryPickerOptions. By @datvm.
- Changed the version of
Blazor.FileSystemto use the newest version which is0.3.1.
- Fixed to conform to change in spec where
FilePickerAcceptType.Descriptionnow has the empty string as default value i.e."".
- Changed .NET version to
7.0. - Changed the version of
Blazor.FileSystemto use the newest version which is0.3.0.
- Added the generation of a documentation file packaging all XML comments with the package.
- Changed the version of
Blazor.FileSystemto use the newest version which is0.2.0.
- Changed to use
FileSystemHandle,FileSystemFileHandle,FileSystemDirectoryHandle, and their InProcess variants fromBlazor.FileSystem.
- Added
FileSystemAccessOptionsclass that can customize the helper script path. By @datvm. - Added overloads for methods in
FileSystemAccessServiceandFileSystemAccessServiceInProcessmethods that takes aFileSystemAccessOptions. By @datvm. - Added overloads for creator methods on
FileSystemHandle,FileSystemFileHandle, andFileSystemDirectoryHandleand their inProcess counterparts that takes aFileSystemAccessOptions. By @datvm. - Added
Createmethod toFileSystemWritableFileStream.
- Changed the version of
Blazor.FileAPIto use the newest version which is0.2.0.
- Added interfaces for
FileSystemAccessServiceandFileSystemAccessServiceInProcessso that they are test friendly. - Added InProcess variants of the following wrapper classes:
FileSystemDirectoryHandle,FileSystemFileHandle,FileSystemHandleandFileSystemWritableFileStream.
- Changed the Blazor WebAssembly compatible service to be named
FileSystemAccessServiceInProcessinstead ofFileSystemAccessServiceso that Blazor Server support is the standard. - Changed to use the Blazor.FileAPI's definition of
Blobs andFiles. - Changed to have
FileSystemWritableFileStreamextend Blazor.Streams'sWritableStreaminstead of .NETStream. - Changed creator methods
CreateAsyncto takeIJSRuntimefirst to normalize standards with other wrappers.
- Fixed that
BlobWriteParams,StringWriteParams, andByteArrayWriteParamsdidn't set theirWriteCommandTypegiven from the constructor. - Fixed naming of
GetOriginPrivateDirectoryAsyncandIsSupportedAsyncto have Async in name.
- Added
ArrayBufferAsyncmethod toBlobto read as byte array. By @fixnil. - Added public
CreateAsyncmethods toFileSystemHandle,FileSystemFileHandle, andFileSystemDirectoryHandle.
- Fixed naming of
QueryPermissionAsyncandRequestPermissionAsyncto have Async in name. - Fixed that there was an extra in in the name of
OpenFilePickerOptionsStartInFileSystemHandle.
FileSystemWritableFileStreamnow extends theStream.
- Fixed error of
MultipleinOpenFilePickerOptionsStartInWellKnownDirectorynot being serialized correctly. By @AlexanderNorup.
- Added support for Origin Private File System via
GetOriginPrivateDirectorymethod that wraps the JS callnavigator.storage.getDirectory.
- Changed
RemoveEntryAsyncto useFileSystemRemoveOptionsinstead ofFileSystemGetFileOptionsand created theFileSystemRemoveOptionsclass.
- Constructor with
keepExistingDataparameter inFileSystemCreateWritableOptionswas removed for consistency.
- Added support for writing byte arrays to files using
FileSystemWritableFileStream. By @nzmangan.