Skip to content

fix: replace all dot chars during normalization#580

Merged
fairclothjm merged 2 commits intomainfrom
VAULT-36123/fix-wildcard-dot-replace
May 14, 2025
Merged

fix: replace all dot chars during normalization#580
fairclothjm merged 2 commits intomainfrom
VAULT-36123/fix-wildcard-dot-replace

Conversation

@fairclothjm
Copy link
Copy Markdown
Collaborator

@fairclothjm fairclothjm commented May 13, 2025

Description

Closes #579

Checklist

  • Added CHANGELOG entry (only for user-facing changes)

Community Note

  • Please vote on this pull request by adding a 👍
    reaction
    to the original pull request comment to help the community and maintainers
    prioritize this request
  • Please do not leave "+1" comments, they generate extra noise for pull request
    followers and do not help prioritize the request

@fairclothjm fairclothjm requested a review from a team May 13, 2025 15:30
*/
function normalizeOutputKey(dataKey, upperCase = false) {
let outputKey = dataKey
.replace(".", "__")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC we used to wait to update dist/index.js until release time?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes you are correct. I can't remember why I started including this in PRs. But at one point I think I had a good reason... Maybe it was so the main ref was up-to-date in case people wanted to pull that in?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Evidence of that here: #522 (comment)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I think the concern was that main could be unstable in between releases and could break people that were pointing to @main. But that was early days here, maybe we're not as worried about that now.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the info! I don't feel too strongly about it but I lean toward keeping main up-to-date. I will merge this for now and if we get complaints we can revisit the workflow.

@fairclothjm fairclothjm merged commit b022ecd into main May 14, 2025
6 checks passed
@fairclothjm fairclothjm deleted the VAULT-36123/fix-wildcard-dot-replace branch May 14, 2025 14:33
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.

[BUG] Only first dot (.) of normalized output key is replaced

2 participants