Releases: hexojs/hexo-util
Releases · hexojs/hexo-util
v3.3.0
New Features
- feat(scripts): use hljs internal method to get aliases by @uiolee in #394
- feat(highlight): add an option to switch stripIndent by @uiolee in #398
Fixes
Refactors
Dependencies
- chore: bump c8 from 8.0.1 to 9.1.0 by @dependabot in #393
- chore: fix ghost dependency by @uiolee in #397
Miscs
- chore: update
repository
key from a string to an object inpackage.json
by @yoshinorin in #402
Full Changelog: v3.2.0...v3.3.0
v3.2.0
New Features
Fixed
- fix: inaccurate type by @liby in #347
- fix: fix type by @D-Sketon in #358
- fix(permalink): handle invalid permalink setting by @stevenjoezhang in #384
- fix(url_for): some improvement for
url_for
by @dimaslanjaka in #307 - build(tsc): fix tsconfig for
tsc -b --watch
by @uiolee in #389
Test
Dependencies
- chore(dependabot): ignore
@types/node
update and reduce PR from dependabot by @yoshinorin in #343
Chore
- chore(SECURITY): Create SECURITY.md by @uiolee in #383
- chore(deps-dev): remove @ts/eslint-plugin, parser by @uiolee in #387
Full Changelog: v3.1.0...v3.2.0
v3.1.0
Fixed
- fix inaccurate types by @stevenjoezhang in #294
- fix(prism): use correct type to pass test by @liby in #296
- fix TS2550 - add lib es2020, es2019 by @dimaslanjaka in #301
- fix(escape_html): avoid double escape by @stevenjoezhang in #328
Performance
Refactor
- refactor: use native promise instead of bluebird by @yoshinorin in #295
Dependencies
- chore: bump htmlparser2 from 8.0.2 to 9.0.0 by @dependabot in #304
- chore: bump typescript from 4.9.5 to 5.0.3 by @dependabot in #299
Misc
New Contributors
- @dimaslanjaka made their first contribution in #301
- @D-Sketon made their first contribution in #321
Full Changelog
v3.0.1
v3.0.0
Breaking Changes
- chore: require node14+ by @yoshinorin in #288
Notable Changes
- refactor: migrate from
js
tots
by @stevenjoezhang in #284
Refactors
Dependencies
- chore(deps): update dependencies by @yoshinorin in #281
Docs
- docs: delete
dependencies badges
from README by @yoshinorin in #283 - chore:
http
tohttps
inpackage.json
by @yoshinorin in #280
CI/CD
- chore: drop release-drafter by @yoshinorin in #282
New Contributors
Full Changelog: 2.7.0...v3.0.0
v2.7.0
Features
- feat(highlight): add
languageAttr
option @renbaoshuo [#278]
Dependencies
- chore: bump mocha from 9.2.2 to 10.0.0 @dependabot [#277]
New Contributors
- @renbaoshuo made their first contribution in #278
Full Changelog: 2.6.1...2.7.0
2.6.1
Fixes
Refactor
- refactor: use
textContent
instead ofgetText
by @yoshinorin in #272
Full Changelog: 2.6.0...2.6.1
2.6.0
Breaking Changes
New features
Fixes
- fix(url_for): absolute path is processed by relative_url by @zkqiang in #262
- fix(highlight): highlight sublanguages with tab by @stevenjoezhang in #260
Refactors
Test
- test: fix generate coverage report & test failure when not supported language with Prismjs by @yoshinorin in #271
Dependencies
- chore: bump highlight.js from 10.7.3 to 11.0.1 by @dependabot in #252
- chore: bump mocha from 8.4.0 to 9.0.3 by @dependabot in #256
- chore: bump htmlparser2 from 6.1.0 to 7.0.0 by @dependabot in #257
- chore: bump eslint from 7.32.0 to 8.0.1 by @dependabot in #264
- chore: bump rewire from 5.0.0 to 6.0.0 by @dependabot in #266
- chore: bump eslint-config-hexo from 4.2.0 to 5.0.0 by @dependabot in #268
Misc
New Contributors
- @dependabot made their first contribution in #252
- @zkqiang made their first contribution in #262
- @Cerallin made their first contribution in #269
Full Changelog: 2.5.0...2.6.0
v2.5.0
Refactors
Dependencies
- Update dependency highlight.js @stevenjoezhang [#246]
- Upgrade to GitHub-native Dependabot @dependabot-preview [#248]
- chore(deps-dev): bump html-entities from 1.4.0 to 2.1.1 @dependabot-preview [#244]
- chore(deps): bump htmlparser2 from 4.1.0 to 6.0.0 @dependabot-preview [#236]
Misc
- Migrate to GitHub Actions @stevenjoezhang [#247]
- Fix test cases @stevenjoezhang [#237]
2.4.0
Breaking change
- fix(highlight): use
<div>
when wrap is disabled @curbengh [#229]- when
wrap
is disabled:
# _config.yml highlight: wrap: false # defaults to true
- previously, caption is rendered as:
<pre> <figcaption>caption</figcaption> <code></code> </pre>
- it's now rendered as:
<pre> <div class="caption">caption</div> <code></code> </pre>
- you can style it by:
pre div.caption { font-size: 0.9em; color: #888; } pre div.caption a { float: right; }
- when