-
-
Notifications
You must be signed in to change notification settings - Fork 42
Releases: zen-fs/core
Releases · zen-fs/core
2.5.6
2.5.5
@james-pre
james-pre
This patch updates to typescript 6.0 and removes some polyfilled types.
Assets 2
2.5.4
@james-pre
james-pre
This patch changes zenfs-test back to using a .js file since type stripping is not supported for files in node_modues.
Assets 2
2.5.3
@james-pre
james-pre
- Moved logic for
statandlstatinto VFS (in preparation for #287) - Added
--runs/-rtozenfs-test, which will run a test suite (e.g. for theSingleBuffertests) multiple times and output average run time - Fixed
MetadataBlock.lockIndexsometimes causing a runtime error due to microsoft/TypeScript#61862 - Updated memium to v0.4.3
Assets 2
2.5.2
@james-pre
james-pre
- Fixed incorrect escaping in
globToRegex - Fixed incorrect path joining in
glob/globSync - Fixed more issues in
glob/globSync - Added glob tests
Assets 2
2.5.1
@james-pre
james-pre
- Updated to
@types/nodev25- Changed some return types to use
NonSharedBuffer(see DefinitelyTyped/DefinitelyTyped#72687)
- Changed some return types to use
- Updated some other dependencies
- Fixed
zenfs-test --reportcausing CI to fail because the coverage reporter isn't compatible with Node v25 (bcoe/c8#582) - Updated eslint config
Assets 2
2.5.0
@james-pre
james-pre
- Added support for synchronous configuration (#281, thanks @lvcabral) [docs]
- Fixed
PassthroughOptions.prefixbeing passed throughpath.resolve, breaking Windows paths (#284) - Changed
journalOperationsto aSetfor better performance[internal] - Added a note in the readme about path and readline emulation
Assets 2
1 person reacted
2.4.4
@james-pre
james-pre
- Fixed incorrect path resolution when inside a context with a non-root PWD (#263)
- Fixed
bindContextcopying from the created child context instead of assigning to it - Fixed
resolveMountnot resolving paths using the context's PWD normalizePathnow passes throughthistopath.resolve- Anti-regression tests now have the issue number in the test name instead of as a comment
- Contexts are now more secure at runtime, with
readonlymembers being made non-writable and non-configurable - Added internal
contextOfandcreateChildContext V_Contextis nowunknownfor better compatibility with Node.jsbindContextnow checks if the specified root is a directory and exists- Fixed incorrect example for
bindContextin documentation
Assets 2
2.4.3
2.4.2
@james-pre
james-pre
- Changed path resolution to be more efficient and faster by internal functions (
resolveMount/resolve) instead ofrealpathfrom the Node.js compatibility layer - Fixed incorrect behavior in read when passing
0forposition - Fixed passthrough needing
__promisify__/native - Fixed incorrect
Dirent.parentPathreturned byreaddir - The VFS now compares file systems based on their UUID instead of the object identity
- For example if you create two instances of the same
SingleBufferbackend, the VFS treats them as equal and you won't getEXDEV
- For example if you create two instances of the same
- The Node.js compatibility code and the VFS code have been organized into two different source directories:
nodeandvfs. This is more readable and maintainable. - VFS <-> Backend error handling is now handled in one place (
withExceptionContext) and returned byresolveMountfor convience- For contributors: this means calling
FileSystemmethods likefs.touch(...)will automatically do all the path conversion. You no longer need to wrap these calls withwrapor atry/catch
- For contributors: this means calling
- Added missing contexts.ts export to internal/index.js
- Added a proper
NodeFStype for thenode:fsAPI without node-specific bits like__promisiy__ - Added VFS
Direntclass - Added exports from readline, constants
- Renamed
AsyncHandletoHandleand merged it with sync handle/methods [internal] - Deprecated
Inode.toStats()[internal]
Testing
- Added
-d/--debugflag to zenfs-test (dumps commands) - Added
--profiletozenfs-test - Added test for different working directory with context (#263, marked as todo to not cause failures)
- Fixed directory test
- Changed tests to import from
@zenfs/coreinstead of../dist,../../dist, etc.
Documentation
- Added dedicated documentation page for devices
- Fixed
fsfunctions not being listed under thefsnamespace in documentation - Fixed some outdated documentation
- Updated Memium since beforehand it broke Typedoc
- Switched to Typedoc's built-in
excludeReferencesinstead of a plugin - Updated readme: fixed typos and added backends from other
@zenfspackages - Added a note to contributing guidelines for issue vs discussion
- Removed Dirent-specific tests (i.e. ones that used
new Dirent()
Development
- Issues now use GitHub Issue forms, which should help maintainers (me) triage faster
- npm scripts are now type checked
- Changed to using the built-in
styleTextfor npm scripts - Updated license identifier in index.ts so it is included by bundlers
- Moved license guide to copying
- Improved the .gitignore file