feat(useChangeCase)!: migrate to change-case@v5, closes #3457#3460
Merged
feat(useChangeCase)!: migrate to change-case@v5, closes #3457#3460
change-case@v5, closes #3457#3460Conversation
change-case@v5 closes #3457
change-case@v5 closes #3457change-case@v5, closes #3457
change-case@v5, closes #3457change-case@v5, closes #3457
|
Any change this will be merged soon? |
change-case@v5, closes #3457change-case@v5, closes #3457
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
Running into this too. useChangeCase is broken. |
|
bumping this |
antfu
approved these changes
Jun 12, 2024
change-case@v5, closes #3457change-case@v5, closes #3457
This was referenced Sep 7, 2024
This was referenced Sep 7, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before submitting the PR, please make sure you do the following
fixes #123).Description
Closes #3457
I've updated the function so we are no longer explicitly importing the change case functions. This should hopefully help future proof the function to any changes in naming made on their end. Also updated to parameters to allow refs and getters.
🤖 Generated by Copilot at 0473413
Refactored and improved the
useChangeCasehook and demo. The hook now uses thechange-caselibrary and accepts reactive arguments. The demo is more concise and uses the library directly. ThechangeCase.tsfile was removed as it was no longer needed.🤖 Generated by Copilot at 0473413
useChangeCasehook to usechange-caselibrary directly (link, link, link, link)changeCase.tsfile (link)ChangeCaseTypetype from library's exported keys (link)changeCaseTransformsobject to map case names to functions (link)toValuehelper to handle reactivetypeandoptionsarguments (link)transformsarray dynamically from library's functions indemo.vue(link)demo.vue(link)demo.vue(link)