0.35.0
What's Changed
- feat: PathRef improvements and drop deno_std fs & path re-exports by @dsherret in #171
- refactor(BREAKING): rename more synchronous path methods to have
Sync
suffix by @dsherret in #175 - fix: update
stdout()
stderr()
error message by @mashizora in #173 - docs: correct
PathRef.prototype.renameSync
docs by @heyheyhello in #176 - feat: upgrade to deno_std 0.201 internally by @dsherret in #178
PathRef
improvements
The following methods were added to PathRef
:
startsWith(path: PathRef | URL | string): boolean
endsWith(path: PathRef | URL | string): boolean
components(): Generator<string>
ensureDir(): Promise<this>
ensureDirSync(): this
ensureFile(): Promise<this>
ensureFileSync(): this
Additionally, the following methods were renamed:
isDir
->isDirSync
isFile
->isFileSync
isSymlink
->isSymlinkSync
Note: No async counterparts were added for these methods and won't be for a long time in order to make this transition easier and less error prone.
Removal of $.fs
and $.path
deno_std re-exports
The $.fs
and $.path
re-exports of deno_std were removed. It's recommended to just use const path = $.path("some/path");
to work with the file system.
New Contributors
- @mashizora made their first contribution in #173
- @heyheyhello made their first contribution in #176
Full Changelog: 0.34.0...0.35.0