Skip to content

Commit

Permalink
refinements
Browse files Browse the repository at this point in the history
  • Loading branch information
marcuspoehls committed Sep 26, 2023
1 parent a2cf0e1 commit e0dd68f
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 202 deletions.
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
# Changelog

## [4.0.0](https://github.com/supercharge/fs/compare/v3.4.0...v4.0.0) - 2023-xx-xx

### Added
- `createTempDir`: create a directory inside the operating system’s temporary directory

### Updated
- bump dependencies
- use UVU and c8 instead of jest for testing
- refined tests to use a controlled, local socket

### Fixed
- `basename(path, extension?)`: make the `extension` argument optional

### Breaking Changes
- require Node.js 18 or later
- `tempDir` method: before `4.0.0` this method created a directory inside the operating system’s temporary directory. Starting from `4.0.0` this method is an alias for Node.js’ `os.tmpdir` method. To create a directory inside the OS’s temp dir, use the newly added `createTempDir` method:
```
import Fs from '@supercharge/fs'
// before
await Fs.tempDir()
// after
await Fs.createTempDir()
```


## [3.5.0](https://github.com/supercharge/fs/compare/v3.4.0...v3.5.0) - 2021-xx-xx

### Updated
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@
"url": "https://github.com/supercharge/fs/issues"
},
"dependencies": {
"@supercharge/goodies": "~1.10.1",
"@types/fs-extra": "~9.0.13",
"@supercharge/goodies": "~1.11.1",
"@types/fs-extra": "~11.0.2",
"@types/proper-lockfile": "~4.1.2",
"@types/recursive-readdir": "~2.2.1",
"fs-extra": "~10.1.0",
"fs-extra": "~11.1.1",
"proper-lockfile": "~4.1.2",
"recursive-readdir": "~2.2.2"
"recursive-readdir": "~2.2.3"
},
"devDependencies": {
"@supercharge/eslint-config-typescript": "~2.0.0",
"@supercharge/tsconfig": "~3.1.0",
"c8": "~7.11.3",
"eslint": "~8.15.0",
"expect": "~28.1.0",
"typescript": "~4.6.4",
"uvu": "~0.5.3"
"@supercharge/eslint-config-typescript": "~3.0.1",
"@supercharge/tsconfig": "~5.0.0",
"c8": "~8.0.1",
"eslint": "~8.50.0",
"expect": "~29.7.0",
"typescript": "~5.2.2",
"uvu": "~0.5.6"
},
"engines": {
"node": ">=12"
Expand Down
Loading

0 comments on commit e0dd68f

Please sign in to comment.