Skip to content

Commit

Permalink
Update from nopt 3.x to nopt 5.0.0
Browse files Browse the repository at this point in the history
* grunt-cli updated to nopt 4.x in gruntjs/grunt-cli#117
* grunt-cli updated to nopt 5.0 in gruntjs/grunt-cli#156
* changelog: https://github.com/npm/nopt/blob/v5.0.0/CHANGELOG.md

The simple usage of `nopt(known, alias, argv, 2)` has remained
unchanged through both changes, same as in this repo.

Installation of latest grunt- produces a warning:

> npm WARN deprecated osenv@0.1.5: This package is no longer supported.

This package was used by nopt to call `os.homedir()` which has been built-in
since Node.js 2. The dependency was removed in nopt 5.0.0 with
npm/nopt@5c0e45b.

Newer versions of nopt are available, but those raise the required
Node.js engine level. In order to make this safe to land, and easy to release,
resolve the warning first by moving to nopt 5.0.0, matching grunt-cli.

I'm loosening grunt-cli to allow for grunt-cli 1.5.0, which was just
released with a similar fix. This way it will update by default, but
not cause duplicate installations for downstream projects that depend
on grunt-cli 1.4 directly.
  • Loading branch information
Krinkle committed Jul 20, 2024
1 parent e1bb073 commit 7fe6cc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@
"exit": "~0.1.2",
"findup-sync": "~5.0.0",
"glob": "~7.1.6",
"grunt-cli": "~1.4.3",
"grunt-cli": "^1.4.3",
"grunt-known-options": "~2.0.0",
"grunt-legacy-log": "~3.0.0",
"grunt-legacy-util": "~2.0.1",
"iconv-lite": "~0.6.3",
"js-yaml": "~3.14.0",
"minimatch": "~3.0.4",
"nopt": "~3.0.6"
"nopt": "^5.0.0"
},
"devDependencies": {
"difflet": "~1.0.1",
Expand Down

0 comments on commit 7fe6cc2

Please sign in to comment.