Hexo: Hexo 5.0.0 Roadmap

Created on 22 Dec 2019  ·  9Comments  ·  Source: hexojs/hexo

Node.js 8 will meets EOL in about a week: https://nodejs.org/en/about/releases/

We will soon begin to prepare for next major version of Hexo. It is also a chance to bring more Breaking Changes and new features. Hopefully we could finish this before Node.js 10 starts its Maintenance LTS (2020-04-01).

cc @hexojs/core

Breaking Change discussion enhancement proposal

Most helpful comment

@fudanglp Swig is already removed by @oncletom in previous commits and will be included in hexo@5.

All 9 comments

  • [x] Drop Node.js 8 and Require Node.js >= 10 #3818
  • [ ] Using async / await #3328

For performance matters, we should address this only after Node.js 8 is dropped.

  • [x] Bring up PrismJS as an alternative to Highlight.js #1036 #4010
  • [x] Drop lodash from Locals.prototype https://github.com/hexojs/hexo/issues/3753#issuecomment-565889507, #4266
  • [x] Installing theme through npm #2471 #3890
  • [x] Remove some helpers No longer valid

    • favicon_tag.js

    • feed_tag.js

    • mail_to.js

  • [x] updated_options #3887, #4278
  • [x] reconsider hexo post title fallback https://github.com/hexojs/hexo/pull/3672#issuecomment-617521538
  • [x] merge config.theme_config into theme.config after ctx.theme loads (https://github.com/hexojs/hexo/pull/4120#issuecomment-619574347, #4360)

Remove some helpers

Any reason behind the removal? I know favicon_tag is impractical due to lack of modern standard among browsers.

@curbengh

For favicon_tag & mail_to, add <link rel="shortcut icon" href="<% url_for('favicon.ico') %>"> and <a href="mailto:">Email</a> will be efficient enough.

And feed_tag should be integrated in hexo-generator-feed: https://github.com/hexojs/hexo-generator-feed/issues/120

the {{ nunjunks interpretation problem is a real pain when you try to write technical content, please see https://github.com/hexojs/hexo/issues/3259, it is so essential to be part of 5.0.0

The page tags support is a problem since 2015, so making it happen for 5.0.0 seems like the right time https://github.com/hexojs/hexo/issues/1067#issuecomment-570943547

Please limit the discussion to incoming breaking changes. I've pinned those issues in https://github.com/hexojs/hexo/issues/2492. If someone can figure out, the fixes can even be part of minor/patch release.

Many features planned to be added to version 5.0 are difficult to complete in a short time. Maybe a new minor version (e.g. 4.3.0) is needed before this to solve Node.js 14 compatibility issues.

Update: v4.2.1 released https://github.com/hexojs/hexo/releases/tag/4.2.1

swig project is inactive and security related issue will not be addressed.
any plan to remove it?

@fudanglp Swig is already removed by @oncletom in previous commits and will be included in hexo@5.

Was this page helpful?
0 / 5 - 0 ratings