diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 2941e5b..74b66b4 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "5.0.4" + ".": "5.0.5" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 07419ae..24d9de0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [5.0.5](https://github.com/npm/git/compare/v5.0.4...v5.0.5) (2024-04-08) + +### Bug Fixes + +* [`d9bf355`](https://github.com/npm/git/commit/d9bf355a35b4d11b86b64bec8f748ddba088a926) [#180](https://github.com/npm/git/pull/180) use fs/promises instead of util.promisify (#180) (@lukekarrys) + ## [5.0.4](https://github.com/npm/git/compare/v5.0.3...v5.0.4) (2023-12-19) ### Bug Fixes diff --git a/lib/is.js b/lib/is.js index e2542f2..f5a0e87 100644 --- a/lib/is.js +++ b/lib/is.js @@ -1,6 +1,4 @@ // not an airtight indicator, but a good gut-check to even bother trying -const { promisify } = require('util') -const fs = require('fs') -const stat = promisify(fs.stat) +const { stat } = require('fs/promises') module.exports = ({ cwd = process.cwd() } = {}) => stat(cwd + '/.git').then(() => true, () => false) diff --git a/package.json b/package.json index 485c1f4..7493ec7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@npmcli/git", - "version": "5.0.4", + "version": "5.0.5", "main": "lib/index.js", "files": [ "bin/",