0.4.0
Pre-release
Pre-release
- Removed "built-in" backend support (providing strings for backend config)
- Removed
backends
andregisterBackend
- This means you must now
import
the backends you would like to use withconfigure
- Removed
- All backends are now exported
- The
Backend
andBackendConfig
types are now exported MirrorFile
is now exportedOverlayFile
is now exportedFileFlag
changes:- Renamed
FromString
toGet
- Renamed
NumberToString
toStringOf
- Added
NumberOf
- Renamed
flagStr
to_flag
- Renamed
validFlagStrs
tovalidStrings
- Changed
private
fields toprotected
- Made constructor
protected
, since it should never be called directly (useGet
instead)
- Renamed
- Fixed
encode
anddecode
- Added error handling for buffers passed to the
Inode
constructor that are too small - Added
Inode.birthtimeMs
- Removed
Inode.sizeof
- Added
Offset.end
(for inodes) - Added
StatsLike
(implemented byStatsCommon
,Stats
,BigIntStats
, andInode
) - Updated stats constructor to take
StatsLike
instead of lots of arguments - Deprecated
Stats.clone
andBigIntStats.clone
(usenew Stats(o)
instead ofStats.clone(o)
) - Fixed the
AsyncMirror
validator for thesync
option - Changed many constants to use hex (
0x
) instead of octal (0o
), for clarity - Changed
Mutex
to a named export - Renamed
PreloadFile
type parameter fromT
toFS
- Renamed
LockedFS
type parameter fromT
toFS
- Removed
toPromise
since it was unused - Made
setImmediate
andmkdirpSync
hidden - Changed many internal imports to be type-only
- Marked some classes as internal