6 KiB
date: 2020-05-06 title: "JavaScript Transpiler" description: "Hugo 0.70.0 adds a new pipe function that uses Babel to transpile JavaScript." categories: ["Releases"]
This is a small release, and the main new feature is that you can now use Babel to transpile JavaScript.
This release represents 22 contributions by 12 contributors to the main Hugo code base.@bep leads the Hugo development with a significant amount of contributions, but also a big shoutout to @BurtonQin, @tekezo, and @sensimevanidus for their ongoing contributions. And a big thanks to @digitalcraftsman and @onedrawingperday for their relentless work on keeping the themes site in pristine condition and to @davidsneighbour and @kaushalmodi for all the great work on the documentation site.
Many have also been busy writing and fixing the documentation in hugoDocs, which has received 6 contributions by 4 contributors. A special thanks to @bep, @MJ2097, @jeremyzilar, and @larryclaman for their work on the documentation site.
Hugo now has:
- 43734+ stars
- 437+ contributors
- 316+ themes
Enhancements
Templates
- Change defer RLock to RUnlock 5146dc61 @BurtonQin
Output
Core
- Add Unlock before panic 736f84b2 @BurtonQin
Other
- Update minify to v2.6.2 01befcce @pperzyna #6699
- Add support for sort by boolean 04b1a6d9 @Mipsters
- Update to Libsass 3.6.4 dd31e800 @bep #7231
- Rename transpileJS to babel 6add6d77 @bep #5764
- Add JavaScript transpiling solution 2a171ff1 @hmmmmniek #5764
- Disable a test locally 67f92041 @bep
- Add diagnostic hints to init timeout message fe60b7d9 @mtlynch
- Update goldmark-highlighting 5c41f41a @satotake #7027#6596
- Update go-org to v1.1.0 2b28e5a9 @niklasfasching
- Update to goldmark v1.1.28 feaa582c @bep #7113
Fixes
Other
- Fix some missing JS class collector cases c03ea2b6 @bep #7216
- Fix IsAncestor and IsDescendant when the same page is passed 8d5766d4 @tekezo
- Fix IsAncestor and IsDescendant under subsection 27a4c441 @tekezo
- Fix typo in test suite 49e6c8cb @panakour
- Fix class collector when running with --minify f37e77f2 @bep #7161
- Fix toLower 27af5a33 @bep #7198
- Fix broken test b3c82575 @bep
- Fix typo in Hugo's Security Model cd4d8202 @sensimevanidus
- Fix query parameter handling in server fast render mode ee67dbef @bep #7163