- Fixed "too many open files" errors by limiting concurrent FS operations (#8)
- Added the
maxConcurrency
option to customize the concurrency limit for FS operations, with a default value of 50 (#8) - Fixed Node.js warnings such as "Warning: Closing file descriptor # on garbage collection", which is deprecated in Node.js 22 and will result in an error being thrown in the future
- Added
repo.currentBranch()
method - Added
repo.describeRef(ref)
method, which returns an information object about the reference - Added
repo.isOid(value)
method to check if a value is an object ID - Added
isGitDir()
andresolveGitDir()
helper functions - Enhanced
createGitReader()
to automatically attempt adding the.git
folder to the providedgitdir
path, making explicit inclusion of.git
optional
- Fixed size computation of on-disk reverse index (
.rev
files)
- Added
getPathEntry()
method - Added
getPathsEntries()
method - Fixed reading on-disk reverse index (
.rev
files)
- Fixed methods for reading loose objects (
readObjectHeaderByOid
,readObjectHeaderByHash
,readObjectByOid
andreadObjectByHash
) that were not working in some cases due to incorrect formation of the fanout table whenfs.readdir()
returns an unsorted list of entries - Fixed
listRemotes()
method to always return a sorted list of remotes - Fixed
stat()
method to return stable results disregarding offs.readdir()
's result list order
- Initial release