Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit219db42

Browse files
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)// → &quot;3t9qf4c92npxhw7bg6y0&quot;</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 />[![Dependabot compatibilityscore](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/brianvoe/gofakeit/v7&package-manager=go_modules&previous-version=7.8.0&new-version=7.9.0)](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

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎go.mod‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ require (
474474

475475
require (
476476
github.com/anthropics/anthropic-sdk-gov1.16.0
477-
github.com/brianvoe/gofakeit/v7v7.8.0
477+
github.com/brianvoe/gofakeit/v7v7.9.0
478478
github.com/coder/agentapi-sdk-gov0.0.0-20250505131810-560d1d88d225
479479
github.com/coder/aibridgev0.1.6
480480
github.com/coder/aisdk-gov0.0.9

‎go.sum‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -842,8 +842,8 @@ github.com/boombuler/barcode v1.0.0/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl
842842
github.com/boombuler/barcodev1.0.1/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8=
843843
github.com/bramvdbogaerde/go-scpv1.5.0 h1:a9BinAjTfQh273eh7vd3qUgmBC+bx+3TRDtkZWmIpzM=
844844
github.com/bramvdbogaerde/go-scpv1.5.0/go.mod h1:on2aH5AxaFb2G0N5Vsdy6B0Ml7k9HuHSwfo1y0QzAbQ=
845-
github.com/brianvoe/gofakeit/v7v7.8.0 h1:FHLerglGVodD2O4pnQPCmFlkmIRXp8MpAflnarW5sQM=
846-
github.com/brianvoe/gofakeit/v7v7.8.0/go.mod h1:QXuPeBw164PJCzCUZVmgpgHJ3Llj49jSLVkKPMtxtxA=
845+
github.com/brianvoe/gofakeit/v7v7.9.0 h1:6NsaMy9D5ZKVwIZ1V8L//J2FrOF3546FcXDElWLx994=
846+
github.com/brianvoe/gofakeit/v7v7.9.0/go.mod h1:QXuPeBw164PJCzCUZVmgpgHJ3Llj49jSLVkKPMtxtxA=
847847
github.com/buger/jsonparserv1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMUs=
848848
github.com/buger/jsonparserv1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0=
849849
github.com/bytecodealliance/wasmtime-go/v3v3.0.2 h1:3uZCA/BLTIu+DqCfguByNMJa2HVHpXvjfy0Dy7g6fuA=

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp