v7.0.0-rc2Pre-release
v7.0.0 (RC2)
Added 8
- Add exclude_languages feature to prismjs
- Use slug when title is empty in tags/post_link
- Add url_for and full_url_for tag plugins
- Allow top-level await in plugins or scripts
- Search for both slug and title in tags/post_link
- Support quotes in img title and alt
- Support default title from path in console-new
- Add an option to disable titlecase in post
Changed 1
- Require Node.js 14 or higher
Fixed 5
- Handle empty code block in backtick_code
- Fix helper function not working fine with relative_url in moize
- Fix hexo server error when changing the config
- Fix exclude_languages does not work in code blocks
- Fix failed to create post with special character title
Removed 6
- Drop gist tag
- Drop youtube tag
- Drop jsfiddle tag
- Drop vimeo tag
- Drop external_link boolean type
- Drop use_date_for_updated option for updated_option
From hexo
Changes since v7.0.0 (RC1)
New Features
- feat: add exclude_languages feature to prismjs by @D-Sketon in https://github.com/hexojs/hexo/pull/5182
- feat(tags/post_link): use slug when title is empty by @stevenjoezhang in https://github.com/hexojs/hexo/pull/5220
- feat: add url_for and full_url_for tag plugins by @D-Sketon in https://github.com/hexojs/hexo/pull/5198
- feat: allow top-level await in plugins or scripts by @Pcrab in https://github.com/hexojs/hexo/pull/5228
Fixes
- fix(backtick_code): handle empty code block by @stevenjoezhang in https://github.com/hexojs/hexo/pull/5206
- fix(moize): helper function not working fine with relative_url by @D-Sketon in https://github.com/hexojs/hexo/pull/5217
Refactor
- Refactor types by @Pcrab in https://github.com/hexojs/hexo/pull/5178
Test
- test: improve coverage by @D-Sketon in https://github.com/hexojs/hexo/pull/5221
- test: improve coverage by @D-Sketon in https://github.com/hexojs/hexo/pull/5223
Dependencies
- chore: change dependencies version by @Pcrab in https://github.com/hexojs/hexo/pull/5202
New Contributors
- @Pcrab made their first contribution in https://github.com/hexojs/hexo/pull/5178
Full Changelog: https://github.com/hexojs/hexo/compare/v7.0.0-rc1...v7.0.0-rc2
Changes between v6.3.0 and v7.0.0 (RC1)
Migration Guide
Some of the built-in tags have been dropped (E.g. gist, youtube, jsfiddle, and vimeo). If you use those tags in your existing blog posts, you can install hexo-tag-embed to continue using them with Hexo 7.0.0.
Note
No need to install it if you are not using (or will not use)
gist,youtube,jsfiddle,vimeotags in your post or page.
$ npm i hexo-tag-embed
Breaking Changes
- chore: require node14+ by @yoshinorin in https://github.com/hexojs/hexo/pull/5061
- Dropped tag features. Please see
Migration Guidsection.- refactor: drop
gisttag by @yoshinorin in https://github.com/hexojs/hexo/pull/5067 - refactor: drop
youtubetag by @yoshinorin in https://github.com/hexojs/hexo/pull/5064 - refactor: drop
jsfiddletag by @yoshinorin in https://github.com/hexojs/hexo/pull/5066 - refactor: drop
vimeotag by @yoshinorin in https://github.com/hexojs/hexo/pull/5065
- refactor: drop
- Dropped features
- refactor: drop
external_linkboolean type by @yoshinorin in https://github.com/hexojs/hexo/pull/5063 - refactor: drop
use_date_for_updatedoption forupdated_optionby @yoshinorin in https://github.com/hexojs/hexo/pull/5062
- refactor: drop
Notable Changes
- Migrate TypeSctipt
- refactor: prepare for migration to typescript by @stevenjoezhang in https://github.com/hexojs/hexo/pull/5094
- refactor: migrate typescript by @stevenjoezhang in https://github.com/hexojs/hexo/pull/5092
New Features
- feat(tags/post_link): search for both slug and title by @stevenjoezhang in https://github.com/hexojs/hexo/pull/5114
- feat(open_graph): drop google_plus by @stevenjoezhang in https://github.com/hexojs/hexo/pull/5115
- feat(tags/img): support quotes in img title and alt by @stevenjoezhang in https://github.com/hexojs/hexo/pull/5112
- feat(console-new): support default title from path by @xu-song in https://github.com/hexojs/hexo/pull/4714
- feat: add an option to disable titlecase in post by @renbaoshuo in https://github.com/hexojs/hexo/pull/5156
Fixes
- fix(#1099): hexo server error when changing the config by @D-Sketon in https://github.com/hexojs/hexo/pull/5055
- fix: exclude_languages does not work in code blocks by @stevenjoezhang in https://github.com/hexojs/hexo/pull/5088
- When promisifying, store does not preserve disableNunjucks property by @tcr in https://github.com/hexojs/hexo/pull/2670
- fix(post): skip before_post_render and after_post_render on non-posts by @stevenjoezhang in https://github.com/hexojs/hexo/pull/5118
- fix: Failed to create post with special character title by @D-Sketon in https://github.com/hexojs/hexo/pull/5149
- fix(box): check for invalid file by @stevenjoezhang in https://github.com/hexojs/hexo/pull/5173
Performance
- perf: reduce the number of traversals through posts by @stevenjoezhang in https://github.com/hexojs/hexo/pull/5119
Refactor
- refactor highlight: add extend api for highlight by @stevenjoezhang in https://github.com/hexojs/hexo/pull/5095
- refactor: use the
WHATWG URL APIinstead ofurl.resolveby @yoshinorin in https://github.com/hexojs/hexo/pull/5136
Dependencies
- chore: bump sinon from 13.0.2 to 14.0.0 by @dependabot in https://github.com/hexojs/hexo/pull/4965
- chore: bump lint-staged from 11.2.6 to 13.0.3 by @dependabot in https://github.com/hexojs/hexo/pull/5008
- chore: bump husky from 7.0.4 to 8.0.1 by @dependabot in https://github.com/hexojs/hexo/pull/4966
- chore: bump hexo-fs from 3.1.0 to 4.0.0 by @dependabot in https://github.com/hexojs/hexo/pull/5077
- chore: bump hexo-renderer-marked from 5.0.0 to 6.0.0 by @dependabot in https://github.com/hexojs/hexo/pull/5081
- chore: bump hexo-front-matter from 3.0.0 to 4.0.0 by @dependabot in https://github.com/hexojs/hexo/pull/5087
- chore: bump abbrev from 1.1.1 to 2.0.0 by @dependabot in https://github.com/hexojs/hexo/pull/5093
- chore: bump hexo-i18n from 1.0.0 to 2.0.0 by @dependabot in https://github.com/hexojs/hexo/pull/5099
- chore: bump hexo-util from 2.7.0 to 3.0.1 by @dependabot in https://github.com/hexojs/hexo/pull/5107
- chore: bump warehouse from 4.0.2 to 5.0.0 by @dependabot in https://github.com/hexojs/hexo/pull/5101
- chore(deps): update
hexo-logfrom3.2.0to4.0.1by @yoshinorin in https://github.com/hexojs/hexo/pull/5096 - chore: bump sinon from 14.0.2 to 15.0.0 by @dependabot in https://github.com/hexojs/hexo/pull/5121
Test
- test(benchmark): update hexo-many-posts repo by @SukkaW in https://github.com/hexojs/hexo/pull/5128
- test(list_route): improve coverage by @stevenjoezhang in https://github.com/hexojs/hexo/pull/5097
New Contributors
- @D-Sketon made their first contribution in https://github.com/hexojs/hexo/pull/5055
- @xu-song made their first contribution in https://github.com/hexojs/hexo/pull/4714
- @tcr made their first contribution in https://github.com/hexojs/hexo/pull/2670
Full Changelog: https://github.com/hexojs/hexo/compare/6.3.0...v7.0.0-rc1