Skip to content

Commit 34aea1f

Browse files
Bump github.com/gabriel-vasile/mimetype from 1.4.8 to 1.4.10 (#1463)
Bumps [github.com/gabriel-vasile/mimetype](https://github.com/gabriel-vasile/mimetype) from 1.4.8 to 1.4.10. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/gabriel-vasile/mimetype/releases">github.com/gabriel-vasile/mimetype's releases</a>.</em></p> <blockquote> <h2>v1.4.10 perfomance inprovements, tests and new formats</h2> <p>This release adds support for XHTML, Lotus-1-2-3, KML, shell scripts, VSDX, OneNote, CHM and Netpbm file formats. Changes were made to make mimetype behave more file linux <code>$ file --mime</code> utility.</p> <p><a href="https://github.com/gabriel-vasile/mimetype_tests">https://github.com/gabriel-vasile/mimetype_tests</a> repo is now used for running comparisons between <code>mimetype</code> and <code>$ file --mime</code>. It contains 50 000 samples and <code>mimetype</code> identifies the same format as <code>$ file --mime</code> for ~97% of them. Results are in the <a href="https://github.com/gabriel-vasile/mimetype_tests/actions">Actions tab</a>.</p> <h2>What's Changed</h2> <ul> <li>charset: remove dependency on x/net for parsing html in <a href="https://redirect.github.com/gabriel-vasile/mimetype/pull/669">gabriel-vasile/mimetype#669</a></li> <li>CSV: replace stdlib reader with a parser that allocates less in <a href="https://redirect.github.com/gabriel-vasile/mimetype/pull/672">gabriel-vasile/mimetype#672</a></li> <li>svg: make detection harder in <a href="https://redirect.github.com/gabriel-vasile/mimetype/pull/674">gabriel-vasile/mimetype#674</a></li> <li>pdf: relax check to match file in <a href="https://redirect.github.com/gabriel-vasile/mimetype/pull/677">gabriel-vasile/mimetype#677</a></li> <li>csv: stop mutating input byte slices; for <a href="https://redirect.github.com/gabriel-vasile/mimetype/issues/680">#680</a> in <a href="https://redirect.github.com/gabriel-vasile/mimetype/pull/681">gabriel-vasile/mimetype#681</a></li> <li>charset: remove dependency on mime in <a href="https://redirect.github.com/gabriel-vasile/mimetype/pull/684">gabriel-vasile/mimetype#684</a></li> <li>mso_office: increase limit of checked entries from 4 to 100 in <a href="https://redirect.github.com/gabriel-vasile/mimetype/pull/685">gabriel-vasile/mimetype#685</a></li> <li>jar: replace application/jar with application/java-archive in <a href="https://redirect.github.com/gabriel-vasile/mimetype/pull/686">gabriel-vasile/mimetype#686</a></li> <li>Zip container improvements in <a href="https://redirect.github.com/gabriel-vasile/mimetype/pull/687">gabriel-vasile/mimetype#687</a></li> <li>Jar first entry inside a zip in <a href="https://redirect.github.com/gabriel-vasile/mimetype/pull/688">gabriel-vasile/mimetype#688</a></li> <li>svg+html: better handling for comments in <a href="https://redirect.github.com/gabriel-vasile/mimetype/pull/689">gabriel-vasile/mimetype#689</a></li> <li>xhtml: add support in <a href="https://redirect.github.com/gabriel-vasile/mimetype/pull/690">gabriel-vasile/mimetype#690</a></li> <li>misc: behave more like file in <a href="https://redirect.github.com/gabriel-vasile/mimetype/pull/691">gabriel-vasile/mimetype#691</a></li> <li>lotus-1-2-3: add support in <a href="https://redirect.github.com/gabriel-vasile/mimetype/pull/695">gabriel-vasile/mimetype#695</a></li> <li>Add support for zipped KML files by <a href="https://github.com/dmlambea"><code>@​dmlambea</code></a> in <a href="https://redirect.github.com/gabriel-vasile/mimetype/pull/693">gabriel-vasile/mimetype#693</a></li> <li>shell: add support by <a href="https://github.com/scop"><code>@​scop</code></a> in <a href="https://redirect.github.com/gabriel-vasile/mimetype/pull/694">gabriel-vasile/mimetype#694</a></li> <li>ruby: add support by <a href="https://github.com/scop"><code>@​scop</code></a> in <a href="https://redirect.github.com/gabriel-vasile/mimetype/pull/700">gabriel-vasile/mimetype#700</a></li> <li>python: associate with python2 and python3 shebangs by <a href="https://github.com/scop"><code>@​scop</code></a> in <a href="https://redirect.github.com/gabriel-vasile/mimetype/pull/699">gabriel-vasile/mimetype#699</a></li> <li>vsdx: add support in <a href="https://redirect.github.com/gabriel-vasile/mimetype/pull/702">gabriel-vasile/mimetype#702</a></li> <li>oneNote: add support in <a href="https://redirect.github.com/gabriel-vasile/mimetype/pull/703">gabriel-vasile/mimetype#703</a></li> <li>chm: add support for Microsoft Compiled HTML Help in <a href="https://redirect.github.com/gabriel-vasile/mimetype/pull/704">gabriel-vasile/mimetype#704</a></li> <li>Netpbm: add support by <a href="https://github.com/kenshaw"><code>@​kenshaw</code></a> in <a href="https://redirect.github.com/gabriel-vasile/mimetype/pull/705">gabriel-vasile/mimetype#705</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/dmlambea"><code>@​dmlambea</code></a> made their first contribution in <a href="https://redirect.github.com/gabriel-vasile/mimetype/pull/693">gabriel-vasile/mimetype#693</a></li> <li><a href="https://github.com/scop"><code>@​scop</code></a> made their first contribution in <a href="https://redirect.github.com/gabriel-vasile/mimetype/pull/694">gabriel-vasile/mimetype#694</a></li> <li><a href="https://github.com/kenshaw"><code>@​kenshaw</code></a> made their first contribution in <a href="https://redirect.github.com/gabriel-vasile/mimetype/pull/705">gabriel-vasile/mimetype#705</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/gabriel-vasile/mimetype/compare/v1.4.9...v1.4.10">https://github.com/gabriel-vasile/mimetype/compare/v1.4.9...v1.4.10</a></p> <h2>v1.4.10-rc2 XHTML, Lotus, KML, VSDX, OneNote, shell scripts</h2> <p>This release adds support for XHTML, Lotus-1-2-3, KML, and shell scripts. Changes were made to make mimetype behave more file linux <code>$ file --mime</code> utility</p> <p><a href="https://github.com/gabriel-vasile/mimetype_tests">https://github.com/gabriel-vasile/mimetype_tests</a> repo is now used for running comparisons betweem <code>mimetype</code> and <code>$ file --mime</code>. It contains 50 000 samples and <code>mimetype</code> identifies the same format as <code>$ file --mime</code> for ~97% of them.</p> <h2>What's Changed</h2> <ul> <li>charset: remove dependency on x/net for parsing html in <a href="https://redirect.github.com/gabriel-vasile/mimetype/pull/669">gabriel-vasile/mimetype#669</a></li> <li>CSV: replace stdlib reader with a parser that allocates less in <a href="https://redirect.github.com/gabriel-vasile/mimetype/pull/672">gabriel-vasile/mimetype#672</a></li> <li>svg: make detection harder in <a href="https://redirect.github.com/gabriel-vasile/mimetype/pull/674">gabriel-vasile/mimetype#674</a></li> <li>pdf: relax check to match file in <a href="https://redirect.github.com/gabriel-vasile/mimetype/pull/677">gabriel-vasile/mimetype#677</a></li> <li>csv: stop mutating input byte slices; for <a href="https://redirect.github.com/gabriel-vasile/mimetype/issues/680">#680</a> in <a href="https://redirect.github.com/gabriel-vasile/mimetype/pull/681">gabriel-vasile/mimetype#681</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/gabriel-vasile/mimetype/commit/8dee3e792e7e4ca7f784e815379ea9f5ca766fd4"><code>8dee3e7</code></a> Add Netpbm support (<a href="https://redirect.github.com/gabriel-vasile/mimetype/issues/705">#705</a>)</li> <li><a href="https://github.com/gabriel-vasile/mimetype/commit/fefd0af4d23d687d68b717c90469f2fd73de981e"><code>fefd0af</code></a> chm: add support for Microsoft Compiled HTML Help</li> <li><a href="https://github.com/gabriel-vasile/mimetype/commit/eaef3b14d579fd37ec9c6c4c79fb8ab24adaa980"><code>eaef3b1</code></a> oneNote: add support</li> <li><a href="https://github.com/gabriel-vasile/mimetype/commit/405687f3fbe1c80416fed5dd8f5d9066474f57ba"><code>405687f</code></a> vsdx: add support</li> <li><a href="https://github.com/gabriel-vasile/mimetype/commit/cbeec0330db29652688bc74e5444e9acc885aee2"><code>cbeec03</code></a> python: associate with python2 and python3 shebangs (<a href="https://redirect.github.com/gabriel-vasile/mimetype/issues/699">#699</a>)</li> <li><a href="https://github.com/gabriel-vasile/mimetype/commit/f5c807fbe29ca7b3bb5785beb0f5e06a0d08e267"><code>f5c807f</code></a> ruby: add support</li> <li><a href="https://github.com/gabriel-vasile/mimetype/commit/9e0c82385e76f4ce59b1646464a10cee6d673393"><code>9e0c823</code></a> charset: limit detection to first 1024 bytes</li> <li><a href="https://github.com/gabriel-vasile/mimetype/commit/2f0854be3b9bbae4d449f8994d133f1c743f1885"><code>2f0854b</code></a> text: limit check to max 4096 bytes</li> <li><a href="https://github.com/gabriel-vasile/mimetype/commit/310dc04f8657a9dca3351817276cf8e36a76fd38"><code>310dc04</code></a> zip: stop searching when PK\x03\x04 cannot be found (<a href="https://redirect.github.com/gabriel-vasile/mimetype/issues/696">#696</a>)</li> <li><a href="https://github.com/gabriel-vasile/mimetype/commit/9ffa89204dcfcf5fdbd5a566592a5c98d86a63d4"><code>9ffa892</code></a> shell: add support (<a href="https://redirect.github.com/gabriel-vasile/mimetype/issues/694">#694</a>)</li> <li>Additional commits viewable in <a href="https://github.com/gabriel-vasile/mimetype/compare/v1.4.8...v1.4.10">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/gabriel-vasile/mimetype&package-manager=go_modules&previous-version=1.4.8&new-version=1.4.10)](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't alter 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 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 show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@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) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent c325e92 commit 34aea1f

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

go.mod

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/go-playground/validator/v10
33
go 1.24
44

55
require (
6-
github.com/gabriel-vasile/mimetype v1.4.8
6+
github.com/gabriel-vasile/mimetype v1.4.10
77
github.com/go-playground/assert/v2 v2.2.0
88
github.com/go-playground/locales v0.14.1
99
github.com/go-playground/universal-translator v0.18.1
@@ -12,7 +12,4 @@ require (
1212
golang.org/x/text v0.22.0
1313
)
1414

15-
require (
16-
golang.org/x/net v0.34.0 // indirect
17-
golang.org/x/sys v0.30.0 // indirect
18-
)
15+
require golang.org/x/sys v0.30.0 // indirect

go.sum

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
22
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
3-
github.com/gabriel-vasile/mimetype v1.4.8 h1:FfZ3gj38NjllZIeJAmMhr+qKL8Wu+nOoI3GqacKw1NM=
4-
github.com/gabriel-vasile/mimetype v1.4.8/go.mod h1:ByKUIKGjh1ODkGM1asKUbQZOLGrPjydw3hYPU2YU9t8=
3+
github.com/gabriel-vasile/mimetype v1.4.10 h1:zyueNbySn/z8mJZHLt6IPw0KoZsiQNszIpU+bX4+ZK0=
4+
github.com/gabriel-vasile/mimetype v1.4.10/go.mod h1:d+9Oxyo1wTzWdyVUPMmXFvp4F9tea18J8ufA774AB3s=
55
github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s=
66
github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4=
77
github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA=
@@ -16,8 +16,6 @@ github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcU
1616
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
1717
golang.org/x/crypto v0.33.0 h1:IOBPskki6Lysi0lo9qQvbxiQ+FvsCC/YWOecCHAixus=
1818
golang.org/x/crypto v0.33.0/go.mod h1:bVdXmD7IV/4GdElGPozy6U7lWdRXA4qyRVGJV57uQ5M=
19-
golang.org/x/net v0.34.0 h1:Mb7Mrk043xzHgnRM88suvJFwzVrRfHEHJEl5/71CKw0=
20-
golang.org/x/net v0.34.0/go.mod h1:di0qlW3YNM5oh6GqDGQr92MyTozJPmybPK4Ev/Gm31k=
2119
golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=
2220
golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
2321
golang.org/x/text v0.22.0 h1:bofq7m3/HAFvbF51jz3Q9wLg3jkvSPuiZu/pD1XwgtM=

0 commit comments

Comments
 (0)