Skip to content

Releases: lukeed/mri

v1.2.0

12 Sep 22:39
Compare
Choose a tag to compare

Features

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

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

14 Jul 22:32
Compare
Choose a tag to compare

Chores

v1.1.5

24 Mar 04:51
Compare
Choose a tag to compare

Patches

Chores

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

v1.1.4

23 Dec 19:10
Compare
Choose a tag to compare

Patches

Chores

  • Added additional tests
  • Pinned mri@1.1.1 for benchmark comparison

v1.1.3

21 Dec 21:08
Compare
Choose a tag to compare

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

21 Dec 10:23
Compare
Choose a tag to compare

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

07 May 08:24
Compare
Choose a tag to compare

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

14 Jun 19:36
Compare
Choose a tag to compare

Minor Changes