+13
-0
@@ -8,2 +8,15 @@ # Changelog | ||
| ## [v1.1.1](https://github.com/nvm-sh/nvmrc/compare/v1.1.0...v1.1.1) - 2025-11-24 | ||
| ### Fixed | ||
| - [Fix] reject invalid semver ranges [`#2`](https://github.com/nvm-sh/nvmrc/issues/2) | ||
| ### Commits | ||
| - [Dev Deps] update `@ljharb/eslint-config`, `auto-changelog`, `c8`, `tape` [`62f24bc`](https://github.com/nvm-sh/nvmrc/commit/62f24bc7dc58804044c5fbb4eeb867936c34c6fb) | ||
| - [Dev Deps] update `@ljharb/eslint-config`, `eslint`, `npmignore` [`32ee92c`](https://github.com/nvm-sh/nvmrc/commit/32ee92cbd833df225229f77dd57a577c1577fb0b) | ||
| - [Tests] replace `aud` with `npm audit` [`bea2633`](https://github.com/nvm-sh/nvmrc/commit/bea2633dd1cd50bcb0dffbcd7575af79a2058725) | ||
| - [meta] add missing peer dep [`673d7d9`](https://github.com/nvm-sh/nvmrc/commit/673d7d92a76d69a54b766b2e0c21474f7d3af908) | ||
| ## [v1.1.0](https://github.com/nvm-sh/nvmrc/compare/v1.0.0...v1.1.0) - 2024-06-20 | ||
@@ -10,0 +23,0 @@ |
+8
-1
@@ -68,3 +68,8 @@ #! /usr/bin/env node | ||
| if (map.size !== optionsEntries.length || !map.has('node') || rawOptions.filter((x) => !x.includes('=')).length !== 1) { | ||
| if ( | ||
| map.size !== optionsEntries.length | ||
| || !map.has('node') | ||
| || rawOptions.filter((x) => !x.includes('=')).length !== 1 | ||
| || (/^\s*[~^><=]/).test(map.get('node').trim()) | ||
| ) { | ||
| console.error(` | ||
@@ -77,2 +82,4 @@ invalid .nvmrc! | ||
| additionally, a single bare nvm-recognized version-ish must be present (after stripping comments). | ||
| Note that nvm does not understand semver ranges. | ||
| `); | ||
@@ -79,0 +86,0 @@ |
+9
-9
| { | ||
| "name": "nvmrc", | ||
| "version": "1.1.0", | ||
| "version": "1.1.1", | ||
| "description": "command-line tool to validate a `.nvmrc` file", | ||
@@ -18,3 +18,3 @@ "bin": "./nvmrc.mjs", | ||
| "test": "npm run tests-only", | ||
| "posttest": "aud --production", | ||
| "posttest": "npx npm@\">= 10.2\" audit --production", | ||
| "version": "auto-changelog && git add CHANGELOG.md", | ||
@@ -42,12 +42,12 @@ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" | ||
| "devDependencies": { | ||
| "@ljharb/eslint-config": "^21.1.1", | ||
| "aud": "^2.0.4", | ||
| "auto-changelog": "^2.4.0", | ||
| "c8": "^10.1.2", | ||
| "eslint": "=8.8.0", | ||
| "@ljharb/eslint-config": "^22.0.0", | ||
| "auto-changelog": "^2.5.0", | ||
| "c8": "^10.1.3", | ||
| "encoding": "^0.1.13", | ||
| "eslint": "^8.57.1", | ||
| "in-publish": "^2.0.1", | ||
| "npmignore": "^0.3.1", | ||
| "npmignore": "^0.3.2", | ||
| "safe-publish-latest": "^2.0.0", | ||
| "strip-color": "^0.1.0", | ||
| "tape": "^5.8.1" | ||
| "tape": "^5.9.0" | ||
| }, | ||
@@ -54,0 +54,0 @@ "testling": { |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances in 1 package
10505
9.53%72
9.09%