v7.2.0
hexojs/hexov7.2.0Apr 17, 2024by yoshinorin
AI Summary
A release focused on TypeScript migration and type definitions improvement, plus a new highlight stripIndent option and various bug fixes including path traversal security fix.
Key Highlights
- New feature: highlight stripIndent option
- TypeScript migration and improved type definitions
- Security fix: prevent path traversal in include_code tag
- Fixed post_link behavior when using subdir
New Features
- Highlight stripIndent option
Full Release Notes
## New Features * feat(highlight): add an option to switch stripIndent by @uiolee in https://github.com/hexojs/hexo/pull/5427 ## Improved type definitions * refactor: refactor types by @D-Sketon in https://github.com/hexojs/hexo/pull/5398 * chore: make callback on exit optional by @dimaslanjaka in https://github.com/hexojs/hexo/pull/5421 * refactor: migrate typescript by @D-Sketon in https://github.com/hexojs/hexo/pull/5417 * refactor: migrate typescript by @D-Sketon in https://github.com/hexojs/hexo/pull/5430 ## Fixes * Fix typos by @mobeicanyue in https://github.com/hexojs/hexo/pull/5426 * fix: post_link behaviour when using subdir by @leafbird in https://github.com/hexojs/hexo/pull/5419 * fix(tag): use url_for by @stevenjoezhang in https://github.com/hexojs/hexo/pull/5385 * fix(tag/include_code): prevent path traversal by @stevenjoezhang in https://github.com/hexojs/hexo/pull/5251 * revert(categories,tags): revert behavior of locals.tags and locals.categories by @uiolee in https://github.com/hexojs/hexo/pull/5388 ## Refactor * refactor: backslashes on Windows by @stevenjoezhang in https://github.com/hexojs/hexo/pull/5457 ## Test * test: add test case for issue #4334 by @D-Sketon in https://github.com/hexojs/hexo/pull/5465 ## CI/CD * ci: suppress comment err and reduce benchmark running by @uiolee in https://github.com/hexojs/hexo/pull/5454 ## Docs * docs(README): Update Sponsors images by @uiolee in https://github.com/hexojs/hexo/pull/5410 ## Dependencies * chore(deps): bump hexo-fs from ^4.1.1 to ^4.1.3 by @D-Sketon in https://github.com/hexojs/hexo/pull/5463 * chore(deps-dev): Limited `@types/node` version by @uiolee in https://github.com/hexojs/hexo/pull/5411 ## New Contributors * @mobeicanyue made their first contribution in https://github.com/hexojs/hexo/pull/5426 * @leafbird made their first contribution in https://github.com/hexojs/hexo/pull/5419 **Full Changelog**: https://github.com/hexojs/hexo/compare/v7.1.1...v7.2.0