- Notifications
You must be signed in to change notification settings - Fork1.1k
Commit219db42
authored
chore: bump github.com/brianvoe/gofakeit/v7 from 7.8.0 to 7.9.0 (#20698)
Bumps[github.com/brianvoe/gofakeit/v7](https://github.com/brianvoe/gofakeit)from 7.8.0 to 7.9.0.<details><summary>Release notes</summary><p><em>Sourced from <ahref="https://github.com/brianvoe/gofakeit/releases">github.com/brianvoe/gofakeit/v7'sreleases</a>.</em></p><blockquote><h2>ID Generator</h2><h1>New: <code>ID()</code> — Fast, Human-Readable Random Identifier</h1><p><em>(GoFakeIt v7.9.0)</em></p><p><code>gofakeit.ID()</code> is a new high-performance identifiergenerator designed for <strong>speed</strong>,<strong>readability</strong>, and <strong>practically zero collisionprobability</strong>.</p><p>Unlike UUID v4 or XID, this generator is intentionally<strong>random-first</strong>, not structure-based.<br />Perfect for mock APIs, test data, fixtures, seed data, and temporaryidentifiers.</p><hr /><h2>Highlights</h2><ul><li><strong>Human readable alphabet</strong>, no confusing characters<br/>→ <code>23456789abcdefghjkmnpqrstuvwxyz</code> <em>(no 1, l, i or 0, oto alleviate confusion)</em></li><li><strong>Fast</strong></li><li><strong>Memory Allocation</strong></li><li><strong>Generates from your rand source</strong></li><li><strong>Shorter than UUID</strong>, faster than XID, and requires nocoordination</li></ul><hr /><h2>Example</h2><pre lang="go"><code>id := gofakeit.ID()fmt.Println(id)// → "3t9qf4c92npxhw7bg6y0"</code></pre><hr /><h2>Performance Benchmarks</h2><p>Measured on Go 1.25</p><table><thead><tr><th>Generator / Function</th><th>Benchmark Name</th><th>ops/sec</th><th>ns/op</th><th>B/op</th><th>allocs/op</th></tr></thead><tbody><tr><td><code>gofakeit.ID()</code></td><td>BenchmarkID-10</td><td>31,383,146</td><td>37.8 ns</td><td>24</td><td>1</td></tr><tr><td><code>gofakeit.UUIDv4()</code></td><td>BenchmarkUUIDv4-10</td><td>22,131,577</td><td>53.8 ns</td><td>48</td><td>1</td></tr><tr><td><code>github.com/rs/xid</code></td><td>BenchmarkXID-10</td><td>16,190,817</td><td>74.2 ns</td><td>0</td><td>0</td></tr><tr><td><code>github.com/google/uuid</code> (v4)</td><td>BenchmarkGoogleUUIDv4-10</td><td>3,098,770</td><td>386.1 ns</td><td>64</td><td>2</td></tr></tbody></table><p><strong>Takeaway:</strong> <code>gofakeit.ID()</code> is <strong>~2×faster than XID</strong> and <strong>~10× faster than UUID v4</strong>,while being shorter and human-readable.</p><hr /><h2>Collision Probability (Randomness Math)</h2><!-- raw HTML omitted --></blockquote><p>... (truncated)</p></details><details><summary>Commits</summary><ul><li><ahref="https://github.com/brianvoe/gofakeit/commit/93c1858df281da0d43482ac8186a21aafe60c75a"><code>93c1858</code></a>password - improve memery allocation and minor increase in op speed</li><li><ahref="https://github.com/brianvoe/gofakeit/commit/ce78392e670d1b5227ae7644977e99d3a7ed5ffc"><code>ce78392</code></a>id - lookup updates and some other minor things</li><li><ahref="https://github.com/brianvoe/gofakeit/commit/aba6d6fcd594f25201e305928de5ed454bc7ae43"><code>aba6d6f</code></a>ids - moved uuid into ids file and add our own unique gofakeit idgenerator</li><li><ahref="https://github.com/brianvoe/gofakeit/commit/da6da65344eac1034f874fb6bac4664622b8c11d"><code>da6da65</code></a>faker - pcg seed create 2 separate seeds using crypto</li><li><ahref="https://github.com/brianvoe/gofakeit/commit/1e2c3fbb0173b6e51ff510eb9f8f1a32f047c35a"><code>1e2c3fb</code></a>readme - added/organize ids</li><li><ahref="https://github.com/brianvoe/gofakeit/commit/ae981a3966fb1423f9037bd0b2621eed1546c540"><code>ae981a3</code></a>company - remove duplicate keyword/alias wording</li><li><ahref="https://github.com/brianvoe/gofakeit/commit/969e3c7799804cfdb97c84680a27d31cdee52ecf"><code>969e3c7</code></a>occupation - updated a few functions to favor job over emojijob</li><li><ahref="https://github.com/brianvoe/gofakeit/commit/1ef7578f4711c08fc6fc81f675a5912d8b0c05da"><code>1ef7578</code></a>occupation - updated a few functions to favor job over emojijob</li><li><ahref="https://github.com/brianvoe/gofakeit/commit/a93e4a968e84cd3ae0ef63fa08645075bdfd4b37"><code>a93e4a9</code></a>readme - minor update to remove unused functions</li><li><ahref="https://github.com/brianvoe/gofakeit/commit/f4eb855b56d393ba2ee69d0847b521c29e8c5a5b"><code>f4eb855</code></a>text - added params back to sentence and paragraph to not breakbuilds</li><li>See full diff in <ahref="https://github.com/brianvoe/gofakeit/compare/v7.8.0...v7.9.0">compareview</a></li></ul></details><br />[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)Dependabot will resolve any conflicts with this PR as long as you don'talter it yourself. You can also trigger a rebase manually by commenting`@dependabot rebase`.[//]: # (dependabot-automerge-start)[//]: # (dependabot-automerge-end)---<details><summary>Dependabot commands and options</summary><br />You can trigger Dependabot actions by commenting on this PR:- `@dependabot rebase` will rebase this PR- `@dependabot recreate` will recreate this PR, overwriting any editsthat 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 afteryour CI passes on it- `@dependabot cancel merge` will cancel a previously requested mergeand block automerging- `@dependabot reopen` will reopen this PR if it is closed- `@dependabot close` will close this PR and stop Dependabot recreatingit. You can achieve the same result by closing it manually- `@dependabot show <dependency name> ignore conditions` will show allof the ignore conditions of the specified dependency- `@dependabot ignore this major version` will close this PR and stopDependabot creating any more for this major version (unless you reopenthe PR or upgrade to it yourself)- `@dependabot ignore this minor version` will close this PR and stopDependabot creating any more for this minor version (unless you reopenthe PR or upgrade to it yourself)- `@dependabot ignore this dependency` will close this PR and stopDependabot creating any more for this dependency (unless you reopen thePR or upgrade to it yourself)</details>Signed-off-by: dependabot[bot] <support@github.com>Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>1 parent4cbba17 commit219db42
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
477 | | - | |
| 477 | + | |
478 | 478 | | |
479 | 479 | | |
480 | 480 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
842 | 842 | | |
843 | 843 | | |
844 | 844 | | |
845 | | - | |
846 | | - | |
| 845 | + | |
| 846 | + | |
847 | 847 | | |
848 | 848 | | |
849 | 849 | | |
| |||
0 commit comments
Comments
(0)