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

Remove dependency on object.entries to make 11ty leaner #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jeffalo
Copy link

@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.
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