Skip to content

remove once npm package - #6555

Closed
bhavya3024 wants to merge 1 commit into
expressjs:masterfrom
bhavya3024:master
Closed

remove once npm package#6555
bhavya3024 wants to merge 1 commit into
expressjs:masterfrom
bhavya3024:master

Conversation

@bhavya3024

@bhavya3024bhavya3024 commented Jun 3, 2025

Copy link
Copy Markdown
Contributor

Do we really need it ? as we can manually implement it

@wesleytoddwesleytodd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing this dep doesn't achieve anything because it is also used in other libraries that ship with express. We would need to duplicate this code into all of them.

@jonchurch

Copy link
Copy Markdown
Member

Thanks for the PR! The change is valid, and the implementation looks fine. That said, I'd stick with the current use of once.

It was added intentionally in #3216 as a minimal, well-scoped alternative to ee-first. I prefer to keep small, purpose-built dependencies like this when they clearly express intent and don’t add meaningful overhead.

Inlining this logic doesn’t materially improve clarity or reduce maintenance cost, so I'd opt to keep it as is.

@ctcpip

Copy link
Copy Markdown
Member

agree with comments. @bhavya3024 thank you for your contribution. 🙏 it can be frustrating to spend time implementing and testing something that does not get accepted. in future, it would be helpful to first create a discussion for a proposed change like this.

Sign up for freeto 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.

4 participants

@bhavya3024@jonchurch@ctcpip@wesleytodd