-
Notifications
You must be signed in to change notification settings - Fork 86
Fix: semantic props order override #1130
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
base: main
Are you sure you want to change the base?
Fix: semantic props order override #1130
Conversation
|
|
This looks great overall. Will review with the team to see if we can get into 6.0. |
665a6e2 to
108239d
Compare
|
Hey @matthewp I reverted (rebased) the changeset changes as per your request. However, the command you suggested ( Am I supposed to run |
|
Ah yeah sorry, I guess we didn't add the script to the package.json. |
Changes
Adjusts astro compiler to adhere to JSX semantic prop overrides.
Manually overriding like that is a rare occurance, but consider this far more common issue
Testing
Added both ts and go tests for testing the compiler (parser/printer) for deduping various example and cornercases like svg namespaces, multiple spreads, etc.
Tested via standard test workflow:
Docs
Doesn't require any direct documentation changes imho, but does require a breaking change notice in the changelog / announcement post of the version (even though majority of users should be unaffected by this change)
Closing remarks
Full disclosure, I have very limited
golangexperience. I did my best to address the necessary changes in a meaningful and performant way, but I wanted to make it explicitly clear -- My expertise is TypeScript with a hobbylang of Rust, so just so we're on the same page -- I did use AI to help me get this PR over the finish line to make up for my lack of go knowledge.I did my best to verify everything and write a comprehensive test suite for it, but it is more than likely that there may be something suboptimal given the scope of the compiler, the fact that it's my first change and that I have very limited go experience from a single sideproject ~2 years ago.
Either way hopefully this should serve as a solid starting point and wanted to deliver you guys'n'gals bit of an early christmas present for all the hard work you've been putting in all this time. Have wonderful holidays 🎄