Skip to content

Commit fb08764

Browse files
chore(main): release bargs 2.0.0 (#7)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 43cb4fb commit fb08764

4 files changed

Lines changed: 21 additions & 4 deletions

File tree

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.0.0"
2+
".": "2.0.0"
33
}

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Changelog
22

3+
## [2.0.0](https://github.com/boneskull/bargs/compare/bargs-v1.0.0...bargs-v2.0.0) (2026-01-04)
4+
5+
6+
### ⚠ BREAKING CHANGES
7+
8+
* **types:** transforms must appear before handler in config object for TypeScript to infer transformed types in handler parameters
9+
10+
### Features
11+
12+
* **types:** add TGlobalTransforms type parameter to CommandConfig ([f91683a](https://github.com/boneskull/bargs/commit/f91683abd36ab0c4eef49f8a47e4ea770d555263))
13+
14+
15+
### Bug Fixes
16+
17+
* type inference issues; inference no longer reliant on property ordering ([43cb4fb](https://github.com/boneskull/bargs/commit/43cb4fb4686253cf99d43e866823ff2cdf14b381))
18+
* **types:** improve type inference for transforms and command handlers ([4516aa6](https://github.com/boneskull/bargs/commit/4516aa6e5878770d362e5e90cdca1483b4186f0d))
19+
320
## [1.0.0](https://github.com/boneskull/bargs/compare/bargs-v0.1.1...bargs-v1.0.0) (2026-01-02)
421

522

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@boneskull/bargs",
3-
"version": "1.0.0",
3+
"version": "2.0.0",
44
"type": "module",
55
"description": "A TypeScript-first CLI argument parser wrapping util.parseArgs() with full type inference",
66
"repository": {

0 commit comments

Comments
 (0)