commonmarker icon indicating copy to clipboard operation
commonmarker copied to clipboard

add an option to merge default configs

Open monkeyWzr opened this issue 1 year ago • 5 comments
trafficstars

Fix #314

monkeyWzr avatar Sep 11 '24 17:09 monkeyWzr

Heya! This looks good, but I'm about to head on vacation and the only change I'd request is for merge_default_options to be removed. You're right in that it's more natural/correct to expect that the rest of one's defaults remain unchanged; so the default here should be to always merge in the defaults (and respect the user's config choice otherwise).

gjtorikian avatar Sep 13 '24 13:09 gjtorikian

Enjoy your vacation!

the only change I'd request is for merge_default_options to be removed

Sure! I'm happy to make the changes but there are two things:

  • tons of tests need to be fixed
  • it might break user's app if someone is relying on the current behavior

For the first one I think I can find a way out. For the second I really don't know what I can do so I'm gonna leave it to you 😄 (maybe some breaking change notes in the changelog?)

monkeyWzr avatar Sep 16 '24 10:09 monkeyWzr

Hello! Just dropping a note to say I'm back from vacation.

I started to take a look at this and, yowza, you're completely right, the options merging is a bit of a mess. I've got a few dozen spec tests to fix, but I do think I will make option merging the default in a new major version. Thanks for pointing this out! I can't believe it's been like this for so long without anyone noticing. 😓

gjtorikian avatar Sep 26 '24 15:09 gjtorikian

Ok! I finally got all the tests passing. I need to take a closer look at the changes overall before merging this. But at least there's a stable branch to point to.

gjtorikian avatar Oct 09 '24 18:10 gjtorikian

Sorry for the delay (vacation too 😅) Thanks for following up! Let me know if there’s anything I can do to help!

monkeyWzr avatar Oct 10 '24 02:10 monkeyWzr