Skip to content

Latest commit

 

History

History
131 lines (53 loc) · 5.54 KB

File metadata and controls

131 lines (53 loc) · 5.54 KB

2.0.6 (2022-09-06)

Bug Fixes

  • fix a bug in ensureFile when creating a file (d7b1ebd)

2.0.5 (2022-07-25)

Features

  • isEmptyDir(Sync) now supports the option followlink (0984d35)

2.0.4 (2022-07-23)

Bug Fixes

  • fix the bug that copySync and moveSync accidentally throw errors when dest does not exist (9b79f4a)

Features

2.0.3 (2022-07-21)

2.0.2 (2022-07-21)

Bug Fixes

  • fix the issue that cjs version was prompting incorrectly when used directly in node (e31db2b)
  • options.force of copy() should be true (f21e4b5)

2.0.1 (2022-07-20)

Bug Fixes

  • fill in the missing links (83f6343)

2.0.0 (2022-07-20)

Features

  • add delete(); toRelative() can have no args (b7322eb)
  • add types of original array methods of PathNiceArr (e3089ec)
  • toAbsolute() now supports relative path as arg; base of returned PathNiceArr of ls() becomes absoulte; In PathNiceArr, the original array method returns a new array with the same base as the original array (74569ae)

1.2.3 (2022-07-03)

Bug Fixes

1.2.2 (2022-07-03)

Features

  • pathPosix() can accept multiple parameters, can be strings or paths, and infer the return type (5c229ba)

1.2.1 (2022-07-03)

Bug Fixes

  • adjust import / export structure to fix esm (ea58149)

1.2.0 (2022-07-03)

Features

  • common: emptyDir now create dir if not exists (3cf3452)
  • now fn of updateXXX can return a Promise (6d0640b)

1.1.0 (2022-07-03)

Bug Fixes

  • copy should use the path provided; JSON.stringify use 4 spaces by default (f9c51d3)

Features

  • add copyTo impl (27df486)
  • add fs read/write methods (87751e7)
  • add fs related methods; now filename() returns a string (0433155)
  • add move and remove, modify copy (5fd1043)
  • add posix and win32 specific pathing (7298323)
  • fix jsdoc, remove .dotdot, fix .filename(), add .outputFile(), .outputJson(), etc (a047cca)
  • posix/type-gymnastics: add ForceSep, fix the result of Join and Normalize when input is string (c972a5b)
  • some methods of PathNice and their documentation have been modified (988a4c6)
  • xxxJson rename to xxxJSON (37e3342)

BREAKING CHANGES

  • readJson, writeJson, outputJson and updateJson are renamed readJSON, writeJSON, outputJSON, updateJSON respectively.