Releases: xadaemon/PathRedux
Releases · xadaemon/PathRedux
v3.0.0
Main changes:
- change Path.pop implementation to conform to common usages of pop, returning the popped element and move old behavior exclusively to Path.del
- Make Path.findLastValidNode and add the sync version Path.findLastValidNodeSync.
both are breaking thus the major version bump
v2.1.0
This version is the first to benefit from the LTS status meaning it will have bug fixes back-ported to it until release 2.3.0
Changelog:
- Add
Path.del()
,Path.rm()
andPath.rmSync()
; - Deprecate LINUX_SEPS in favour of UNIX_SEPS it will remamin as an alias of UNIX_SEPS until 3.0.0 to keep the API compatible;
- Deprecate current
Path.pop()
in favour ofPath.del()
now pop is an alias of del;
v2.0.1
v2.0.0 "pathfinder"
News
- This release brings API improvements and a new stability statement
- I'm declaring the public API properly stable at this point
Fixes:
- Fix the mkDir and mkDirSync functionality of the Path object to respect the parents parameter
- Most of the code is correctly commented now and a few typos got corrected
Breaking changes:
- mkDir, mkDirSync and genTmpPath are now part of the Path class.
v1.2.0 "athena"
Changes:
Path.toString
now can take a prefix and or suffix both optionals;
New features:
Path.findLastValidNode(ignoreFiles?: boolean): Path
returns a new Path object containing up to the rightmost existing member of the path;static fromCWD(): Path
returns a new Path object representing the current working directory;