Releases: hexojs/hexo
Releases · hexojs/hexo
6.1.0
New Features
- feat(toc): Support unnumbered headings by @Cerallin in #4871
- Exclude some languages in code highlighting by @corvofeng in #3865
- Add line threshold option for codeblocks by @dbelokon in #4821
Fixes
- fix(#1490): if
post_asset_folder
is set, restrict renderable files to default file extension by @kristofzerbe in #4781 - chore/fix(benchmark): fix benchmark on node 16+ by @SukkaW in #4906
- fix: plugin loading conflict with @vercel/nft by @SukkaW in #4863
- Fix js-yaml tags for v4.0.0+ by @marcofranssen in #4869
Tests
Dependencies
- chore: bump eslint-config-hexo from 4.2.0 to 5.0.0 by @dependabot in #4861
- chore: bump hexo-front-matter from 2.0.0 to 3.0.0 by @dependabot in #4856
- chore: bump 0x from 4.11.0 to 5.0.0 by @dependabot in #4846
- chore: bump hexo-util from 2.5.0 to 2.6.0 by @yoshinorin in #4908
- chore(deps): update some dependencies minor & patch version by @yoshinorin in #4898
- chore: bump hexo-renderer-marked from 4.1.0 to 5.0.0 by @dependabot in #4891
- chore: bump actions/setup-node from 2 to 3 by @dependabot in #4904
Misc
- chore: delete question-help ISSUTE_TEMPLATE & add discussion link for question by @yoshinorin in #4848
- github(pull_request_template): remove
How to test
section by @stevenjoezhang in #4576 - fix: typo by @renbaoshuo in #4896
- chore/ci: reply flamegraph URL in pull request by @stevenjoezhang in #4793
New Contributors
- @kristofzerbe made their first contribution in #4781
- @marcofranssen made their first contribution in #4869
- @dbelokon made their first contribution in #4821
- @renbaoshuo made their first contribution in #4896
- @corvofeng made their first contribution in #3865
- @Cerallin made their first contribution in #4871
Full Changelog: 6.0.0...6.1.0
5.4.1
v6.0.0
Breaking Changes
- Drop Node 10 @stevenjoezhang [#4779, #4691]
Security
Please see more detail: Announcement: About CVE-2021-25987
New features
- feat: load hexo plugin in the theme's package.json @stevenjoezhang [#4771]
- feat(open_graph): different URLs for
og:image
andtwitter:image
@KentarouTakeda [#4748]
Performance
- perf(tag/helper): memoize @SukkaW [#4789]
- perf(external_link): optimize regex @SukkaW [#4790]
- refactor/perf: use nanocolors @SukkaW [#4788]
- Switch to picocolors @tomap [#4825]
- perf: avoid using delete operator @SukkaW [#4711]
- perf: overall improvements @SukkaW [#4783]
- refactor/perf(post): use state machine to escape swig tag @SukkaW [#4780]
- refactor: refactor pagination - paginatorHelper - pagenasionPartShow @CroMarmot [#4662]
Fixes
- fix(post): escape swig full tag with args @stevenjoezhang [#4824]
- fix(processor): remove race condition failsafe @SukkaW [#4791]
- fix(#4780): curly brackets @SukkaW [#4784]
- fix(#4780): empty tag name correction @SukkaW [#4786]
- Generate draft assets in draft mode @darekkay [#4563]
Refactor
Docs
- doc: add homebrew install @chenrui333 [#4724]
- doc(extend/console): add jsdoc @SukkaW [#4500]
Dependencies
- Cleanup dependabot @tomap [#4820]
- chore: bump actions/stale from 3 to 4 @dependabot [#4828]
- chore: bump sinon from 11.1.2 to 12.0.1 @dependabot [#4810]
- chore: bump eslint from 7.32.0 to 8.0.0 @dependabot [#4799]
- chore: bump hexo-log from 2.0.0 to 3.0.0 @dependabot [#4794]
- chore: bump husky from 4.3.8 to 7.0.2 @dependabot [#4763]
- chore: bump sinon from 10.0.1 to 11.1.2 @dependabot [#4747]
- chore: bump mocha from 8.4.0 to 9.1.1 @dependabot [#4765]
- chore: bump lint-staged from 10.5.4 to 11.0.0 @dependabot [#4697]
- Upgrade to GitHub-native Dependabot @dependabot-preview [#4689]
- chore(deps-dev): bump sinon from 9.2.4 to 10.0.0 @dependabot-preview [#4670]
- chore(deps-dev): bump hexo-renderer-marked from 3.3.0 to 4.0.0 @dependabot-preview [#4649]
New Contributors
- @CroMarmot made their first contribution in #4662
- @darekkay made their first contribution in #4563
- @dependabot made their first contribution in #4697
- @chenrui333 made their first contribution in #4724
Full Changelog: 5.4.0...6.0.0
v5.4.0
New features
Breaking change
- fix(excerpt): use span instead of anchor element for better SEO performance @stevenjoezhang [#4627]
Fixes
- fix(box): set property awaitWriteFinish for chokidar filewatcher @stevenjoezhang [#4633]
- fix(codeblock): match whitespace but not newlines @stevenjoezhang [#4625]
- fix(i18n): page.lang is undefined when using the key
language
in front-matter @stevenjoezhang [#4614]
Misc
- github: update actions/setup-node action to v2 @stevenjoezhang [#4604]
- chore/ci: migrate from probot/stale to GitHub Actions @stevenjoezhang [#4598]
Dependencies
- chore(deps): bump js-yaml from 3.14.1 to 4.0.0 @dependabot-preview [#4607]
v5.3.0
New features
- expose
escape_html
helper method for string manipulation to templates @awwong1 [#4581] - list_tags: span element & custom class for label @noraj [#4578]
Fixes
- fix(load_plugins): ignore plugin whose name is started with "hexo-theme" @stevenjoezhang [#4592]
- fix(codeblock): closing code fence may be followed only by spaces @stevenjoezhang [#4574]
Refactor
- Replace
process.mainModule
withrequire.main
@stevenjoezhang [#4583]
Docs
5.2.0
Changes
- perf(external_link): faster regexp @SukkaW [#4536]
- prioritise
http(s)://
over//
- prioritise
- feat: support 'disableNunjucks' in front-matter @curbengh [#4518]
- Enable this option to disable tag plugin
- Setting this option in front-matter will override the same option set by the renderer (e.g. hexo-renderer-marked)
--- title: foo date: 2020-01-02 03:04:05 disableNunjucks: true|false ---
- fix: avoid escaping front-matter if unnecessary @curbengh [#4522]
- using variable (e.g.
{{ title }}
) with special characters no longer result in double-quote wrap
- using variable (e.g.
- fix: validate value of config.url @curbengh [#4520]
config.url
should starts with "http://" or "https://"
- fix(router): convert string to buffer in route stream @ppoffice [#4517]
- fix crash in
hexo generate --bail
- fix crash in
- fix(disableNunjucks): query both async and sync versions of renderer @curbengh [#4498]
disableNunjucks
option should now works reliably with synchronous renderer
- feat(load_plugin): ignore pkg name endswith theme name @SukkaW [#4497]
- An initial effort to support scoped package
Housekeeping
5.1.1
Changes
- fix(filter/highlight): avoid escaping curly bracket when highlight & prismjs disabled @curbengh [#4489]
- When both highlight.js and prismjs are disabled:
# _config.yml highlight: enable: false prismjs enable: false
- there was an issue that curly brackets
{ }
are escaped{ }
mistakenly in the backtick_code_block.js filter. The fix is to avoid running that filter when code highlight is disabled. - Some users disable Hexo's default code highlight as they prefer to their own method.
5.1.0
Features
-
feat(highlight): parse 'caption' option to prismHighlight @curbengh [#4476]
caption
is now available in prismjs:
# _config.yml highlight: enable: false prismjs: enable: true
- It can be used in triple backtick codeblock:
``` js caption console.log('foo') ```
- above codeblock will be rendered as:
(class attributes are omitted for brevity)
<pre><div class="caption"><span>caption</span></div><code>console...</code></pre>
- you can style the caption by:
pre div.caption { font-size: 0.9em; color: #888; } pre div.caption a { float: right; }
- also available via
codeblock
andinclude_code
tag plugins.
-
fix: refactor post escape @SukkaW [#4472]
- fixed issue with prismjs that, in some cases, did not remove hexo's processing tag properly
-
Remove plugins option in config @stevenjoezhang [#4475]
# _config.yml plugins:
plugins
option has been deprecated long ago and it's now completely dropped- plugins should be saved in
scripts/
folder or installed via npmpackage.json
.
Performance
5.0.2
5.0.1
Changes
- fix(helpers): call url_for from hexo-util @curbengh [#4447]
- perf(external_link): update regexp @SukkaW [#4467]
- regex of
external_link
filter now pre-match external links, instead of solely rely onisExternalLink
- regex of
- perf(injector): shorthand optimization @SukkaW [#4462]