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

Update module github.com/brianvoe/gofakeit/v5 to v7 #51

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

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Feb 18, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/brianvoe/gofakeit/v5 v5.11.2 -> v7.1.2 age adoption passing confidence

Release Notes

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

v7.1.2

Compare Source

v7.1.1

Compare Source

v7.1.0

Compare Source

v7.0.4

Compare Source

v7.0.3

Compare Source

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. 🌟

v6.28.0: Descriptions!!!

Compare Source

Thanks to the contributor @​se-omar for all his great work in updating all the descriptions for lookups.

What's Changed

Full Changelog: brianvoe/gofakeit@v6.27.0...v6.28.0

v6.27.0

Compare Source

v6.26.4

Compare Source

v6.26.3

Compare Source

v6.26.2

Compare Source

v6.26.1

Compare Source

v6.26.0: Products!!! v6.26.0

Compare Source

🚀 Unleash the Power of Gofakeit 2.0: Elevate Your Data Faking Game! 🚀

We're thrilled to introduce the latest and greatest update to Gofakeit, and this time, we've supercharged your data faking experience with a suite of powerful new functions! Say hello to the game-changing Product module, a feature-packed addition that will revolutionize the way you generate fake product information. 🛍️✨

🎁 Introducing the Product() Function:
Get ready to dive into a world of limitless possibilities with the Product() function! It's your go-to command for creating realistic and captivating fake product data effortlessly. Harness the magic within this function to craft dynamic, authentic product information that will leave your users amazed and engaged.

🏷️ ProductName() – Unleash the Creativity:
Forge compelling product identities with the ProductName() function. From quirky gadgets to sophisticated fashion pieces, this function lets you generate catchy and unique names that captivate your audience.

📝 ProductDescription() – Tell a Story:
Bring your products to life with the ProductDescription() function! Craft vivid and intriguing descriptions that go beyond the mundane, ensuring your fake data is as immersive as it is imaginative. Spark curiosity and keep your users hooked.

🔖 ProductCategory() – Define the Essence:
Organize your products seamlessly with the ProductCategory() function. From electronics to fashion, create a diverse range of categories that add depth and structure to your fake data, making it more realistic and relatable.

🌟 ProductFeature() – Highlight the Best:
Elevate your product data with the ProductFeature() function! Showcase unique features that set your fake products apart. Whether it's cutting-edge technology or innovative design, this function lets you highlight the essence of your creations.

🛠️ ProductMaterial() – Craft Authenticity:
Immerse your users in the tactile world of your fake products with the ProductMaterial() function. Specify materials that resonate with authenticity, allowing your users to envision the quality and feel of the items you've meticulously crafted.

🎉 Elevate your data generation game to new heights with Gofakeit 2.0! 🎉 Unleash creativity, captivate your audience, and make your fake data more convincing than ever before. The world is your oyster, and with Gofakeit's new Product module, you're the master creator of captivating, realistic product information! 🚀🌐💼

Upgrade now and experience the thrill of data faking like never before! 🚀✨ #Gofakeit

v6.25.0: Templates!!! v6.25.0

Compare Source

🚀 Exciting New Release for Gofakeit v6!

We're thrilled to introduce the latest version of Gofakeit, packed with a powerful addition to enhance your templating experience. Brace yourself for the introduction of custom outputs using Golang's template engine! 🌟

SPECIAL THANKS to @​Mrpye for his work on this!

🎭 Template Magic
Now, you can unleash your creativity with custom outputs using Golang's template engine. We've integrated all available functions into the template engine, providing you with a versatile toolkit to craft dynamic and personalized content.

🛠 Additional Functions
But that's not all! We've gone the extra mile and added some game-changing functions to supercharge your template building:

ToUpper & ToLower: Easily manipulate text case for a polished appearance.
ToString: Swiftly convert any data type to a string.
ToDate: Effortlessly transform strings into time.Time objects.
SpliceAny, SpliceString, SpliceUInt, SpliceInt: Build slices dynamically, perfect for weighted scenarios and random selections.

🌐 Example Usages
To give you a taste of the excitement, here's a snippet showcasing the newfound template capabilities:

