Skip to content

Commit

Permalink
Add 13.1 to CHANGELOG (#2315)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowspawn authored Jan 20, 2025
1 parent 2619c99 commit ad3ecf0
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
<!-- markdownlint-disable MD024 -->
<!-- markdownlint-disable MD004 -->

## [13.1.0] (2025-01-21)

### Added

- support a pair of long option flags to allow a memorable shortened flag, like `.option('--ws, --workspace')` ([#2312])

## [13.0.0] (2024-12-30)

### Added
Expand Down Expand Up @@ -74,6 +80,27 @@ program.action((options) => {
});
```

**Stricter option flag parsing**

Commander now throws an error for option flag combinations that are not supported.
In particular, a short flag with multiple characters is now an error.

```js
program.option('-ws, --workspace'); // throws error
```

A short option has a single character:

```js
program.option('-w, --workspace');
```

Or from Commander 13.1 you can have an extra long flag instead of a short flag to allow a more memorable shortcut for the full name:

```js
program.option('--ws, --workspace');
```

## [13.0.0-0] (2024-12-07)

(Released in 13.0.0)
Expand Down Expand Up @@ -1360,6 +1387,7 @@ program
[#2251]: https://github.com/tj/commander.js/pull/2251
[#2270]: https://github.com/tj/commander.js/pull/2270
[#2299]: https://github.com/tj/commander.js/pull/2299
[#2312]: https://github.com/tj/commander.js/pull/2312


<!-- Referenced in 5.x -->
Expand Down Expand Up @@ -1440,6 +1468,7 @@ program
[#1028]: https://github.com/tj/commander.js/pull/1028

[Unreleased]: https://github.com/tj/commander.js/compare/master...develop
[13.1.0]: https://github.com/tj/commander.js/compare/v13.0.0...v13.1.0
[13.0.0]: https://github.com/tj/commander.js/compare/v12.1.0...v13.0.0
[13.0.0-0]: https://github.com/tj/commander.js/compare/v12.1.0...v13.0.0-0
[12.1.0]: https://github.com/tj/commander.js/compare/v12.0.0...v12.1.0
Expand Down

0 comments on commit ad3ecf0

Please sign in to comment.