Releases: curbengh/hexo-yam
Releases · curbengh/hexo-yam
v9.0.0
Breaking change
- [3523b0f] Require Nodejs 18.12+
- Drop EOL 14 & 16
- [#157] Plugin is now disabled by default when running
hexo server
.- To override this, disable
previewServer
option
- To override this, disable
Feature
- [#157]
previewServer
option
minify:
previewServer: true
- [#158] Zstd compression (disabled by default)
- if encounter
Cannot find module '@mongodb-js/zstd-linux-x64-gnu'
error, see this workaround.
- if encounter
minify:
zstd:
enable: false
- [f92017f] Support Nodejs 22
- [#140] Support Nodejs 20
- [#152] Switch from (deprecated) html-minifier 4 to html-minifier-terser 7
- html minifying is now using async
Unit test
- [#151] Use Hexo 7.x
v8.0.0
v7.0.0
v6.0.0
Breaking change
- [c0041b0]
svg.plugins:
option should be the following syntax:
minify:
svg:
plugins:
# v6
+ removeComments: false
+ cleanupIDs: false
+ builtinPluginName:
+ optionName: 'optionValue'
# v5
- - name: 'removeComments'
- active: false
- - name: 'cleanupIDs'
- active: false
# v4
- - removeComments: false
- - cleanupIDs: false
The option only overrides svgo's default plugins, other (svgo) options are not supported.
- [#84] Support Node 17
- Drop Node 15
v5.0.0
Breaking change
minify:
svg:
plugins:
- - removeComments: false
- - cleanupIDs: false
+ - name: 'removeComments'
+ active: false
+ - name: 'cleanupIDs'
+ active: false
Feature
Dependencies
v4.2.0
Feature
- feat: utilise better minify-xml [#25]
- minify-xml has better compatibility and more options
- replace pretty-data
- feat: show path that caused the error [51cc9b1]
- plugin now shows the offending file whenever a minifier throws error
Fix
- chore(deps): update terser from 4.0.0 to 5.3.0 [605c5fd]
- terser v5 is async only [16cdf46]
- refactor(test): set default config in individual test [ce8c4a1]
- default configs are no longer module-exported
Housekeeping
v4.1.0
Feature
- Minify json and xml by removing whitespaces [fdcdbef] [317b5e4]
- Both are disabled by default
- JSON is usually already minified
- XML could become invalid after being minified, recommend to check with an XML validator
- To enable:
minify: json: enable: true xml: enable: true
Fix
- Skip empty file [d75b10b]
- Empty file could crash hexo if left unchecked
v4.0.0
Breaking change
-
Requires Node 10.18 or above [f0b37aa]
- Drop EOL Node 8
- Drop iltorb dependency
-
Rename "logger:" option to "verbose:" [440b9cc]
- Migrate:
minify: html: - logger: true + verbose: true
Feature
- Disable basename by individual pattern [b046d2a] [50d80cc]
- See details
- Custom compression level for gzip and brotli [48868bf]
- Set lower level to speed up compression process, but the resulting file may be slightly bigger (compared to higher level)
- This plugin default to max level
- Example:
minify: gzip: level: 1 # defaults to 9 brotli: level: 1 # defaults to 11