Skip to content

Conversation

@pablomatiasgomez
Copy link
Contributor

@pablomatiasgomez pablomatiasgomez commented Oct 14, 2025

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

debugIDs are meant to be valid UUIDs (as stated in http://github.com/tc39/ecma426/blob/main/proposals/debug-id.md) but the current approach is, in some cases, producing invalid UUIDs that basically have a missing character. This happens because this was using a to_string function that first converts the hash to a int, and in cases with a leading zero, the conversion to hex chars will miss the leading zero (only happens for the first byte, leading zeros in subsequent bytes are handled correctly).

This change should only affect debugIDs that were invalid, other cases should still provide the same results. I changed one test that validates this:

The generated debugIDs were/are:

file before my changes after my changes
bundle.amd.js 28ce0a2e-b5a7-4bb8-a8e3-51b8b90146ca 28ce0a2e-b5a7-4bb8-a8e3-51b8b90146ca (same)
bundle.cjs.js 89984494-7af9-4635-8f79-8f06498be1de 89984494-7af9-4635-8f79-8f06498be1de (same)
bundle.es.js a8e439b0-21f7-495b-8eb6-650e85e5bb8 0a8e439b-021f-4795-b2eb-6650e85e5bb8 (diff)
bundle.iife.js 330b233c-92e9-499b-bb44-a14630338eb 0330b233-c92e-4999-b1b4-4a14630338eb (diff)
bundle.system.js 99ee079c-ca42-482c-88db-8a4df9dffd01 99ee079c-ca42-482c-88db-8a4df9dffd01 (same)
bundle.umd.js e2be4d9f-c3a7-4cd8-b0ea-b905dddab044 e2be4d9f-c3a7-4cd8-b0ea-b905dddab044 (same)

@vercel
Copy link

vercel bot commented Oct 14, 2025

@pablomatiasgomez is attempting to deploy a commit to the rollup-js Team on Vercel.

A member of the Team first needs to authorize it.

@pablomatiasgomez pablomatiasgomez marked this pull request as ready for review October 14, 2025 19:33
@pablomatiasgomez pablomatiasgomez changed the title Fix generation fo debugIDs with invalid length fix: generation of debugIDs with invalid length Oct 14, 2025
@vercel
Copy link

vercel bot commented Oct 18, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
rollup Ready Ready Preview Comment Oct 18, 2025 5:55am

💡 Enable Vercel Agent with $100 free credit for automated AI reviews

Copy link
Member

@lukastaegert lukastaegert left a comment

Choose a reason for hiding this comment

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

I see what you mean, nice work!

@codecov
Copy link

codecov bot commented Oct 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.72%. Comparing base (69a9336) to head (7cb98ef).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6144   +/-   ##
=======================================
  Coverage   98.72%   98.72%           
=======================================
  Files         271      271           
  Lines       10638    10638           
  Branches     2847     2847           
=======================================
  Hits        10502    10502           
  Misses         91       91           
  Partials       45       45           

☔ 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 lukastaegert added this pull request to the merge queue Oct 18, 2025
Merged via the queue into rollup:master with commit 58f5a7b Oct 18, 2025
45 checks passed
@github-actions
Copy link

This PR has been released as part of [email protected]. 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.

2 participants