Skip to content

Correctly handling __proto__ export as module object key#5313

Merged
lukastaegert merged 30 commits intorollup:masterfrom
LongTengDao-fork-C:master
Jan 4, 2024
Merged

Correctly handling __proto__ export as module object key#5313
lukastaegert merged 30 commits intorollup:masterfrom
LongTengDao-fork-C:master

Conversation

@LongTengDao
Copy link
Copy Markdown
Contributor

@LongTengDao LongTengDao commented Dec 26, 2023

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

https://rollupjs.org/repl/?version=4.9.1&shareable=JTdCJTIyZXhhbXBsZSUyMiUzQW51bGwlMkMlMjJtb2R1bGVzJTIyJTNBJTVCJTdCJTIyY29kZSUyMiUzQSUyMmltcG9ydCUyMColMjBhcyUyMHglMjBmcm9tJTIwJy4lMkZ4JyUzQiU1Q25jb25zb2xlLmxvZyh4KSUzQiUyMiUyQyUyMmlzRW50cnklMjIlM0F0cnVlJTJDJTIybmFtZSUyMiUzQSUyMm1haW4uanMlMjIlN0QlMkMlN0IlMjJjb2RlJTIyJTNBJTIyZXhwb3J0JTIwY29uc3QlMjBfX3Byb3RvX18lMjAlM0QlMjAwJTNCJTIyJTJDJTIyaXNFbnRyeSUyMiUzQWZhbHNlJTJDJTIybmFtZSUyMiUzQSUyMnguanMlMjIlN0QlNUQlMkMlMjJvcHRpb25zJTIyJTNBJTdCJTIyb3V0cHV0JTIyJTNBJTdCJTIyZm9ybWF0JTIyJTNBJTIyZXMlMjIlN0QlMkMlMjJ0cmVlc2hha2UlMjIlM0F0cnVlJTdEJTdE

The PR generate ["__proto__"]: instead of __proto__:. It can also be written by get __proto__ () instead, if that would be better. All formats have no __proto__ related problem now.

@vercel
Copy link
Copy Markdown

vercel bot commented Dec 26, 2023

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 Dec 30, 2023 7:55pm

@codecov
Copy link
Copy Markdown

codecov bot commented Dec 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (347a347) 98.82% compared to head (74edf37) 98.81%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5313      +/-   ##
==========================================
- Coverage   98.82%   98.81%   -0.02%     
==========================================
  Files         232      232              
  Lines        8973     8981       +8     
  Branches     2338     2341       +3     
==========================================
+ Hits         8868     8875       +7     
  Misses         46       46              
- Partials       59       60       +1     

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

@LongTengDao
Copy link
Copy Markdown
Contributor Author

@lukastaegert ready to merge. sorry for wasting too much time to deal with existing tests with hash...

@lukastaegert
Copy link
Copy Markdown
Member

BTW you can use npm run test:update-snapshots to update most snapshots automatically.

@LongTengDao
Copy link
Copy Markdown
Contributor Author

@lukastaegert Under your patient guidance, the heavy maintenance work suddenly became enjoyable!

@lukastaegert lukastaegert added this pull request to the merge queue Jan 4, 2024
Merged via the queue into rollup:master with commit 75bb7fa Jan 4, 2024
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 5, 2024

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

yyx990803 added a commit to vuejs/core that referenced this pull request Feb 5, 2024
4.9.3 introduced a regression in rollup/rollup#5313
which changes the `export * from` codegen and breaks Node.js' re-export
detection.
lynxlangya pushed a commit to lynxlangya/core that referenced this pull request May 30, 2024
4.9.3 introduced a regression in rollup/rollup#5313
which changes the `export * from` codegen and breaks Node.js' re-export
detection.
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.

dispose __proto__ export properly

2 participants