// Your template goes here
template := `
Subject: {{RandomString (SliceString "Greetings" "Hello" "Hi")}}

Dear {{LastName}},

{{RandomString (SliceString "Greetings!" "Hello there!" "Hi, how are you?")}}

{{Paragraph 1 5 10 "\n\n"}}

{{RandomString (SliceString "Warm regards" "Best wishes" "Sincerely")}}
{{$person:=Person}}
{{$person.FirstName}} {{$person.LastName}}
{{$person.Email}}
{{$person.Phone}}
`

// Applying the template
value, err := gofakeit.Template(template, nil)

v6.24.0

Compare Source

v6.23.2

Compare Source

v6.23.1

Compare Source

v6.23.0

Compare Source

v6.22.0: New Functions!!!

Compare Source

Thanks to the help of @​ViridianForge and @​dminkovski! We now have Books, Movies, Middle Names, Blurbs and Company Slogans.

v6.21.0: Added fakable interface

Compare Source

See https://github.com/brianvoe/gofakeit#fakeable-types

What's Changed

New Contributors

Full Changelog: brianvoe/gofakeit@v6.20.2...v6.21.0

v6.20.2

Compare Source

v6.20.1

Compare Source

v6.20.0

Compare Source

v6.19.0

Compare Source

v6.18.0

Compare Source

v6.17.0

Compare Source

v6.16.0

Compare Source

v6.15.0

Compare Source

v6.14.5

Compare Source

v6.14.4

Compare Source

v6.14.3

Compare Source

v6.14.2

Compare Source

v6.14.1

Compare Source

v6.14.0

Compare Source

v6.13.2

Compare Source

v6.13.1

Compare Source

v6.13.0

Compare Source

v6.12.2

Compare Source

v6.12.1

Compare Source

v6.12.0

Compare Source

v6.11.1

Compare Source

v6.11.0

Compare Source

v6.10.0

Compare Source

v6.9.0

Compare Source

v6.8.0

Compare Source

v6.7.1

Compare Source

v6.7.0

Compare Source

v6.6.0

Compare Source

v6.5.0

Compare Source

v6.4.1

Compare Source

v6.4.0

Compare Source

v6.3.0

Compare Source

v6.2.2

Compare Source

v6.2.1

Compare Source

v6.2.0

Compare Source

v6.1.1

Compare Source

v6.1.0

Compare Source

v6.0.4

Compare Source

v6.0.3

Compare Source

v6.0.2

Compare Source

v6.0.1

Compare Source

v6.0.0

Compare Source


Configuration

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

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, 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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/github.com-brianvoe-gofakeit-v5-7.x branch 2 times, most recently from 2036b72 to 3547b7d Compare February 27, 2024 19:07
@renovate renovate bot force-pushed the renovate/github.com-brianvoe-gofakeit-v5-7.x branch from 3547b7d to 94ba61f Compare April 14, 2024 08:25
@renovate renovate bot force-pushed the renovate/github.com-brianvoe-gofakeit-v5-7.x branch from 94ba61f to f7f7d93 Compare May 7, 2024 19:05
Copy link
Author

renovate bot commented Jun 4, 2024

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • The go directive was updated for compatibility reasons

Details:

Package Change
go 1.15 -> 1.23.3

@renovate renovate bot force-pushed the renovate/github.com-brianvoe-gofakeit-v5-7.x branch 2 times, most recently from 47bfde9 to e5e22ed Compare June 21, 2024 20:06
@renovate renovate bot force-pushed the renovate/github.com-brianvoe-gofakeit-v5-7.x branch from e5e22ed to 202203f Compare July 14, 2024 10:29
@renovate renovate bot force-pushed the renovate/github.com-brianvoe-gofakeit-v5-7.x branch from 202203f to 1c7085a Compare September 11, 2024 15:34
@renovate renovate bot force-pushed the renovate/github.com-brianvoe-gofakeit-v5-7.x branch 2 times, most recently from fce6eb7 to 47ef9f9 Compare October 31, 2024 00:40
@renovate renovate bot force-pushed the renovate/github.com-brianvoe-gofakeit-v5-7.x branch from 47ef9f9 to 4e95fea Compare November 17, 2024 15:52
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.

0 participants