current
if the working directory has been deleted but we have a cached one we can use.<3.0.0
, and adjust other dependencies.retype
implementation for compatibility with the latest SDK.Add a PathMap
class that uses path equality for its keys.
Add a PathSet
class that uses path equality for its contents.
/
on Linux or Mac OS.setExtension()
top-level function and Context
method.Treat package:
URLs as absolute.
Normalize c:\foo\.
to c:\foo
.
/foo
are now resolved relative to the drive letter for file
URLs that begin with a Windows-style drive letter. This matches the WHATWG URL specification./foo
is converted to a Windows path using fromUrl()
, it is now resolved relative to the drive letter. This matches IE's behavior.Add equals()
, hash()
and canonicalize()
top-level functions and Context
methods. These make it easier to treat paths as map keys.
Properly compare Windows paths case-insensitively.
Further improve the performance of isWithin()
.
isWithin()
when paths contain /.
sequences that aren't /../
.Improve the performance of isWithin()
when the paths don't contain asymmetrical .
or ..
components.
Improve the performance of relative()
when from
is null
and the path is already relative.
Improve the performance of current
when the current directory hasn't changed.
absolute()
and normalize()
.path.toUri
preserves trailing slashes for relative paths.Context.relative
- don't call current
if from
is not relative.context
field that provides access to a Context
object for the current system.Many members on Style
that provided access to patterns and functions used internally for parsing paths have been deprecated.
Manually parse paths (rather than using RegExps to do so) for better performance.
path.prettyUri
, which produces a human-readable representation of a URI.path.fromUri
now accepts strings as well as Uri
objects.