Skip to content

2.2.0

Choose a tag to compare

@release-drafter release-drafter released this 24 Jul 06:58
· 99 commits to master since this release
f4abd47

Features

  • perf(cache): Use faster Map instead of Object. @SukkaW [#209]
  • feat(cache): cache#dump & cache#size @SukkaW [#209]
    // Output number of key-value pairs
    cache.size();
    // 3
    
    // Outputs everything in cache
    cache.dump();
    /*
    {
      foo: 'bar',
      baz: 123,
      qux: 456
    }
    */

Fixes

  • Support string argument in spawn() @curbengh [#220]

    • Previously spawn() only supports array argument:
    spawn('cat', ['test.txt']).then((content) => {
      console.log(content);
    });
    • Now string argument is also valid:
    spawn('cat', 'test.txt').then((content) => {
      console.log(content);
    });
  • fix(highlight): support caption when wrap is disabled @curbengh [#210]

    # _config.yml
    highlight:
      wrap: false
    ```js caption
    const hi = 'bob'
    ```

Housekeeping

Dependencies

  • chore(deps-dev): bump mocha from 7.2.0 to 8.0.1 [#211]
  • chore(deps-dev): bump eslint from 6.8.0 to 7.0.0 [#207]