Releases: privatenumber/type-flag
Releases · privatenumber/type-flag
v3.0.0
3.0.0 (2022-11-09)
Bug Fixes
- flag parsing to ignore prototype (2c5bcfd)
- remove validation already enforced by types (9d16ee5)
- unknown flag values to be passed in explicitly (#13) (4d19ae3)
- unknown flags to not collide with object prototype (d52925b)
Features
BREAKING CHANGES
- replace
ignoreUnknown
withignore
callback and mutates passed inargv
- typeFlag is now a named export
- values must be explicitly passed into unknown flags (e.g.
--unknown=value
instead of--unknown value
)
v2.2.0
v2.1.0
v2.0.1
v2.0.0
2.0.0 (2021-12-17)
Bug Fixes
- improve validation for type assertion (1787327)
- support read-only array (fdb1d31)
- support readonly schema (6dee21f)
Features
- add required option (#2) (179d739)
- add required option (#3) (02a81ee)
- flags to accept extra schema options (aeed456)
- remove required option (#5) (7c3e38d)
- set default on argv and move to end (#4) (2295310)
- support array-type (#1) (36e906d)
- TypeFlag generic (792d76c)
BREAKING CHANGES
- rearrange typeFlag parameters
- default flags are no longer arrays