File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,10 @@ path.posix.basename('/tmp/myfile.html');
5757## path.basename(path[ , ext] )
5858<!-- YAML
5959added: v0.1.25
60+ changes:
61+ - version: v6.0.0
62+ pr-url: https://github.com/nodejs/node/pull/5348
63+ description: Passing a non-string as the `path` argument will throw now.
6064-->
6165
6266* ` path ` {String}
@@ -114,6 +118,10 @@ process.env.PATH.split(path.delimiter)
114118## path.dirname(path)
115119<!-- YAML
116120added: v0.1.16
121+ changes:
122+ - version: v6.0.0
123+ pr-url: https://github.com/nodejs/node/pull/5348
124+ description: Passing a non-string as the `path` argument will throw now.
117125-->
118126
119127* ` path ` {String}
@@ -134,6 +142,10 @@ A [`TypeError`][] is thrown if `path` is not a string.
134142## path.extname(path)
135143<!-- YAML
136144added: v0.1.25
145+ changes:
146+ - version: v6.0.0
147+ pr-url: https://github.com/nodejs/node/pull/5348
148+ description: Passing a non-string as the `path` argument will throw now.
137149-->
138150
139151* ` path ` {String}
@@ -408,6 +420,11 @@ of the `path` methods.
408420## path.relative(from, to)
409421<!-- YAML
410422added: v0.5.0
423+ changes:
424+ - version: v6.8.0
425+ pr-url: https://github.com/nodejs/node/pull/8523
426+ description: On Windows, the leading slashes for UNC paths are now included
427+ in the return value.
411428-->
412429
413430* ` from ` {String}
You can’t perform that action at this time.
0 commit comments