Skip to content

🐛 Fix small config util bugs#493

Merged
wwilsman merged 1 commit intomasterfrom
ww/config-util-bugs
Aug 13, 2021
Merged

🐛 Fix small config util bugs#493
wwilsman merged 1 commit intomasterfrom
ww/config-util-bugs

Conversation

@wwilsman
Copy link
Copy Markdown
Contributor

@wwilsman wwilsman commented Aug 13, 2021

What is this?

This PR fixes a couple small bugs I found in @percy/config:

  • When validating arrays as the root subject, the resulting message would contain a path like 0].example. This was fixed by only stripping leading periods from joined paths rather that stripping the first character blindly.

  • When normalizing objects that are not plain objects or arrays (Date, RegExp, etc), the object was inadvertently removed from the result. This was fixed by explicitly testing for the correct type of objects we're looking for. The util was named hasKeys in case we ever need to account for other types of iterable objects (but not all of them).

@wwilsman wwilsman added the 🐛 bug Something isn't working label Aug 13, 2021
@wwilsman wwilsman requested a review from Robdel12 August 13, 2021 19:28
@wwilsman wwilsman enabled auto-merge (squash) August 13, 2021 19:34
Copy link
Copy Markdown
Contributor

@Robdel12 Robdel12 left a comment

Choose a reason for hiding this comment

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

🏁

@wwilsman wwilsman merged commit bff43b8 into master Aug 13, 2021
@wwilsman wwilsman deleted the ww/config-util-bugs branch August 13, 2021 19:58
samarsault pushed a commit that referenced this pull request Mar 3, 2023
Bumps [async](https://github.com/caolan/async) from 3.2.0 to 3.2.3.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/master/CHANGELOG.md)
- [Commits](caolan/async@v3.2.0...v3.2.3)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants