Skip to content

Remove history.md from being packaged on publish - #6780

Merged
sheplu merged 1 commit into
masterfrom
remove-history-on-publish
Sep 25, 2025
Merged

Remove history.md from being packaged on publish#6780
sheplu merged 1 commit into
masterfrom
remove-history-on-publish

Conversation

@sheplu

Copy link
Copy Markdown
Member

Remove History.md file from being published.

This would reduce the size of the package by ~ 56% (loosing 29851 kb) and for 48M downloads/weeks this would save ~1.4 Tb of transfer per week. (unzip)

  • previous gzip: 52,415 kb
  • new gzip: 22,564 kb
  • previous unzip: 221 kb
  • new unzip: 98 kb

This PR completely remove this document from the tarball published but we could also

  • keep the document and dynamically add the link to the history.md file in the repo
  • only keep the content of the latest release (and maybe with a link)

I would recommend to drop the file completely and let people reading it on github

@shivarmshivarm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Agree!

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

I like the approach... and probably we want to do it in other packages too.

Also this is potentially related to expressjs/discussions#293

@sheplu

Copy link
Copy Markdown
MemberAuthor

@UlisesGascon I did not even remember that issue from last year - but deifnitely
I opened just this PR to have the discussion about removing it from package, keep it with a link , keep it with only the latest release but when done I will open the PR on all packages to have something equivalent :)

@sheplu

Copy link
Copy Markdown
MemberAuthor

@expressjs/express-tc for review

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

LGTM

@sheplu
sheplu merged commit 9a7afb2 into masterSep 25, 2025
26 checks passed
@sheplu
sheplu deleted the remove-history-on-publish branch September 25, 2025 05:20
@UlisesGasconUlisesGascon mentioned this pull request Nov 25, 2025
anirudh2308 pushed a commit to git-trek/express that referenced this pull request May 29, 2026
anirudh2308 pushed a commit to git-trek/express that referenced this pull request Aug 16, 2026
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.

6 participants

@sheplu@wesleytodd@UlisesGascon@jonchurch@ctcpip@shivarm