Skip to content
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(deps): update dependency @11ty/eleventy to v3.0.0-beta.1 #13

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 31, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@11ty/eleventy (source) 3.0.0-alpha.18 -> 3.0.0-beta.1 age adoption passing confidence

Release Notes

11ty/eleventy (@​11ty/eleventy)

v3.0.0-beta.1: Eleventy v3.0.0-beta.1: ESM like a Phoenix (the mythical bird, not Arizona)

Compare Source

We did it. It’s happening. After 18 alpha pre-releases and over a year of work, our very first beta release of Eleventy 3.0 is now available. We’re still working on shipping documentation for some of these features but you can try it out now on your project using:

npm install @​11ty/eleventy@beta

If you’re upgrading, use the Upgrade Help plugin for automated project checks and help!

A few numbers on the best version of Eleventy yet:

Stats v2.0.1 v3.0.0-beta.1
23% smaller 35.2 MB 27.1 MB
6.6% fewer third-party dependencies 210 196
21.7% faster npm install 6.572s* 5.146s*

(*fastest time of 3 runs bypassing cache)

🙌🏻🚨 We still need your help! 🚨🙌🏻

11ty is now operating independently, with full time development and maintenance funded by our Open Collective supporters. We need your help to keep going! We have a goal of $6000 USD recurring monthly budget. Read more about this fundraising push and head directly to our Open Collective to start your recurring contribution!

Every recurring contribution helps!

Flagship 3.0 features

  1. Eleventy is now written in ESM with full support for ESM in your projects (#​836): configuration, data files, 11ty.js templates, etc. For many projects this won’t be a breaking change and we’ll continue to support CommonJS too.
// ESM
export default function(eleventyConfig) {}

// We’ll keep supporting CommonJS:
module.exports = function(eleventyConfig) {}
  1. Supporting more package managers and runtimes: Deno, pnpm, yarn (more to come!)
  2. Asynchronous configuration #​614
// ESM
export default async function(eleventyConfig) {}

// CommonJS
module.exports = async function(eleventyConfig) {}
  1. For-free performance improvement to built-in slugify, inputPathToUrl universal filters (via memoization) #​840
  2. Named config export improves consistency for plugins #​3246 and set*Directory configuration API methods #​1503
export default function(eleventyConfig) {
  eleventyConfig.setInputDirectory(".");
  eleventyConfig.setOutputDirectory("_site");
};

export const config = {
  dir: {
    input: ".",
    output: "_site"
  },
};
  1. Virtual Templates, configuration API to add content (great for plugins, used by the new RSS plugin!) #​1612
export default function(eleventyConfig) {
  eleventyConfig.addTemplate("robots.njk", "User-agent: *\nAllow: /", {
    permalink: "/robots.txt",
  });
};
  1. IdAttribute plugin adds id attributes to headings (supports all template-languages) #​3363
import { IdAttributePlugin } from "@​11ty/eleventy";

export default function (eleventyConfig) {
	eleventyConfig.addPlugin(IdAttributePlugin);
};
  1. Plain-text Bundler included (via eleventy-plugin-bundle)
export default function(eleventyConfig) {
  eleventyConfig.addBundle("css"); // Adds {% css %} paired shortcode to create per-page CSS bundles
};
  1. InputPath to URL plugin lets you link directly to an input file path (and we’ll output the right URL)
<a href="my-template.md">Home</a> becomes <a href="/my-template/">Home</a>
  1. Use arbitrary JavaScript with the js Front Matter #​2819
---js
const hello = "hi";
---
{{ hello }}
  1. page.rawInput unlocks access to raw template content #​1206
  2. addPreprocessor configuration API to modify raw content before rendering works for file ignores and drafts #​188
  3. addDateParsing configuration API to add your own custom date parsing logic #​867
  4. eleventyDataSchema data option to validate data cascade values #​879
  5. Reserved Eleventy properties in data cascade are now frozen #​1173
  6. Support for asynchronous plugins and async-friendly addPlugin configuration API #​2675
  7. useLayouts option for Custom Template Languages allows opt-out of Eleventy Layouts #​2830
  8. renderTransforms Universal Filter will run project transforms on an arbitrary block of content (useful for RSS and other feeds) #​3294
  9. --incremental=filename.md on the command line #​3324
  10. renderContent Universal Filter now included with Render Plugin #​3370

Breaking Changes and Upgrade Path

Rather than navigating this list manually, use the Upgrade Help plugin for automated project checks and upgrade help!

  • Requires Node 18 or newer.
  • Removes Serverless and Edge plugins.
  • Use of bundled Eleventy plugins from CommonJS requires changing require("@&#8203;11ty/eleventy") to await import("@&#8203;11ty/eleventy") for ESM reasons. We provide helpful error messaging for this.
  • pug, ejs, haml, mustache, and handlebars plugins moved from core to official plugins
  • Throw errors if --config= command line file is missing #​3373
  • The htmlOutputSuffix feature was removed #​3327
  • Aliased custom templates must be declared in active formats #​3302
  • --formats= and --formats="" on command line means no formats (previously aliased to *) #​3255
  • Custom Template Language compileOptions.permalink option changed from true to "raw" #​2780
  • Major semver updates of dependencies:
  • Full list of breaking changes

Minutiae

Full Eleventy v3 Milestone (151 closed): https://github.com/11ty/eleventy/milestone/40?closed=1
Full Changelog: 11ty/eleventy@v2.0.1...v3.0.0-beta.1

Thank You Notes

This release would not have been possible without our community and supporters.

  • To everyone that has built something with Eleventy: thank you!
  • To everyone that has answered a question about Eleventy: on the Discord, on social media, in GitHub issues or discussion, at your local meetup or coffee shop: thank you!
  • To everyone that attended the 11ty Conference earlier this year: thank you!
  • To everyone that brought a well-intentioned complaint about something you didn’t like about Eleventy: thank you!
  • To everyone that dropped a few nice words of appreciation: thank you!
  • To everyone that has chipped in with their hard-earned money and made this release possible: thank you!

Thank you to @​bobmonsour, @​pdehaan, @​Snapstromegon, @​cdransf, @​5t3ph, @​BenDMyers, @​siakaramalegos, @​shivjm, @​dleatherman, @​darthmall, @​clottman, @​nachtfunke, @​David-Large, Olivia Nicholson, and @​mneumegen for their community contributions!

Thank you for the code contributions from @​VividVisions, @​mayank99, @​Zearin, @​chriskirknielsen, @​mendhak, @​fqueze, @​shivjm, @​rdela, @​w0whitaker, @​vrugtehagel, @​sachac, @​Snapstromegon, @​alifeee, @​uncenter, @​Zwyx, @​mayankkamboj47, @​aschrab, @​jgarber623, @​korverdev, @​mathertel, @​mathieuprog, @​epelc, and @​Ryuno-Ki.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@greatislander greatislander merged commit 61e8ab3 into main Aug 1, 2024
2 checks passed
@greatislander greatislander deleted the renovate/11ty-eleventy-3.x-lockfile branch August 1, 2024 00:10
@github-actions github-actions bot mentioned this pull request Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant