Skip to content

fix(assetFileNames): reduce max hash size to 21#5921

Merged
lukastaegert merged 1 commit intorollup:masterfrom
shulaoda:04-14-fix/reduce-assetFileNames-max-hash-size-to-21
Apr 26, 2025
Merged

fix(assetFileNames): reduce max hash size to 21#5921
lukastaegert merged 1 commit intorollup:masterfrom
shulaoda:04-14-fix/reduce-assetFileNames-max-hash-size-to-21

Conversation

@shulaoda
Copy link

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

List any relevant issue numbers:

Description

This reduces the maximum allowed hash size from 22 to 21 as for base64, sometimes the hash size would be just 21, resulting in unexpected files names and off-by-one source maps.

@vercel
Copy link

vercel bot commented Apr 13, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rollup ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 13, 2025 5:32pm

@codecov
Copy link

codecov bot commented Apr 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.55%. Comparing base (1f2d579) to head (8f5246c).
Report is 5 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5921   +/-   ##
=======================================
  Coverage   98.55%   98.55%           
=======================================
  Files         270      270           
  Lines        8692     8692           
  Branches     1488     1489    +1     
=======================================
  Hits         8566     8566           
  Misses         93       93           
  Partials       33       33           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@lukastaegert
Copy link
Member

In the future, we might consider to warn about this, but for now I think it is fine.

@lukastaegert lukastaegert added this pull request to the merge queue Apr 26, 2025
Merged via the queue into rollup:master with commit 8e0d034 Apr 26, 2025
41 checks passed
@github-actions
Copy link

This PR has been released as part of rollup@4.40.1. You can test it via npm install rollup.

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.

The maximum length of the hash for assetFileNames should be 21

2 participants