New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix js-yaml tags for v4.0.0+ #4869
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good catch!
03723ab
to
7808bec
Compare
Repair backwards compatibility https://github.com/nodeca/js-yaml/blob/master/migrate_v3_to_v4.md with a bunch of plugins that use these yaml tags. e.g.: https://github.com/lavas-project/hexo-pwa#options uses these yaml tags in the routes `!!js/regexp`
7808bec
to
2015306
Compare
How to testgit clone -b patch-1 https://github.com/hexojs/hexo.git
cd hexo
npm install
npm test |
cool |
@marcofranssen |
@yoshinorin a pleasure. When can we expect a patch for the 6.x and 5.4.x versions? |
Repair backwards compatibility https://github.com/nodeca/js-yaml/blob/master/migrate_v3_to_v4.md with a bunch of plugins that use these yaml tags. e.g.: https://github.com/lavas-project/hexo-pwa#options uses these yaml tags in the routes `!!js/regexp`
@marcofranssen |
Repair backwards compatibility https://github.com/nodeca/js-yaml/blob/master/migrate_v3_to_v4.md with a bunch of plugins that use these yaml tags. e.g.: https://github.com/lavas-project/hexo-pwa#options uses these yaml tags in the routes `!!js/regexp` Co-authored-by: Marco Franssen <marco.franssen@gmail.com>
I just published Regarding to |
Repair backwards compatibility https://github.com/nodeca/js-yaml/blob/master/migrate_v3_to_v4.md
with a bunch of plugins that use these yaml tags.
e.g.: https://github.com/lavas-project/hexo-pwa#options uses these yaml tags in the routes
!!js/regexp
What does it do?
Fixes backwards compatibility for some plugins that make use of js-yaml tags.
This broke since the hexo 5.4.0 release that bumps
js-yaml
to v4.0.0.See:
https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md#400---2021-01-03
and
https://github.com/nodeca/js-yaml/blob/master/migrate_v3_to_v4.md
for details.