Releases: hexojs/hexo
Releases · hexojs/hexo
6.3.0
New Features
- feat(tag/post_link): throw on post_link error by @xbc5 in #4938
- feat(tag/include_code): robust for url compuation of
view raw
by @stevenjoezhang in #4996 - feat(paginator): allow custom class name by @renbaoshuo in #5001
- feat(helper/toc): more flexible class name by @renbaoshuo in #5010
- feat(helper/tagcloud): show_count option (#5047) by @renbaoshuo in #5048
- feat(tag/code): add
language_attr
option (hexojs/hexo-util#278) by @renbaoshuo in #5017 - feat(helper/is): add
is_home_first_page()
helper by @renbaoshuo in #5006
Improvements
Fixes
- fix(hexo/index):
db.json
file path in debug logging on Windows by @stevenjoezhang in #4994 - fix(tag): show source file in unformatted error message by @curbengh in #5031
- Don't use data-uri for og:image by @KentarouTakeda in #5053
Refactors
- refactor(helper/open_graph): use whatwg url api by @renbaoshuo in #5007
- chore(mail_to): use native URLSearchParams by @renbaoshuo in #5002
Test
- test: replace nyc with c8 by @stevenjoezhang in #5040
- chore(test/extend/tag): async function (#3328) by @renbaoshuo in #5003
CI/CD
- chore: Set permissions for GitHub actions by @neilnaveen in #4947
- chore: delete
release-drafter
by @yoshinorin in #5044 - chore: improved benchmark result in github actions by @renbaoshuo in #5013
Dependencies
- chore(deps): bump hexo-util and warehouse by @yoshinorin in #5028
- chore(deps): bump hexo-log from 3.0.0 to 3.2.0 by @yoshinorin in #5054
Misc
- Update license year by @renbaoshuo in #5041
- chore: update issue template by @yoshinorin in #5030
- chore: update .gitignore by @yoshinorin in #4967
New Contributors
- @xbc5 made their first contribution in #4938
- @neilnaveen made their first contribution in #4947
- @ppwwyyxx made their first contribution in #4973
Full Changelog: 6.2.0...6.3.0
6.2.0
Fixes
- fix(#4917): suppress YAMLException when load js-yaml by @yoshinorin in #4927
- This change is workaround for #4917. Please see PR comments.
- chore(deps): bump warehouse from 4.0.0 to 4.0.1 by @yoshinorin in #4943
- This change is workaround for #4922. Please see hexojs/warehouse#123
Refactors
- chore: replace deprecated String.prototype.substr() by @CommanderRoot in #4918
Dependencies
- chore: bump sinon from 12.0.1 to 13.0.2 by @dependabot in #4944
- chore: bump mocha from 9.2.2 to 10.0.0 by @dependabot in #4960
- chore(deps): bump hexo-util from 2.6.0 to 2.6.1 by @yoshinorin in #4957
- chore: bump actions/checkout from 2 to 3 by @dependabot in #4905
Miscs
- chore(bot): delete stale bot by @yoshinorin in #4901
- chore(ISSUE_TEMPLATE): delete
Your theme _config.yml
section by @yoshinorin in #4931
New Contributors
- @CommanderRoot made their first contribution in #4918
Full Changelog: 6.1.0...6.2.0
5.4.2
Fixes
- fix(#4917): downgrade
js-yaml
fromv4.x
tov3.14.x
by @yoshinorin in #4932
Full Changelog: 5.4.1...5.4.2
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.