Skip to content

Commit

Permalink
docs(path): add note about unstable-join (#5967)
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k authored Sep 12, 2024
1 parent c5d7930 commit d35803f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions path/join.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ import { join as windowsJoin } from "./windows/join.ts";
* }
* ```
*
* Note: If you are working with file URLs,
* use the new version of `join` from `@std/path/unstable-join`.
*
* @param paths Paths to be joined and normalized.
* @returns The joined and normalized path.
*/
Expand Down
3 changes: 3 additions & 0 deletions path/posix/join.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ import { normalize } from "./normalize.ts";
* assertEquals(path, "/foo/bar/baz/asdf");
* ```
*
* Note: If you are working with file URLs,
* use the new version of `join` from `@std/path/posix/unstable-join`.
*
* @param paths The paths to join.
* @returns The joined path.
*/
Expand Down
3 changes: 3 additions & 0 deletions path/windows/join.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ import { normalize } from "./normalize.ts";
* assertEquals(joined, "C:\\foo\\bar");
* ```
*
* Note: If you are working with file URLs,
* use the new version of `join` from `@std/path/windows/unstable-join`.
*
* @param paths The paths to join.
* @returns The joined path.
*/
Expand Down

0 comments on commit d35803f

Please sign in to comment.