eleventy ๐โก๏ธ v0.10.0-beta.2 Release Notes
Release Date: 2020-01-04 // over 4 years ago-
Eleventy is a Simpler Static Site Generator.
A special note of remembrance
๐ Before we get going here I just want to take a brief moment to remember the very special @jameswillweb who passed away earlier this month. James was diagnosed with ALS in 2013 and was known for his widespread teaching contributions to the web community. Probably the least of which, but one that I will always remember, was his creation of the floating possum mascot for our little Eleventy project. This mascot (nay, mastcot, because it lives in the masthead ok fine but James would have liked that one) lives at the top of the Eleventy docs and links to the Twitter thread he started in 2018. Though we never met in real life, James was clearly a one-of-a-kind. We will miss you โค๏ธ
Donations may be made in Jamesโ name to The ALS Therapy Development Institute or to Quest Youth Ministries at St. John's United Methodist Church.
Permalink: https://www.11ty.dev/news/james-williamson/
Installation
๐ Install this ๐ง๐ง prerelease ๐ง๐ง to help test the upcoming Eleventy 0.10.0 release:
npm install @11ty/eleventy@beta --save-dev
๐ Thank you to the code contributors that helped with this release!
@gloryofrobots @edbrannin @MadeByMike @Ryuno-Ki @cschuller @micahmills @fredrikekelund @ahl @Munter @saenglert (and @zachleat, I guess)
๐ Features
๐ Official Plugins
- โ Adds new official Navigation Plugin for hierarchical site navigation and breadcrumbs #419 #210 https://github.com/11ty/eleventy-navigation
- Documentation: https://www.11ty.dev/docs/plugins/navigation/
- ๐ New major version of
eleventy-plugin-syntaxhighlight
, only opt-in to line wrapping markup if line highlighting features are used. Read more: https://github.com/11ty/eleventy-plugin-syntaxhighlight/releases/tag/v3.0.0- Documentation: https://www.11ty.dev/docs/plugins/syntaxhighlight/
๐ง Configuration API
- ๐ Support for arbitrary data file formats in the Data Cascade. e.g.
eleventyConfig.addDataExtension("yaml", contents => yaml.safeLoad(contents));
Thank you @gloryofrobots! #736 #798 #635 #630 #624 #265- โ ๏ธ Documentation pending
- โ Adds
setQuietMode
method to Configuration API so that we donโt have to type--quiet
all the time. #808 - โ Adds
addWatchTarget
method to Configuration API for programmatic watching of arbitrary files. Thanks @MadeByMike! #803 #641 - 0๏ธโฃ Show
pathPrefix
being used in standard console output (if non-default). #807 - โ Adds
getFilteredByTags
to Collection API #708 #711 #830
Pagination
- โ Adds a
before
callback option to pagination to allow you to modify the data prior to it being paginated. Very powerful! #699- Documentation: https://www.11ty.dev/docs/pagination/#the-before-callback
- โ Adds
pagination.alias
andpagination.pages
options to pagination variable. These will help when creating navigation for your pagination. #280 #345 #334 #211- Documentation: https://www.11ty.dev/docs/pagination/nav/
๐ Performance
- ๐
dependency-tree
npm package used to find JavaScript dependencies was slow. https://www.11ty.dev/docs/config/#watch-javascript-dependencies Wrote https://github.com/11ty/eleventy-dependency-tree to solve this. One major difference here is that dependencies now will berequireโd
to resolveโso be aware of this if your node files arenโt idempotent! This pays off in a huge performance boost when using--watch
or--serve
. #700
Shortcodes
- ๐ Better support for asynchronous shortcodes (shortcode functions can return promises). Supported in
11ty.js
, Liquid, and Nunjucks templates. #672 #429- Documentation updated:
- https://www.11ty.dev/docs/shortcodes/
- https://www.11ty.dev/docs/languages/javascript/
- https://www.11ty.dev/docs/languages/liquid/
- https://www.11ty.dev/docs/languages/nunjucks/
- https://www.11ty.dev/docs/languages/handlebars/#asynchronous-helpers (not supported in Handlebars but the docs were updated to reflect this)
Miscellanous
๐ Documentation Web Site
- ๐ We launched Contributor Accounts on 11ty.dev, including access to on-site documentation search.
- ๐ Documentation moved from 11ty.io to 11ty.dev
- ๐ Official Eleventy plugin documentation moved to 11ty.dev
- ๐ @Munter added his
hyperlink
checker to the 11ty documentation for link rot checking! Source tweet
๐ Bug fixes
- ๐ Improved error reporting in shortcode code. #681
- Issue with
Cannot read property 'trim' of undefined
error on unhandledRejection events. #689 - ๐ Fix for
require
node cache busting on Windows (some JavaScript files may not have picked up changes when watching) #341 #596 #683 Thanks @cschuller! - Fix bug with negated entries (
!
) in .gitignore or .eleventyignore files. The bug caused Eleventy to not process any files. Support was not added for negated entriesโthey are ignored for now. Thanks @micahmills! #677 #709 - ๐ Fix to Sortable implementation, improved testsโthanks @edbrannin! #747
- ๐ Fix small variable scoping issue in TemplateWriterโthanks @fredrikekelund! #724 #722
- ๐ Fix data bleed issue in the Data Cascade with front matter and
setDataDeepMerge
. Thanks @ahl! #676 #735 - ๐ Improved test coverage for
EleventyErrorUtil
โthank you @edbrannin! #753
Administration
- ๐ Issues fixed in v0.10.0 Milestone
- All code changes from v0.9.0 to v0.10.0-beta.2
- ๐ Code coverage stats for v0.10.0-beta.2
- โ npm audit passed
๐ Dependency Major Release Bumps
- ๐ chalk from v2.4 to v3.0.0
- ๐ semver v6.3 to v7.1: Drops support for old versions of Node
- ๐ handlebars from v4.1.2 to v4.5.3 (while this isnโt technically a major release bump, itโs a fair number of minor releases and probably worth noting)
- โ Adds new official Navigation Plugin for hierarchical site navigation and breadcrumbs #419 #210 https://github.com/11ty/eleventy-navigation