Skip to content

Releases: privatenumber/type-flag

v3.0.0

09 Nov 11:29
Compare
Choose a tag to compare

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 with ignore callback and mutates passed in argv
  • 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

30 Jun 20:41
9be7f0c
Compare
Choose a tag to compare

2.2.0 (2022-06-30)

Features

v2.1.0

28 Jan 22:15
Compare
Choose a tag to compare

2.1.0 (2022-01-28)

Features

  • store end of flags in -- property (#9) (02244d3)

v2.0.1

24 Jan 14:49
3eacd35
Compare
Choose a tag to compare

2.0.1 (2022-01-24)

Bug Fixes

  • allow arbitrary properties on flag (#7) (3eacd35)

v2.0.0

17 Dec 08:02
Compare
Choose a tag to compare

2.0.0 (2021-12-17)

Bug Fixes

  • improve validation for type assertion (1787327)
  • support read-only array (fdb1d31)
  • support readonly schema (6dee21f)

Features

BREAKING CHANGES

  • rearrange typeFlag parameters
  • default flags are no longer arrays

v1.0.0

16 Aug 07:57
Compare
Choose a tag to compare

1.0.0 (2021-08-16)

Features

Performance Improvements

  • slight size optimization (2e9ac81)