Releases: lukeed/mri
Releases · lukeed/mri
v1.2.0
v1.1.6
v1.1.5
v1.1.4
Patches
- Fixed parsing of flags when its
default
has boolean value (#8): 94f8c09
Thank you @marvinhagemeister for reporting
Chores
- Added additional tests
- Pinned
[email protected]
for benchmark comparison
v1.1.3
v1.1.2
Performance!
The core of mri
has been maintained – improved, in fact – but I applied my learnings over the last 12 months. Since mri
was (one of) my first performance-oriented libraries, I am very pleased with the 70% performance gain while maintaining no breaking changes~! 🙌
# Node v10.13.0
minimist x 324,469 ops/sec ±1.20% (96 runs sampled)
mri (prev) x 917,360 ops/sec ±1.22% (95 runs sampled)
mri x 1,611,167 ops/sec ±0.22% (96 runs sampled)
nopt x 920,029 ops/sec ±1.13% (97 runs sampled)
yargs-parser x 39,542 ops/sec ±1.14% (95 runs sampled)
Patches
General fixes that match minimist
behavior:
- Include
opts.default
keys withinunknown
check (#4) - Attempt
Number
cast before moving value into_
array - Apply correct interaction between
Boolean
values &String
casting
Chores
- Updated README
- Imported more tests from
minimist