Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: configuring logger level and release via environment variables,… #133

Merged
merged 6 commits into from
Jun 8, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
node-version: [16.x, 18.x]
node-version: [18.x, 20.x]
carlocorradini marked this conversation as resolved.
Show resolved Hide resolved
fail-fast: true
runs-on: ${{ matrix.platform }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.17.0
v18.12.0
1 change: 1 addition & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"EditorConfig.EditorConfig",
"esbenp.prettier-vscode",
"Orta.vscode-jest",
"GitHub.vscode-github-actions",
"Gruntfuggly.todo-tree",
"timonwong.shellcheck",
"usernamehw.errorlens"
Expand Down
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"typescript.tsdk": "./node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [v3.0.0](https://github.com/gunar/shellcheck/releases/tag/v3.0.0) - 2024-06-06

### Added

- Configure release version via environment variable `SHELLCHECKJS_RELEASE`

- Configure logger level via environment variable `SHELLCHECKJS_LOGGER_LEVEL`

### Deprecated

- Drop support for _Node.js_ versions that do not match `>=18.12.0`

## [v2.2.0](https://github.com/gunar/shellcheck/releases/tag/v2.2.0) - 2023-02-04

### Changed
Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Downloads the most recent version of [koalaman](https://github.com/koalaman)'s [

## Installation

> **Warning**: Node.js version `>= 18.4.0 || >= 16.17.0` is required
> **Warning**: Node.js version `>= 18.12.0` is required

```sh
npm install --save-dev shellcheck
Expand All @@ -35,6 +35,13 @@ Execute `shellcheck` directly from your npm scripts:
}
```

### Environment Variables

| **Name** | **Values** | **Default** | **Description** |
| :-------------------------- | :--------------------------------------------------------- | :---------- | :--------------------------------------------------------------------- |
| `SHELLCHECKJS_RELEASE` | `latest` \| `v(0\|[1-9]\d*)\.(0\|[1-9]\d*)\.(0\|[1-9]\d*)` | `latest` | Release version. See <https://github.com/koalaman/shellcheck/releases> |
| `SHELLCHECKJS_LOGGER_LEVEL` | `off` \| `debug` \| `info` \| `warn` \| `error` | `info` | Logger level |

### Programmatic

> **Note**: More _functions_, _utilities_, and _constants_ are available
Expand Down
2 changes: 2 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
"codeql",
"corradini",
"cygwin",
"envalid",
"gessner",
"gunar",
"koalaman",
"postbuild",
"shellcheck",
"shellcheckjs",
"singlequote",
"tada",
"tsdoc"
Expand Down
Loading
Loading