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

feat(swc): enable bytecheck #7280

Merged
merged 3 commits into from
May 6, 2023
Merged

feat(swc): enable bytecheck #7280

merged 3 commits into from
May 6, 2023

Conversation

kwonoj
Copy link
Member

@kwonoj kwonoj commented Apr 17, 2023

Description:

Second attempt to enable bytecheck. This PR does not have cersioned struct yet, just enabling bytecheck whereever possible. Also it is for the ast only yet, so transformmetadata and other might need this later.

PR seems to passing all the ci, but as we've experienced before there might be some unexpected outcome with release. Maybe better to hold this until clear #7238, then land as separate release.

@kwonoj kwonoj changed the title Feat bytecheck feat(swc): enable bytecheck Apr 17, 2023
kdy1
kdy1 previously approved these changes Apr 19, 2023
Copy link
Member

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

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

Thank you! Let's postpone merging this..

@kdy1 kdy1 added this to the Planned milestone Apr 19, 2023
@kwonoj
Copy link
Member Author

kwonoj commented Apr 25, 2023

@kdy1 Resolved conflict, I think we can land this now (which.. requires another bump for swc_core and @swc/core probably though)

@kwonoj
Copy link
Member Author

kwonoj commented May 6, 2023

@kdy1 thoughts on this? I think this is now ready to go in.

@kdy1
Copy link
Member

kdy1 commented May 6, 2023

I agree, but I'm curious if this is a breaking change of swc_core

@kwonoj
Copy link
Member Author

kwonoj commented May 6, 2023

I may wrong, but I guess not? This PR enables repr and bytecheck, however does not enable versioned struct we attempted previously (1f3eba7#diff-ef22f81d236ee08fd2bed74657c8eddc2dbef9f02f454a25941daa453b0ab2e0R173) so unless anyone explicitly relies on some of repr-based struct layout, it would work (again, I guess though)

@kdy1 kdy1 enabled auto-merge (squash) May 6, 2023 03:07
Copy link
Member

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

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

swc-bump:

  • swc_plugin_proxy
  • swc_atoms
  • ast_node

Copy link
Collaborator

@swc-bot swc-bot left a comment

Choose a reason for hiding this comment

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

Automated review comment generated by auto-rebase script

@kdy1 kdy1 merged commit d2c1f45 into swc-project:main May 6, 2023
@kdy1 kdy1 modified the milestones: Planned, v1.3.57 May 9, 2023
@swc-project swc-project locked as resolved and limited conversation to collaborators Jun 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants