Mri Versions Save

Quickly scan for CLI flags and arguments

v1.2.0

2 years ago

Features

  • Include TypeScript definitions directly: 48e877c Thank you to @shiftkey and @j-f1 who previously wrote/maintained @types/mri :bow:

Chores

  • Migrate from TravisCI to GitHub Actions (#16): 908bbfd Thank you @maraisr

  • Update benchmark candidates' versions; save results: ca8baaa Everything is pinned to the latest version (as of this release).

v1.1.6

3 years ago

Chores

  • Add "module" package entry: dda3343
  • Build from src directory with bundt: 81d65b6
  • Lock devDependency versions: fcb0555, b0b8f8e

v1.1.5

4 years ago

Patches

  • Ensure default value types cascade to aliases (#10): 5437ea5 Thank you @andrewiggins for reporting!

Chores

  • Perf: Swap forEach with for-loops: 9863715
  • Update benchmark results: 36e4a26

v1.1.4

5 years ago

Patches

  • Fixed parsing of flags when its default has boolean value (#8): 94f8c09 Thank you @marvinhagemeister for reporting

Chores

v1.1.3

5 years ago

Patches

So, there was a slight breaking change... Immediately fixed, thanks to @ascorbic for reporting! 😅

  • Do not throw if null value within options.default object (#7)

Chores

  • Added test for #7

v1.1.2

5 years ago

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 within unknown 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

v1.1.1

6 years ago

Patches

  • Support zero (0) as a flag value (#3, #6): e3f239d Thanks @victor0801x!

Chores

  • Remove prettier & husky deps: b2b2b05 No longer pretty 💔

v1.1.0

6 years ago

Minor Changes

  • Added options.unknown feature: b553719
  • Imported unknown tests from minimist: f8c437e
  • Update README docs: 3664558, c30dbfd