Skip to content

Releases: lukeed/matchit

v1.1.0

05 Oct 05:24

Choose a tag to compare

Features

Chores

  • Fix package.json property: febb904

v1.0.8

04 Apr 01:33

Choose a tag to compare

Patches

Both fixes aim at safer ES5 distribution. The previous version had some ES6 artifacts from a pre-bundt dev environment.

These changes shaved 9 bytes (gzip) from the built files and made matchit significantly faster in all benchmarks – a gain of at least 100k op/sec in most benchmarks~!

Chores

  • Update benchmark results: a7a47f3

v1.0.7

10 Dec 19:22

Choose a tag to compare

Patches

  • Fix: Parse & match against extension segments: 68f5fc8

    // example:
    "/avatars/:username.jpg"
  • Remove destructuring for pure ES5 compliance (#11): 94f3b17
    Thanks @estrattonbailey~!

Chores

v1.0.6

19 May 23:14

Choose a tag to compare

Patches

  • Remove double-loop iterator from match, unnecessary: 87717f2
    Also removed the need for @arr/filter as a dependency.

Chores

  • Updated benchmark results: b6ecb78
    Significant improvements to match results! 🤯

v1.0.2

14 Feb 16:21

Choose a tag to compare

Patches

  • Fixed bundler inconsistency by adding a "module" entry to package.json (#5): f815294, f124a81

    Any bundler that can and is reading the module entry will continue to do so with the @arr/* dependencies. Bundlers will then apply their own interop wrapper, which means that matchit doesn't need to ship one. 🎉

    No changes for those using the existing main export.

  • Added a tiny "build" script to produce the ESM & CJS exports: f815294

v1.0.1

23 Jan 09:31

Choose a tag to compare

Patches

  • Fix case where "/" path on optional-param pattern returned incorrect object: 89249a1, e102317

    let def = parse('/:foo?');
    
    // Previously
    exec('/', def); 
    //=> { foo: '/' }
    
    // Now (correct)
    exec('/', def);
    //=> {}
  • Docs: Fix incorrect API description for exec method (thanks @viko16): 88ae85e

v1.0.0

07 Nov 20:23

Choose a tag to compare

Major Changes

Patches

v0.1.2

05 Nov 19:21

Choose a tag to compare

Patches

  • Fix wildcard matching: c41a6b7
    Allow fewer segments to match if type is *

  • Update benchmarks: 49e9e11

  • Properly declare Node 6.x (LTS) as minimum requirement: 1cb9d7b
    Though technically a breaking change, this was the original intention.
    Plus, releases happened within 5 minutes of each other~

v0.1.0

05 Nov 19:18

Choose a tag to compare

Initial Release

  • Handles static, named parameters, and wildcards
  • Includes initial benchmark values