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

fix(deps): update module github.com/brianvoe/gofakeit/v6 to v7 #46

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 24, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/brianvoe/gofakeit/v6 v6.28.0 -> v7.0.2 age adoption passing confidence

Release Notes

brianvoe/gofakeit (github.com/brianvoe/gofakeit/v6)

v7.0.2

Compare Source

v7.0.1

Compare Source

v7.0.0: - math/rand/v2

Compare Source

Gofakeit v7: What's New!

🎲 math/rand/v2 Integration

  • Better RNG 🔒: Now using math/rand/v2 for a more simplistic implementation and two new source types(pcg, chacha8).
  • Simplified faker 🧹: Refined faker struct for ease of use, mirroring the simplicity improvements of math/rand/v2.

✨ Highlights

  • New Sources : math/rand/v2 added PCG and ChaCha8. Gofakeit also added a sub package called source with additional sources in it.

Example New and NewFaker usage

import (
	"github.com/brianvoe/gofakeit/v7"
	"github.com/brianvoe/gofakeit/v7/source"
	"math/rand/v2"
)

// Uses math/rand/v2(PCG Pseudo) with mutex locking
faker := gofakeit.New(0)

// NewFaker takes in a source and whether or not it should be thread safe
faker := gofakeit.NewFaker(source rand.Source, threadSafe bool)

// PCG Pseudo
faker := gofakeit.NewFaker(rand.NewPCG(11, 11), true)

// ChaCha8
faker := gofakeit.NewFaker(rand.NewChaCha8([32]byte{0, 1, 2, 3, 4, 5}), true)

// Additional from Gofakeit sub package source

// JSF(Jenkins Small Fast)
faker := gofakeit.NewFaker(source.NewJSF(11), true)

// SFC(Simple Fast Counter)
faker := gofakeit.NewFaker(source.NewSFC(11), true)

// Crypto - Uses crypto/rand
faker := gofakeit.NewFaker(source.NewCrypto(), true)

// Dumb - simple incrementing number
faker := gofakeit.NewFaker(source.NewDumb(11), true)

🙏 Acknowledgments

A huge shoutout to our contributors and users! Your feedback and support have been invaluable. 🌟


Configuration

📅 Schedule: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled because a matching PR was automerged previously.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested a review from emmanuelgautier as a code owner February 24, 2024 10:17
@renovate renovate bot force-pushed the renovate/github.com-brianvoe-gofakeit-v6-7.x branch from 15620ce to 2144243 Compare February 27, 2024 19:19
@emmanuelgautier emmanuelgautier force-pushed the renovate/github.com-brianvoe-gofakeit-v6-7.x branch 2 times, most recently from 68a8602 to 0efb513 Compare February 27, 2024 19:22
@renovate renovate bot force-pushed the renovate/github.com-brianvoe-gofakeit-v6-7.x branch from 0efb513 to 0242fb8 Compare February 27, 2024 19:22
@emmanuelgautier emmanuelgautier force-pushed the renovate/github.com-brianvoe-gofakeit-v6-7.x branch from 0242fb8 to 71e1292 Compare February 27, 2024 19:22
@renovate renovate bot force-pushed the renovate/github.com-brianvoe-gofakeit-v6-7.x branch 2 times, most recently from f449d2a to ee2432f Compare February 27, 2024 23:29
Copy link

codecov bot commented Feb 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 44.92%. Comparing base (09c930c) to head (64f2640).

❗ Current head 64f2640 differs from pull request most recent head 2fa3982. Consider uploading reports for the commit 2fa3982 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #46   +/-   ##
=======================================
  Coverage   44.92%   44.92%           
=======================================
  Files          32       32           
  Lines         768      768           
=======================================
  Hits          345      345           
  Misses        398      398           
  Partials       25       25           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@renovate renovate bot force-pushed the renovate/github.com-brianvoe-gofakeit-v6-7.x branch 6 times, most recently from 91655d4 to 64f2640 Compare February 29, 2024 20:00
@emmanuelgautier emmanuelgautier force-pushed the renovate/github.com-brianvoe-gofakeit-v6-7.x branch from 64f2640 to 2fa3982 Compare March 6, 2024 10:41
@emmanuelgautier emmanuelgautier merged commit 4604de2 into main Mar 6, 2024
4 of 5 checks passed
@emmanuelgautier emmanuelgautier deleted the renovate/github.com-brianvoe-gofakeit-v6-7.x branch March 6, 2024 10:43
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.

1 participant