Skip to content

🐛 fix: merging of two similarly keyed mappings#11

Merged
RobertoPrevato merged 1 commit intoNeoteroi:mainfrom
fennelmarkets:main
Dec 28, 2023
Merged

🐛 fix: merging of two similarly keyed mappings#11
RobertoPrevato merged 1 commit intoNeoteroi:mainfrom
fennelmarkets:main

Conversation

@StummeJ
Copy link
Copy Markdown
Contributor

@StummeJ StummeJ commented Nov 8, 2023

Overview

This sets out to fix issue #10. We found that merging two sources with similar mappings would cause the destruction of the mapping from the previously processed source. The use case we found this in was having a config with some secret values, then populating just the secret values from a secure store.

Specifics

  • Add deepmerge package to handle merging of two mappings properly
  • Add some additional typing for added type safety
  • Fix a test that would fail due to vscode using TEST_ environment variables for it's test runner

@RobertoPrevato
Copy link
Copy Markdown
Member

Hi @StummeJ
I apologize for replying so late, I appreciate this very much and I am willing to merge and release a new package with this feature.

@RobertoPrevato RobertoPrevato merged commit 0eb8115 into Neoteroi:main Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants