Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly handling __proto__ export as module object key #5313

Merged
merged 30 commits into from
Jan 4, 2024
Merged

Correctly handling __proto__ export as module object key #5313

merged 30 commits into from
Jan 4, 2024

Conversation

LongTengDao
Copy link
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.

Copy link

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

Copy link

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
Contributor Author

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

src/finalisers/system.ts Outdated Show resolved Hide resolved
src/finalisers/system.ts Outdated Show resolved Hide resolved
src/utils/systemJsRendering.ts Outdated Show resolved Hide resolved
@lukastaegert
Copy link
Member

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

@LongTengDao
Copy link
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
26 of 27 checks passed
Copy link

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.
wangdaoo pushed a commit to wangdaoo/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