2.2.0
Features
- perf(cache): Use faster
Mapinstead 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); });
- Previously
-
fix(highlight): support caption when wrap is disabled @curbengh [#210]
# _config.yml highlight: wrap: false
```js caption const hi = 'bob' ```
Housekeeping
- Drop Node 13 from CI @curbengh [#219]
- refactor(encode/decode_url): replace decodeURI with native querystring.unescape @curbengh [#214]