-
Notifications
You must be signed in to change notification settings - Fork 486
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
fix: lack of comments removal, invalid regexp #745
Conversation
bc9a662
to
9bcb758
Compare
Hello @lorenwest, *Edit: Though the removal of comment stripping from CSON might be a mistake. Let me know your thoughts |
@lorenwest @DeutscherDude There hasn't been much movement on this PR in a bit - it would be really helpful to have as my team is migrating to Node20. I'm happy to give feedback on this PR or whatever else to help move it forward. |
We are also holding off a node-20+ migration because of this bug |
This looks like a healthy change, and I wish it were as simple as approving and merging. Unfortunately for health reasons I've been less than active in this project, and it seems that 2 test failures have crept into the master branch. One of the problems was resolved in this branch, but there's another that needs further research before merging. When did it start failing? Is it a failure of the test or a failure of the baseline code? Does it only fail on one NodeJS version or many? What was the original intent, and is it still relevant? All of this takes time and energy to resolve, and my philosophy is to never merge into master with a single test failure, otherwise the effort everyone has put into these tests are diluted. @markstos and I are the two authorized to merge into master and push a new release, and we've been doing it for 8-12 years, and neither of us is getting any younger. Would anyone like to start taking the reigns for node-config going forward? It's pretty stable, but does need TLC every now and then. |
I generally agree with your philosophy but it sounds like this pr doesn’t increase the failures that exist, in fact reduces them? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Happy to be of further aid in the future. I got pretty intimate with the code and feel comfortable with it :). |
Thanks for the offer @DeutscherDude . For now I've disabled the failing test as I couldn't see how it could ever have worked. Your branch was merged, a new release was created, and npm latest is now at v3.3.10 ...and all tests pass in the master branch again. At some point someone should set up a workflow where a new release runs all tests, requiring all to pass, then bumps up the version, checks it in, creates release notes and pushes to npm. |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [config](http://github.com/node-config/node-config.git) ([source](https://togithub.com/node-config/node-config)) | [`3.3.9` -> `3.3.10`](https://renovatebot.com/diffs/npm/config/3.3.9/3.3.10) | [![age](https://developer.mend.io/api/mc/badges/age/npm/config/3.3.10?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/config/3.3.10?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/config/3.3.9/3.3.10?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/config/3.3.9/3.3.10?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>node-config/node-config (config)</summary> ### [`v3.3.10`](https://togithub.com/node-config/node-config/releases/tag/v3.3.10) [Compare Source](https://togithub.com/node-config/node-config/compare/v3.3.9...v3.3.10) ##### What's Changed - replace var to let and const by [@​jamashita](https://togithub.com/jamashita) in [node-config/node-config#720 - refactor: 💡 xxx === undefined => typeof xxx === 'undefined' by [@​jamashita](https://togithub.com/jamashita) in [node-config/node-config#729 - Fix source maps when using ts config files, improve performance loading ts config files by [@​andrzej-woof](https://togithub.com/andrzej-woof) in [node-config/node-config#721 - fix: lack of comments removal, invalid regexp by [@​DeutscherDude](https://togithub.com/DeutscherDude) in [node-config/node-config#745 ##### New Contributors - [@​jamashita](https://togithub.com/jamashita) made their first contribution in [node-config/node-config#720 - [@​andrzej-woof](https://togithub.com/andrzej-woof) made their first contribution in [node-config/node-config#721 - [@​DeutscherDude](https://togithub.com/DeutscherDude) made their first contribution in [node-config/node-config#745 **Full Changelog**: node-config/node-config@v3.3.9...v3.3.10 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/tomacheese/cmcutter). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMjcuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEyNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
It's very good |
This addresses issues mentioned in #715
The issue mentioned in #704 will be investigated further