"New Update Unleashes Power of Username Freedom: Users Can Now Remove Social Handles with a Click!"
"Cutting-edge validation enhancements for Twitter and GitHub allow seamless removal of usernames, rectifying previous core errors."
Commit Details:
fix: support removals for social usernames, already supported upstream (#2572) ## Why is this change needed? Social usernames (twitter, github) have support for removals by setting the value to empty string. The validator in core erroneously marks this as an invalid message. ## Merge Checklist _Choose all relevant options below by adding an `x` now or at any time before submitting for review_ - [x] PR title adheres to the [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) standard - [x] PR has a [changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets) - [x] PR has been tagged with a change label(s) (i.e. documentation, feature, bugfix, or chore) - [ ] PR includes [documentation](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#32-writing-docs) if necessary. <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on enhancing username validation for social media platforms by allowing users to remove their usernames. It also updates tests related to version expiry. ### Detailed summary - Added support for removing social usernames in `validations.ts` for `TWITTER` and `GITHUB`. - Updated validation logic to check if the username value is not an empty string before validation. - Removed a test block in `versions.test.ts` related to version expiry checks. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->