Skip to content
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

build(deps): bump github.com/mitchellh/mapstructure from 1.1.2 to 1.5.0 in /api #217

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Apr 21, 2022

Bumps github.com/mitchellh/mapstructure from 1.1.2 to 1.5.0.

Changelog

Sourced from github.com/mitchellh/mapstructure's changelog.

1.5.0

  • New option IgnoreUntaggedFields to ignore decoding to any fields without mapstructure (or the configured tag name) set GH-277
  • New option ErrorUnset which makes it an error if any fields in a target struct are not set by the decoding process. GH-225
  • New function OrComposeDecodeHookFunc to help compose decode hooks. GH-240
  • Decoding to slice from array no longer crashes GH-265
  • Decode nested struct pointers to map GH-271
  • Fix issue where ,squash was ignored if Squash option was set. GH-280
  • Fix issue where fields with ,omitempty would sometimes decode into a map with an empty string key GH-281

1.4.3

  • Fix cases where json.Number didn't decode properly GH-261

1.4.2

  • Custom name matchers to support any sort of casing, formatting, etc. for field names. GH-250
  • Fix possible panic in ComposeDecodeHookFunc GH-251

1.4.1

  • Fix regression where *time.Time value would be set to empty and not be sent to decode hooks properly GH-232

1.4.0

  • A new decode hook type DecodeHookFuncValue has been added that has access to the full values. GH-183
  • Squash is now supported with embedded fields that are struct pointers GH-205
  • Empty strings will convert to 0 for all numeric types when weakly decoding GH-206

1.3.3

  • Decoding maps from maps creates a settable value for decode hooks GH-203

1.3.2

  • Decode into interface type with a struct value is supported GH-187

1.3.1

  • Squash should only squash embedded structs. GH-194

1.3.0

  • Added ",omitempty" support. This will ignore zero values in the source

... (truncated)

Commits
  • ab69d8d update CHANGELOG to 1.5.0
  • bd687ea update CHANGELOG
  • c9b585b update test to not rely on fmt
  • 5a2eb61 Merge pull request #281 from semrekkers/issue-238
  • 74e07d1 update CHANGELOG
  • 3a684c7 Merge pull request #240 from julnicolas/feature/add_or_compose_decode_hook_func
  • 0bb6a2e Merge branch 'master' into feature/add_or_compose_decode_hook_func
  • ac10e22 update CHANGELOG
  • 8385cfa Merge pull request #225 from SaschaRoland/unset-fields
  • 17e49ec update CHANGELOG
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/mitchellh/mapstructure](https://github.com/mitchellh/mapstructure) from 1.1.2 to 1.5.0.
- [Release notes](https://github.com/mitchellh/mapstructure/releases)
- [Changelog](https://github.com/mitchellh/mapstructure/blob/master/CHANGELOG.md)
- [Commits](mitchellh/mapstructure@v1.1.2...v1.5.0)

---
updated-dependencies:
- dependency-name: github.com/mitchellh/mapstructure
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Apr 21, 2022
@pull-request-quantifier-deprecated

This PR has 6 quantified lines of changes. In general, a change size of upto 200 lines is ideal for the best PR experience!


Quantification details

Label      : Extra Small
Size       : +3 -3
Percentile : 2.4%

Total files changed: 2

Change summary by file extension:
.mod : +1 -1
.sum : +2 -2

Change counts above are quantified counts, based on the PullRequestQuantifier customizations.

Why proper sizing of changes matters

Optimal pull request sizes drive a better predictable PR flow as they strike a
balance between between PR complexity and PR review overhead. PRs within the
optimal size (typical small, or medium sized PRs) mean:

  • Fast and predictable releases to production:
    • Optimal size changes are more likely to be reviewed faster with fewer
      iterations.
    • Similarity in low PR complexity drives similar review times.
  • Review quality is likely higher as complexity is lower:
    • Bugs are more likely to be detected.
    • Code inconsistencies are more likely to be detetcted.
  • Knowledge sharing is improved within the participants:
    • Small portions can be assimilated better.
  • Better engineering practices are exercised:
    • Solving big problems by dividing them in well contained, smaller problems.
    • Exercising separation of concerns within the code changes.

What can I do to optimize my changes

  • Use the PullRequestQuantifier to quantify your PR accurately
    • Create a context profile for your repo using the context generator
    • Exclude files that are not necessary to be reviewed or do not increase the review complexity. Example: Autogenerated code, docs, project IDE setting files, binaries, etc. Check out the Excluded section from your prquantifier.yaml context profile.
    • Understand your typical change complexity, drive towards the desired complexity by adjusting the label mapping in your prquantifier.yaml context profile.
    • Only use the labels that matter to you, see context specification to customize your prquantifier.yaml context profile.
  • Change your engineering behaviors
    • For PRs that fall outside of the desired spectrum, review the details and check if:
      • Your PR could be split in smaller, self-contained PRs instead
      • Your PR only solves one particular issue. (For example, don't refactor and code new features in the same PR).

How to interpret the change counts in git diff output

  • One line was added: +1 -0
  • One line was deleted: +0 -1
  • One line was modified: +1 -1 (git diff doesn't know about modified, it will
    interpret that line like one addition plus one deletion)
  • Change percentiles: Change characteristics (addition, deletion, modification)
    of this PR in relation to all other PRs within the repository.


Was this comment helpful? 👍  :ok_hand:  :thumbsdown: (Email)
Customize PullRequestQuantifier for this repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file Extra Small go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants