Metalsmith v2.4.0 Release Notes
Release Date: 2022-01-31 // about 2 years ago-
โ Added
- ๐ #338 Added
Metalsmith#match
method. Plugins no longer need to require a matching library705c4bb
,f01c724
- ๐
#358 Added TS-style JSdocs
828b17e
- ๐ Use native
fs.rm
instead ofrimraf
when available (Node 14.4+)fcbb76e
,66e4376
- #226 Allow passing a gray-matter options object to
Metalsmith#frontmatter
a6438d2
- Modernized dev setup
ef7b781
- โ Added 8 new tests (match method, front-matter options, path & symbolic link handling)
- Files object file paths are now guaranteed to be sorted aphabetically.
4eb1184
- ๐ #211
Metalsmith#build
now returns a promise which you can attach athen/catch
to orawait
. The build callback model is still available.6d5a42d
โ Removed
โก๏ธ Updated
Dependencies:
75e6878
chalk
: 1.1.3 โถ๏ธ 3.0.0gray-matter
: 2.0.0 โถ๏ธ 4.0.3stat-mode
: 0.2.0 โถ๏ธ 1.0.0rimraf
: 2.2.8 โถ๏ธ 3.0.2ware
: 1.2.0 โถ๏ธ 1.3.0commander
(used in CLI): 2.15.1 โถ๏ธ 6.2.1win-fork
(used in CLI): replaced withcross-spawn
:7.0.3
โก๏ธ Updated
CHANGELOG.md
format to follow โKeep A Changelogโ (#266) (@Zearin)
๐ Fixed
- ๐ #206
Metalsmith#ignore
now only matches paths relative toMetalsmith#source
(as it should). See linked issue for details4eb1184
- ๐ #226 Metalsmith will no longer 'swallow' errors on invalid front-matter, they will be passed to
Metalsmith#build
a6438d2
- ๐ Fix test error on Windows [#158] (@moozzyk)
- #281 Metalsmith now properly handles symbolic links (will throw an ENOENT error or they can be
Metalsmith#ignore
'd)4eb1184
- #178
Metalsmith#ignore
now removes the matched files before they arestatted
for glob-based ignores (saving some perf & potential errors). - ๐ #295 Metalsmith now catches all FS errors and passes them to the build callback/ thenable appropriately.
๐ Security
- Replace all occurences of
new Buffer
withBuffer.from
๐
npm audit
vulnerability fixes- Development Dependencies:
coveralls
: 2.11.6 โถ๏ธ 3.0.1 (#308) (@Zearin) Fix 5 โModerateโ vulnerabilitiesmetalsmith-markdown
: 0.2.1 โถ๏ธ 0.2.2 (#312) (@Zearin) Fix 1 โLowโ vulnerability
- ๐ #338 Added