We have released a new version of the official plugins hexo-util, hexo-generator-feed and hexo-uglify.
hexo-util 1.6.0
Breaking changes
isExternalLink
no longer requiresbind(hexo)
#140- Pass the site config or an url as parameter
isExternalLink('https://example.com', hexo.config.url);
url_for()
&full_url_for()
no longer process folder name with semicolon #130- This is necessary to avoid processing data urls (e.g.
mailto:
&data:
]
- This is necessary to avoid processing data urls (e.g.
Fixes
- Fix performance regression introduced in 1.5.0 #125, #124, #128
- Affected
url_for()
,full_url_for()
,isExternalLink()
- For background, see hexojs/hexo#3833 & hexojs/hexo#3846
- Affected
- Remove unnecessary new line
<br>
element from codeblock #132 - Handle underscore sign in
permalink()
#139 - Applies
pretty_urls.trailing_index
option tourl_for()
andfull_url_for()
, to remove the trailingindex.html
from links. #134 - Replace node-html-entities with
escapeHTML()
inhighlight()
#129escapeHTML()
escapes more characters compared to node-html-entities.- This also means more unsafe characters are now escaped in codeblock
- Escape equal
=
sign to=
inescapeHTML()
#131- Equal sign can be misused to create another attribute in html element, this fix prevents that
hexo-generator-feed 2.2.0
Feature
Support custom template, in addition to the default atom.xml & rss2.xml templates. #110
feed:
template: './path/to/template'
Fix
- Fix compatibility issue with existing themes #114
hexo-uglify 1.1.0
Feature
Support minifying javascript files with ES6+ syntax by utilizing Terser #71
- Still defaults to UglifyJS (which doesn’t support ES6)
- To enable ES6 support,
uglify:
es6: true
hexo-uglify 1.0.0
Breaking change
- Drop EOL Node 6, now requires Node 8.6 #46
Feature
- Switch minimatch to micromatch, for faster exclusion operation and to support more globbing patterns #40