Skip to content

Conversation

@jeffalo
Copy link
Contributor

@jeffalo jeffalo commented Oct 4, 2024

The object.entries shim is not necessary - even 11ty version 1x requires a recent enough NodeJS that it's safe to assume Object.entries exists. Tests are only run on Node 18 and 20 anyway, and the dependency is only used in the test.js file.

Removing this dependency would get rid of the longest branch in 11ty's dependency tree. This reduces the risk of supply chain attacks, makes installs faster and is better for the environment.

https://npmgraph.js.org/?q=%4011ty%2Feleventy#zoom=w&select=exact%3Aobject.entries%401.1.8

image

It is no longer necessary - 11ty already requires a recent enough NodeJS that it's safe to assume `Object.entries` exists.
@zachleat
Copy link
Member

Oh, wild. I was going to ship this as a breaking change but it looks like object.entries is declared as a dependency but should have been a devDependency (it’s only require’d for the tests, not in the source code for the plugin itself).

Regardless, this is a great find. I’m going to ship it with v1.0.1 of this plugin

@zachleat zachleat merged commit 953284d into 11ty:main Jan 16, 2025
@zachleat
Copy link
Member

v1.0.1 shipped, will be included with core v3.0.1 (-alpha.4 or newer)

@zachleat
Copy link
Member

Required https://github.com/11ty/eleventy-plugin-rss/releases/tag/v2.0.3 too, posthtml-urls was previously pinned to 1.0.0 there

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.

2 participants