Doing a fast follow release after 4.0.0-alpha.11 to fix some clarity issues with warnings around computed data reads and collapsed folder matching errors.
Full v4 Milestone: https://github.com/11ty/buildawesome/milestone/46?closed=1 (97% complete!)
v4.0.0-alpha.12 Changelog: v4.0.0-alpha.11...v4.0.0-alpha.12
# To install, choose one of these:
npm install @awesome.me/buildawesome@alpha --save-exact
npm install @11ty/eleventy@canary --save-exactBreaking
- Breaking
permalinkor passthrough copy target outside of the output directory now throws an error. ThepermalinkBypassOutputDiroption still allows it!
Features
- Global data is now frozen and shared using less memory on large sites. Opt out with
$config.setFreezeGlobalData(false). #4446 - Passthrough copy source that didn’t pick up a file because of case sensitivity only now throws an error. Control this with the
$config.configureErrorReporting({ passthroughCaseMismatch })with thepassthroughCaseMismatchoption to"warn"(skip and warn) or"allow"(skip silently). Related to #4440 - i18n Plugin:
locale_urlnow errors on a URL that matches no page (except whenerrorMode: "never"). #4442 and -locale_linkshas a newincludeCurrentoption. #4438 getData()method available in filter and shortcode callbacks. #2844- (Experimental) Support for negated patterns in
.gitignoreand.eleventyignore. This is not on by default: opt in with$config.addExperimentalBehavior("NEGATED_IGNORES"). #4439
Fixes
- Fix for rejected async Nunjucks filters now throwing an error instead of hanging.
- Data cascade fix for the
override:data prefix now works in directory data files. #2868 - The Id Attribute plugin no longer creates duplicate ids when a generated suffix (
foo-2) clashes with a later heading oridattribute. #4445 - Fix race condition with passthrough copy targeting directories created in configuration. #4440
- Fix for directory containment checks #4437
- Fix for false positives on collapsed-matching-folder warnings #3919
- Fix for early computed data read warnings, they no longer log when a computed key reads its own previous value. #2448
- Fix
this.pageto works in Liquid filters withstrictVariables. #2844
Internals
- Switched from
posthtmlto@11ty/posthtmlto fix #4154 - Bumped
@11ty/eleventy-utilsto 3.1.0 RenderManagerinternal methods left over from the Edge plugin now throw an error.
Size Watch
| 3.1.8 | 4.0.0-alpha.11 | 4.0.0-alpha.12 | |
|---|---|---|---|
| Total installed packages | 128 | 71 | 68 |
| 3rd-party packages | 105 | 52 | 48 |
node_modules size
| 21.4 MB | 14.6 MB | 15.4 MB |
Size grew in this one from the previous alpha as our htmlparser2 dependency increased in size.