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
Handle numbers in action/type names #99
Conversation
Release - Dep Update & Tests & Cleanup
fix(release): Release new version with updated deps
fix(release): Trigger build
## [1.1.1](jkeam/reduxsauce@v1.1.0...v1.1.1) (2019-10-23) ### Bug Fixes * **release:** Trigger build ([151c806](jkeam@151c806)) * **release:** Trigger build ([a1c80b0](jkeam@a1c80b0))
Merge pull request jkeam#97 from jkeam/develop
## [1.1.2](jkeam/reduxsauce@v1.1.1...v1.1.2) (2020-01-19) ### Bug Fixes * **typescript:** allow objects while creating actions ([jkeam#94](jkeam#94)) ([9a66227](jkeam@9a66227))
Handle numbers in action names as if they were lowercase letters or subsequent capital letters, e.g: storeS3Key -> STORE_S3_KEY usePython3Instead -> USE_PYTHON3_INSTEAD
so I can use this from the git repo.
Great enhancement! Question about the package-lock file, any reason for checking it in? Also question about the package.json, any reason for adding the 'prepare' script? |
Sorry, I saw this and forgot about it for a few days. The |
Hi I was looking to drop the To be specific, I was thinking the regex would be:
instead of
|
This reverts commit f20dea2.
I don't necessarily have a problem with that change, but it does have the potential issue that it won't recognize single-letter "words" at the end of the name. For example, an action called It also would break the consecutive-capitals-as-one-word rule:
|
Ya good point. Thanks again for all your help and contribution. I'm going to merge this into develop and then most likely fix the package json in another PR. |
Can we get this in to a release soon? |
Ya! Thanks for following back up. I wanna say by the end of this week. I'll drop a note here once it's been released. |
Thanks!
…On Mon, Jul 27, 2020 at 1:27 PM Jonathan Keam ***@***.***> wrote:
Ya! Thanks for following back up. I wanna say by the end of this week.
I'll drop a note here once it's been released.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#99 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACLMFTKA55O7TCNCEGVNUTR5W2H5ANCNFSM4KM3W5HA>
.
|
🎉 This PR is included in version 1.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
A recent update to reduxsauce's making of type names broke our code because it changed the way it was handling numbers in the type name.
We have an action,
storeS3Key
, which we were expecting to be translated toSTORE_S3_KEY
. However, with the change to the regex that converts to SCREAMING_SNAKE_CASE, it was being translated toSTORES3_KEY
. This PR changes that to treat numbers as being part of the preceding word.