Releases: zen-fs/core
Releases · zen-fs/core
0.7.0
- Merged
AsyncMirror
intoAsync()
- This means any asynchronous file systems support sync operations now
- Changed
AsyncStoreFS
to work with the overhauledAsync()
- Removed
FileSystemMetadata.synchronous
- Implementing classes will need to initialize the
_sync
property
- Made
PreloadFile
a concrete class- Implemented methods
sync
,syncSync
,close
, andcloseSync
- Removed unneeded file classes
- This was done because the
sync
andsyncSync
methods are implemented onFileSystem
, which means all of the different classes that extendedPreloadFile
just implemented theFile.sync
andFile.syncSync
methods using the same logic.
- Implemented methods
- Overhauled backend types to infer the options config from the options
- Narrowed backend types by using
satisfies
- Added
AsyncFileSystem.ready()
- Made many utils hidden in docs
0.6.0
- Added promises export
- Added
MountConfiguration
andisMountConfig
- Removed
initialize
in config.ts - Renamed
ConfigMapping
toMappingConfiguration
- Renamed
resolveBackend
toresolveMountConfig
and moved to config.ts - Added support for nested
FileSystem
instances toresolveMountConfig
- Added support for uid/gid in
configure
- Renamed
initialize
in emulation/shared.ts tomountMapping
- Renamed
BackendConfig
toBackendConfiguration
- Improved
isBackendConfig
- Renamed
resolveFS
toresolveMount
- Added default mode to
readFile
0.5.12
- Fixed emulation/sync.ts not importing
Buffer
. - Fixed
realpath
not resolving the real path of parent directories - Fixed
exists
not usingrealpath
- Streamlined
path.resolve
implementation
0.5.11
The current working directory (CWD) is now changeable with a new function cd
in emulation/path.ts.
0.5.10
0.5.9
0.5.8
0.5.7
0.5.6
- Added Node v20 features. The new functions have not been implemented and will throw
ENOTSUP
. - Changed the
ENOTSUP
calls in the compatibility functions to useApiError.With
so they are more descriptive - Fixed built-in backends' type parameters
OptionsConfig.required
(for backends) is now required- Added a
Buffer
polyfill for better compatibility - Removed misc. functions in
stats.ts
0.5.5
- Added support for
ApiError.syscall
- Improved function implementations:
normalizeMode
normalizeOptions
normalizePath
- Fixed normalizePath not normalizing backslashes
- Fixed
PreloadFile.writeSync
returning an offset instead of the bytes written - Fixed
stats.hasAccess
- Added
FS
type parameter toBackendConfig
andresolveBackend