[Snyk] Upgrade hexo from 4.0.0 to 4.2.0 #14
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade hexo from 4.0.0 to 4.2.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.Release notes
Package name: hexo
Features
min_depth:
option totoc()
helper [#3997]Fixes
theme
variable should have,pretty_urls
options toog:url
tag [#3983]Refactor
No longer uses lodash [#3969], [#3987], [#3753]
_
is still available as a global variable, usually utilized in theme layout.Completely drops cheerio [#3850], [#3677]
Feature
trailing_html:
topretty_urls:
option to remove ".html" from url [#3917]https://yoursite.com/page/about.html
->https://yoursite.com/page/about
Fixes
og:locale
Open Graph tag [#3921]og:locale
was inserted only iflanguage:
is configured in "language-TERRITORY" formatog:locale
will default to "en_US". Refer to the pull request for the full list.meta_generator()
helper should output the correct Hexo version [#3925]permalink_defaults:
option should be parsed, not replaced [#3926]Refactor
Breaking change
og:locale
Open Graph tag won't be inserted iflanguage:
(in config, front-matter of post/page oropen_graph()
helper) is not inlanguage-TERRITORY
format [#3808]en
is invaliden-GB
is validen-AU
is not valid), see official listog:locale
languages/
folder of installed theme before changing thelanguage:
configFeatures
https://yoursite.com/2019/12/09/23/59/a-post/
article:published_time
[#3674]article:author
[#3805] Open Graph tagslazyload
in iframe-related tag plugins [#3798]iframe
,jsfiddle
,vimeo
,youtube
tag pluginsmeta_generator
helper to insert metadata element tag [#3782]<head>
element of your theme layout,<meta name="generator" content="Hexo 4.1.0">
meta_generator
helper),meta_generator:
option should be disabled,js()
[#3681] andcss()
[#3690] helperswrap:
option to enable/disable wrapping backtick codeblock in<table>
element [#3827]line_number
also enables ithighlight:
codeblock()
tag plugin [#3848]Fixes
og_updated_time
Open Graph tag witharticle:modified_time
[#3674]keywords
Open Graph tag witharticle:tag
[#3805]<head>
that spans multiple lines [#3778]db.json
when runninghexo new
orhexo --help
[#3793]ignore:
option [#3797]node_modules
folder could cause some issuesexternal_link
filter should not process data URLs (e.g.mailto:
&javascript:
) [#3812] and<article>
element [#3895]-p
is alias of--path
-s
is alias of--slug
-r
is alias of--replace
include:
andexclude:
options to post's asset folder [#3882]ignore:
option should work for files, in addition to folders [#3878]Housekeeping
Breaking change
asset_link
,post_link
tag pluginsfalse
to the final argument{% asset_link 'filename 'title' 'false' %}
encodeURI(post.permalink)
(includingpermalink
of page, tag & category variables), there are three options:encodeURI(decodeURI(post.permalink))
for backward-compatibility with hexo v3.9 (and older)encodeURL()
function provided by hexo-util, it is backward-compatibleencodeURI()
function, this breaks backward-compatibilitydecodeURI(post.permalink)
decodeURL()
of hexo-util can decode punycoded domain.this.url
variable.escape
option for compatibility with [email protected] #3728prev_text
/next_text
with html (e.g. to insert icons), you need to setescape: false
in the parameter.Feature
feat(filter): use existing excerpt if possible #3612
excerpt:
in front-matterswitch minimatch to micromatch #3538
feat: add option to disable meta generator tag #3653
meta_generator: false
to config to disablefeat(generator): allow limit parallel generation #3665
hexo g --concurrency <number>
Option to use date instead of file mtime for updated date #3235
post.updated
variable, setuse_date_for_updated: true
in configfeat(list_tags): add Schema "keywords" and Microdata "tag" #3678
feat(permalink_variable): add pretty_urls option to remove index.html from url #3691
index.html
frompermalink
variablesthis.url
variable (see #3661).feat: add
full_url_for
helper #3701full_url_for(page.path)
instead ofconfig.url + page.path
fix: external_link should use after_render #3675
field
andexclude
options, see #3675 for guide.Performance
Fix
Dependency
Commit messages
Package name: hexo
Compare
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs